function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(l){a=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a,r=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,a=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(a,n.prototype),a}).apply(null,arguments)}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=_superPropBase(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var a=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"/X5v":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},0:function(e,t,n){e.exports=n("zUnb")},"0mo+":function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n("wd/R"))},"0tRk":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(n("wd/R"))},"1BeU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mrSG"),a=n("agoU"),r=n("b/SL");t.adapterFactory=function(){return i.__assign({},a.adapterFactory(),{addWeeks:r.addWeeks,addMonths:r.addMonths,subDays:r.subDays,subWeeks:r.subWeeks,subMonths:r.subMonths,getISOWeek:r.getISOWeek,setDate:r.setDate,setMonth:r.setMonth,setYear:r.setYear,getDate:r.getDate,getYear:r.getYear})}},"1ppg":function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"1rYy":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"1xZ4":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"2fjn":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("wd/R"))},"2ykv":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n("wd/R"))},"4MV3":function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n("wd/R"))},"4dOw":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"6+QB":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},"6B0Y":function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("wd/R"))},"6yRa":function(e,t,n){"use strict";var i=n("OJSY");e.exports=function(e,t){var n=i.boolean((t=t||{}).allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,a=i.documentElement,r=i.body;e.pageX=t.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}},"7BjC":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:i?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7C5Q":function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n("wd/R"))},"7aV9":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n("wd/R"))},"8/+R":function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n("wd/R"))},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},"A+xa":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n("wd/R"))},AQ68:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("wd/R"))},AvvY:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n("wd/R"))},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n("wd/R"))},BVg3:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,a){var r=e+" ";switch(i){case"s":return n||a?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?r+(n||a?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?r+(n||a?"m\xedn\xfatur":"m\xedn\xfatum"):n?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return t(e)?r+(n||a?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(a?"daga":"d\xf6gum"):n?r+"dagur":r+(a?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":a?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?r+"m\xe1nu\xf0ir":r+(a?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?r+"m\xe1nu\xf0ur":r+(a?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||a?"\xe1r":"\xe1ri";case"yy":return t(e)?r+(n||a?"\xe1r":"\xe1rum"):r+(n||a?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},ByF4:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:6,doy:12}})}(n("wd/R"))},"D/JM":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},Dkky:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},DxQv:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Dzi0:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"E+lV":function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var a=t.words[i];return 1===i.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},EOgW:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n("wd/R"))},Fnuy:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},G0Uy:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,a;return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,a={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),i%10==1&&i%100!=11?a[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?a[1]:a[2])}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},HP3h:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},a=function(e){return function(t,a,r,o){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},r=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},IBtZ:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"}))},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n("wd/R"))},"Ivi+":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n("wd/R"))},"JCF/":function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},JVSJ:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},JvlW:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?a(n)[0]:i?a(n)[1]:a(n)[2]}function i(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function r(e,t,r,o){var s=e+" ";return 1===e?s+n(0,t,r[0],o):t?s+(i(e)?a(r)[1]:a(r)[0]):o?s+a(r)[1]:s+(i(e)?a(r)[1]:a(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},"K/tc":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},KSF8:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},KTz0:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var a=t.words[i];return 1===i.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},Loxo:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n("wd/R"))},OIYi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},OJSY:function(e,t,n){"use strict";function i(e,t){return void 0===e?void 0===t?e:t:e}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e,t){return"function"==typeof(e=i(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return!!e.apply(this,n)}:e?function(){return!0}:function(){return!1}},t.integer=function(e,t){return"function"==typeof(e=i(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=parseInt(e.apply(this,n),10);return a!=a?0:a}:(e=parseInt(e,10))!=e?function(){return 0}:function(){return e}},t.string=function(e,t){return"function"==typeof(e=i(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return""+e.apply(this,n)}:(e=""+e,function(){return e})}},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var a="";if(t)switch(n){case"s":a="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":a="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":a="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":a="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":a="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":a="%d \u0924\u093e\u0938";break;case"d":a="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":a="%d \u0926\u093f\u0935\u0938";break;case"M":a="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":a="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":a="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":a="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":a="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":a="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":a="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":a="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":a="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":a="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":a="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":a="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":a="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":a="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":a="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":a="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n("wd/R"))},OjkT:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n("wd/R"))},OmwH:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},Oxv6:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},PA2r:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],a=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?a+(r(e)?"dny":"dn\xed"):a+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?a+(r(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):a+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PTRy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=(i=n("6yRa"))&&"object"==typeof i&&"default"in i?i.default:i;function r(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+e)}}t.createPointCB=a,t.getClientRect=r,t.pointInside=function(e,t){var n=r(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}},PeUW:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("wd/R"))},PpIw:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},Qj4J:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n("wd/R"))},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RX3l:function(e,t){var n=Object.prototype.toString;e.exports=Array.isArray||function(e){return!!e&&"[object Array]"==n.call(e)}},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="RnhZ"},S6ln:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},SFxW:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},SatO:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},UDhR:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("wd/R"))},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UpQW:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},Ur1D:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wd/R"))},V2x9:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},VJNc:function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n("uMIJ")),r=i(n("RX3l")),o=i(n("xijO")),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=function(e){return null!=e&&"object"===(void 0===e?"undefined":s(e))&&1===e.nodeType&&"object"===s(e.style)&&"object"===s(e.ownerDocument)};function c(e){if("string"==typeof e)try{return document.querySelector(e)}catch(t){throw t}else if(o(e))return e}function u(e,t){if(t=p(t,!0),!l(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function d(e,t){return-1!==u(e,t)}function h(e){if(!e)return[];try{return"string"==typeof e?a(document.querySelectorAll(e)):r(e)?e.map(p):void 0===e.length?[p(e)]:a(e,p)}catch(t){throw new Error(t)}}function f(e,t){for(var n=0;n<t.length;n++)d(e,t[n])||e.push(t[n]);return t}function p(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(n){throw n}if(!l(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}t.indexOfElement=u,t.hasElement=d,t.domListOf=h,t.concatElementLists=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce((function(e,t){return t.length?e:e.concat(h(t))}),[])},t.addElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return f(e,t=t.map(p))},t.removeElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.map(p).reduce((function(t,n){var i=u(e,n);return-1!==i?t.concat(e.splice(i,1)):t}),[])},t.resolveElement=p,t.select=c,t.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):r(e)?e.map(c):"length"in e?a(e).map(c):void 0}},Vclq:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n("wd/R"))},WYrj:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n("wd/R"))},WxRl:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var a=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return a+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return a+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return a+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return a+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return a+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return a+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},X709:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("wd/R"))},XDpg:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n("wd/R"))},XLvN:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n("wd/R"))},YRex:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n("wd/R"))},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z4QM:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},ZAMP:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},Zduo:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("wd/R"))},aIdf:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("wd/R"))},aIsn:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},aQkU:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},agoU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("b/SL");t.adapterFactory=function(){return{addDays:i.addDays,addHours:i.addHours,addMinutes:i.addMinutes,addSeconds:i.addSeconds,differenceInDays:i.differenceInDays,differenceInMinutes:i.differenceInMinutes,differenceInSeconds:i.differenceInSeconds,endOfDay:i.endOfDay,endOfMonth:i.endOfMonth,endOfWeek:i.endOfWeek,getDay:i.getDay,getMonth:i.getMonth,isSameDay:i.isSameDay,isSameMonth:i.isSameMonth,isSameSecond:i.isSameSecond,max:i.max,setHours:i.setHours,setMinutes:i.setMinutes,startOfDay:i.startOfDay,startOfMinute:i.startOfMinute,startOfMonth:i.startOfMonth,startOfWeek:i.startOfWeek,getHours:i.getHours,getMinutes:i.getMinutes}}},"b/SL":function(e,t,n){"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function a(e,t){if(t.length<e)throw new TypeError(e+" argument"+e>1?"s":" required, but only "+t.length+" present")}function r(e){a(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function o(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setDate(n.getDate()+o),n}function s(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=t.getMonth(),o=new Date(0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function l(e,t){a(2,arguments);var n=r(e),o=i(t),l=n.getMonth()+o,c=new Date(0);c.setFullYear(n.getFullYear(),l,1),c.setHours(0,0,0,0);var u=s(c);return n.setMonth(l,Math.min(u,n.getDate())),n}function c(e,t){if(a(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n="years"in t?i(t.years):0,s="months"in t?i(t.months):0,c="weeks"in t?i(t.weeks):0,u="days"in t?i(t.days):0,d="hours"in t?i(t.hours):0,h="minutes"in t?i(t.minutes):0,f="seconds"in t?i(t.seconds):0,p=l(r(e),s+12*n),m=o(p,u+7*c),_=h+60*d,g=f+60*_,v=1e3*g,y=new Date(m.getTime()+v);return y}function u(e){a(1,arguments);var t=r(e),n=t.getDay();return 0===n||6===n}function d(e,t){a(2,arguments);var n=r(e),o=i(t);if(isNaN(o))return new Date(NaN);var s=n.getHours(),l=o<0?-1:1,c=i(o/5);n.setDate(n.getDate()+7*c);for(var d=Math.abs(o%5);d>0;)n.setDate(n.getDate()+l),u(n)||(d-=1);return n.setHours(s),n}function h(e,t){a(2,arguments);var n=r(e).getTime(),o=i(t);return new Date(n+o)}function f(e,t){a(2,arguments);var n=i(t);return h(e,36e5*n)}function p(e,t){a(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:i(s),c=null==n.weekStartsOn?l:i(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=r(e),d=u.getDay(),h=(d<c?7:0)+d-c;return u.setDate(u.getDate()-h),u.setHours(0,0,0,0),u}function m(e){return a(1,arguments),p(e,{weekStartsOn:1})}function _(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var o=m(i),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var l=m(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function g(e){a(1,arguments);var t=_(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var i=m(n);return i}function v(e){return e.getTime()%6e4}function y(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+v(t))%6e4:v(t))}function k(e){a(1,arguments);var t=r(e);return t.setHours(0,0,0,0),t}function b(e,t){a(2,arguments);var n=k(e),i=k(t),r=n.getTime()-y(n),o=i.getTime()-y(i);return Math.round((r-o)/864e5)}function w(e,t){a(2,arguments);var n=r(e),o=i(t),s=b(n,g(n)),l=new Date(0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),(n=g(l)).setDate(n.getDate()+s),n}function C(e,t){a(2,arguments);var n=i(t);return w(e,_(e)+n)}function D(e,t){a(2,arguments);var n=i(t);return h(e,6e4*n)}function S(e,t){a(2,arguments);var n=i(t),r=3*n;return l(e,r)}function M(e,t){a(2,arguments);var n=i(t);return h(e,1e3*n)}function x(e,t){a(2,arguments);var n=i(t),r=7*n;return o(e,r)}function T(e,t){a(2,arguments);var n=i(t);return l(e,12*n)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(2,arguments);var i=e||{},o=t||{},s=r(i.start).getTime(),l=r(i.end).getTime(),c=r(o.start).getTime(),u=r(o.end).getTime();if(!(s<=l&&c<=u))throw new RangeError("Invalid interval");return n.inclusive?s<=u&&c<=l:s<u&&c<l}function L(e,t){a(2,arguments);var n=r(e);if(isNaN(n))return NaN;var i,o,s=n.getTime();return(null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t)).forEach((function(e,t){var n=r(e);if(isNaN(n))return i=NaN,void(o=NaN);var a=Math.abs(s-n.getTime());(null==i||a<o)&&(i=t,o=a)})),i}function I(e,t){a(2,arguments);var n=r(e);if(isNaN(n))return new Date(NaN);var i,o,s=n.getTime();return(null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t)).forEach((function(e){var t=r(e);if(isNaN(t))return i=new Date(NaN),void(o=NaN);var n=Math.abs(s-t.getTime());(null==i||n<o)&&(i=t,o=n)})),i}function E(e,t){a(2,arguments);var n=r(e),i=r(t),o=n.getTime()-i.getTime();return o<0?-1:o>0?1:o}function O(e,t){a(2,arguments);var n=r(e),i=r(t),o=n.getTime()-i.getTime();return o>0?-1:o<0?1:o}function R(e){a(1,arguments);var t=r(e);return!isNaN(t)}function P(e,t){a(2,arguments);var n=k(e),i=k(t);return n.getTime()===i.getTime()}function Y(e,t){a(2,arguments);var n=r(e),s=r(t);if(!R(n)||!R(s))return new Date(NaN);var l=b(n,s),c=l<0?-1:1,d=i(l/7),h=5*d;for(s=o(s,7*d);!P(n,s);)h+=u(s)?0:c,s=o(s,c);return 0===h?0:h}function F(e,t){return a(2,arguments),_(e)-_(t)}function q(e,t){a(2,arguments);var n=m(e),i=m(t),r=n.getTime()-y(n),o=i.getTime()-y(i);return Math.round((r-o)/6048e5)}function V(e,t){a(2,arguments);var n=r(e),i=r(t),o=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth();return 12*o+s}function H(e){a(1,arguments);var t=r(e),n=Math.floor(t.getMonth()/3)+1;return n}function N(e,t){a(2,arguments);var n=r(e),i=r(t),o=n.getFullYear()-i.getFullYear(),s=H(n)-H(i);return 4*o+s}function B(e,t,n){a(2,arguments);var i=p(e,n),r=p(t,n),o=i.getTime()-y(i),s=r.getTime()-y(r);return Math.round((o-s)/6048e5)}function j(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getFullYear()-i.getFullYear()}function z(e,t){a(2,arguments);var n=r(e),i=r(t),o=E(n,i),s=Math.abs(b(n,i));n.setDate(n.getDate()-o*s);var l=E(n,i)===-o,c=o*(s-l);return 0===c?0:c}function U(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getTime()-i.getTime()}function W(e,t){a(2,arguments);var n=U(e,t)/36e5;return n>0?Math.floor(n):Math.ceil(n)}function G(e,t){a(2,arguments);var n=i(t);return C(e,-n)}function Q(e,t){a(2,arguments);var n=r(e),i=r(t),o=E(n,i),s=Math.abs(F(n,i)),l=E(n=G(n,o*s),i)===-o,c=o*(s-l);return 0===c?0:c}function K(e,t){a(2,arguments);var n=U(e,t)/6e4;return n>0?Math.floor(n):Math.ceil(n)}function $(e,t){a(2,arguments);var n=r(e),i=r(t),o=E(n,i),s=Math.abs(V(n,i));n.setMonth(n.getMonth()-o*s);var l=E(n,i)===-o,c=o*(s-l);return 0===c?0:c}function J(e,t){a(2,arguments);var n=$(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}function X(e,t){a(2,arguments);var n=U(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function Z(e,t){a(2,arguments);var n=z(e,t)/7;return n>0?Math.floor(n):Math.ceil(n)}function ee(e,t){a(2,arguments);var n=r(e),i=r(t),o=E(n,i),s=Math.abs(j(n,i));n.setFullYear("1584"),i.setFullYear("1584");var l=E(n,i)===-o,c=o*(s-l);return 0===c?0:c}function te(e,t){a(1,arguments);var n=e||{},i=r(n.start),o=r(n.end),s=o.getTime();if(!(i.getTime()<=s))throw new RangeError("Invalid interval");var l=[],c=i;c.setHours(0,0,0,0);var u=t&&"step"in t?Number(t.step):1;if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=s;)l.push(r(c)),c.setDate(c.getDate()+u),c.setHours(0,0,0,0);return l}function ne(e){a(1,arguments);var t=e||{},n=r(t.start),i=r(t.end),o=i.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var s=[],l=n;for(l.setHours(0,0,0,0),l.setDate(1);l.getTime()<=o;)s.push(r(l)),l.setMonth(l.getMonth()+1);return s}function ie(e,t){a(1,arguments);var n=e||{},i=r(n.start),o=r(n.end),s=o.getTime();if(!(i.getTime()<=s))throw new RangeError("Invalid interval");var l=p(i,t),c=p(o,t);l.setHours(15),c.setHours(15),s=c.getTime();for(var u=[],d=l;d.getTime()<=s;)d.setHours(0),u.push(r(d)),(d=x(d,1)).setHours(15);return u}function ae(e){return a(1,arguments),0===r(e).getDay()}function re(e){a(1,arguments);for(var t=te(e),n=[],i=0;i<t.length;){var r=t[i++];u(r)&&(n.push(r),ae(r)&&(i+=5))}return n}function oe(e){a(1,arguments);var t=r(e);return t.setDate(1),t.setHours(0,0,0,0),t}function se(e){a(1,arguments);var t=r(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function le(e){a(1,arguments);var t=oe(e);if(isNaN(t))throw new RangeError("The passed date is invalid");var n=se(e);return re({start:t,end:n})}function ce(e){a(1,arguments);var t=r(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ue(e){a(1,arguments);var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function de(e){a(1,arguments);var t=ce(e);if(isNaN(t))throw new RangeError("The passed date is invalid");var n=ue(e);return re({start:t,end:n})}function he(e){a(1,arguments);var t=e||{},n=r(t.start),i=r(t.end),o=i.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var s=[],l=n;for(l.setHours(0,0,0,0),l.setMonth(0,1);l.getTime()<=o;)s.push(r(l)),l.setFullYear(l.getFullYear()+1);return s}function fe(e){a(1,arguments);var t=r(e);return t.setHours(23,59,59,999),t}function pe(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return t.setFullYear(i,11,31),t.setHours(23,59,59,999),t}function me(e){a(1,arguments);var t=r(e);return t.setMinutes(59,59,999),t}function _e(e,t){a(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:i(s),c=null==n.weekStartsOn?l:i(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=r(e),d=u.getDay(),h=6+(d<c?-7:0)-(d-c);return u.setDate(u.getDate()+h),u.setHours(23,59,59,999),u}function ge(e){return a(1,arguments),_e(e,{weekStartsOn:1})}function ve(e){a(1,arguments);var t=_(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var i=m(n);return i.setMilliseconds(i.getMilliseconds()-1),i}function ye(e){a(1,arguments);var t=r(e);return t.setSeconds(59,999),t}function ke(e){a(1,arguments);var t=r(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t}function be(e){a(1,arguments);var t=r(e);return t.setMilliseconds(999),t}function we(){return fe(Date.now())}function Ce(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),a=new Date(0);return a.setFullYear(t,n,i+1),a.setHours(23,59,59,999),a}function De(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),a=new Date(0);return a.setFullYear(t,n,i-1),a.setHours(23,59,59,999),a}n.r(t),n.d(t,"add",(function(){return c})),n.d(t,"addBusinessDays",(function(){return d})),n.d(t,"addDays",(function(){return o})),n.d(t,"addHours",(function(){return f})),n.d(t,"addISOWeekYears",(function(){return C})),n.d(t,"addMilliseconds",(function(){return h})),n.d(t,"addMinutes",(function(){return D})),n.d(t,"addMonths",(function(){return l})),n.d(t,"addQuarters",(function(){return S})),n.d(t,"addSeconds",(function(){return M})),n.d(t,"addWeeks",(function(){return x})),n.d(t,"addYears",(function(){return T})),n.d(t,"areIntervalsOverlapping",(function(){return A})),n.d(t,"closestIndexTo",(function(){return L})),n.d(t,"closestTo",(function(){return I})),n.d(t,"compareAsc",(function(){return E})),n.d(t,"compareDesc",(function(){return O})),n.d(t,"differenceInBusinessDays",(function(){return Y})),n.d(t,"differenceInCalendarDays",(function(){return b})),n.d(t,"differenceInCalendarISOWeekYears",(function(){return F})),n.d(t,"differenceInCalendarISOWeeks",(function(){return q})),n.d(t,"differenceInCalendarMonths",(function(){return V})),n.d(t,"differenceInCalendarQuarters",(function(){return N})),n.d(t,"differenceInCalendarWeeks",(function(){return B})),n.d(t,"differenceInCalendarYears",(function(){return j})),n.d(t,"differenceInDays",(function(){return z})),n.d(t,"differenceInHours",(function(){return W})),n.d(t,"differenceInISOWeekYears",(function(){return Q})),n.d(t,"differenceInMilliseconds",(function(){return U})),n.d(t,"differenceInMinutes",(function(){return K})),n.d(t,"differenceInMonths",(function(){return $})),n.d(t,"differenceInQuarters",(function(){return J})),n.d(t,"differenceInSeconds",(function(){return X})),n.d(t,"differenceInWeeks",(function(){return Z})),n.d(t,"differenceInYears",(function(){return ee})),n.d(t,"eachDayOfInterval",(function(){return te})),n.d(t,"eachMonthOfInterval",(function(){return ne})),n.d(t,"eachWeekOfInterval",(function(){return ie})),n.d(t,"eachWeekendOfInterval",(function(){return re})),n.d(t,"eachWeekendOfMonth",(function(){return le})),n.d(t,"eachWeekendOfYear",(function(){return de})),n.d(t,"eachYearOfInterval",(function(){return he})),n.d(t,"endOfDay",(function(){return fe})),n.d(t,"endOfDecade",(function(){return pe})),n.d(t,"endOfHour",(function(){return me})),n.d(t,"endOfISOWeek",(function(){return ge})),n.d(t,"endOfISOWeekYear",(function(){return ve})),n.d(t,"endOfMinute",(function(){return ye})),n.d(t,"endOfMonth",(function(){return se})),n.d(t,"endOfQuarter",(function(){return ke})),n.d(t,"endOfSecond",(function(){return be})),n.d(t,"endOfToday",(function(){return we})),n.d(t,"endOfTomorrow",(function(){return Ce})),n.d(t,"endOfWeek",(function(){return _e})),n.d(t,"endOfYear",(function(){return ue})),n.d(t,"endOfYesterday",(function(){return De})),n.d(t,"format",(function(){return ot})),n.d(t,"formatDistance",(function(){return ut})),n.d(t,"formatDistanceStrict",(function(){return dt})),n.d(t,"formatDistanceToNow",(function(){return ht})),n.d(t,"formatISO",(function(){return ft})),n.d(t,"formatISO9075",(function(){return pt})),n.d(t,"formatRFC3339",(function(){return mt})),n.d(t,"formatRFC7231",(function(){return vt})),n.d(t,"formatRelative",(function(){return yt})),n.d(t,"fromUnixTime",(function(){return kt})),n.d(t,"getDate",(function(){return bt})),n.d(t,"getDay",(function(){return wt})),n.d(t,"getDayOfYear",(function(){return Ct})),n.d(t,"getDaysInMonth",(function(){return s})),n.d(t,"getDaysInYear",(function(){return St})),n.d(t,"getDecade",(function(){return Mt})),n.d(t,"getHours",(function(){return xt})),n.d(t,"getISODay",(function(){return Tt})),n.d(t,"getISOWeek",(function(){return At})),n.d(t,"getISOWeekYear",(function(){return _})),n.d(t,"getISOWeeksInYear",(function(){return Lt})),n.d(t,"getMilliseconds",(function(){return It})),n.d(t,"getMinutes",(function(){return Et})),n.d(t,"getMonth",(function(){return Ot})),n.d(t,"getOverlappingDaysInIntervals",(function(){return Rt})),n.d(t,"getQuarter",(function(){return H})),n.d(t,"getSeconds",(function(){return Pt})),n.d(t,"getTime",(function(){return Yt})),n.d(t,"getUnixTime",(function(){return Ft})),n.d(t,"getWeek",(function(){return Ht})),n.d(t,"getWeekOfMonth",(function(){return Nt})),n.d(t,"getWeekYear",(function(){return qt})),n.d(t,"getWeeksInMonth",(function(){return jt})),n.d(t,"getYear",(function(){return zt})),n.d(t,"isAfter",(function(){return Ut})),n.d(t,"isBefore",(function(){return Wt})),n.d(t,"isDate",(function(){return Gt})),n.d(t,"isEqual",(function(){return Qt})),n.d(t,"isExists",(function(){return Kt})),n.d(t,"isFirstDayOfMonth",(function(){return $t})),n.d(t,"isFriday",(function(){return Jt})),n.d(t,"isFuture",(function(){return Xt})),n.d(t,"isLastDayOfMonth",(function(){return Zt})),n.d(t,"isLeapYear",(function(){return Dt})),n.d(t,"isMonday",(function(){return en})),n.d(t,"isPast",(function(){return tn})),n.d(t,"isSameDay",(function(){return P})),n.d(t,"isSameHour",(function(){return an})),n.d(t,"isSameISOWeek",(function(){return on})),n.d(t,"isSameISOWeekYear",(function(){return sn})),n.d(t,"isSameMinute",(function(){return cn})),n.d(t,"isSameMonth",(function(){return un})),n.d(t,"isSameQuarter",(function(){return hn})),n.d(t,"isSameSecond",(function(){return pn})),n.d(t,"isSameWeek",(function(){return rn})),n.d(t,"isSameYear",(function(){return mn})),n.d(t,"isSaturday",(function(){return _n})),n.d(t,"isSunday",(function(){return ae})),n.d(t,"isThisHour",(function(){return gn})),n.d(t,"isThisISOWeek",(function(){return vn})),n.d(t,"isThisMinute",(function(){return yn})),n.d(t,"isThisMonth",(function(){return kn})),n.d(t,"isThisQuarter",(function(){return bn})),n.d(t,"isThisSecond",(function(){return wn})),n.d(t,"isThisWeek",(function(){return Cn})),n.d(t,"isThisYear",(function(){return Dn})),n.d(t,"isThursday",(function(){return Sn})),n.d(t,"isToday",(function(){return Mn})),n.d(t,"isTomorrow",(function(){return xn})),n.d(t,"isTuesday",(function(){return Tn})),n.d(t,"isValid",(function(){return R})),n.d(t,"isWednesday",(function(){return An})),n.d(t,"isWeekend",(function(){return u})),n.d(t,"isWithinInterval",(function(){return Ln})),n.d(t,"isYesterday",(function(){return En})),n.d(t,"lastDayOfDecade",(function(){return On})),n.d(t,"lastDayOfISOWeek",(function(){return Pn})),n.d(t,"lastDayOfISOWeekYear",(function(){return Yn})),n.d(t,"lastDayOfMonth",(function(){return Bt})),n.d(t,"lastDayOfQuarter",(function(){return Fn})),n.d(t,"lastDayOfWeek",(function(){return Rn})),n.d(t,"lastDayOfYear",(function(){return qn})),n.d(t,"lightFormat",(function(){return jn})),n.d(t,"max",(function(){return Un})),n.d(t,"min",(function(){return Wn})),n.d(t,"parse",(function(){return Pi})),n.d(t,"parseISO",(function(){return Bi})),n.d(t,"parseJSON",(function(){return Xi})),n.d(t,"roundToNearestMinutes",(function(){return Zi})),n.d(t,"set",(function(){return ta})),n.d(t,"setDate",(function(){return na})),n.d(t,"setDay",(function(){return ia})),n.d(t,"setDayOfYear",(function(){return aa})),n.d(t,"setHours",(function(){return ra})),n.d(t,"setISODay",(function(){return oa})),n.d(t,"setISOWeek",(function(){return sa})),n.d(t,"setISOWeekYear",(function(){return w})),n.d(t,"setMilliseconds",(function(){return la})),n.d(t,"setMinutes",(function(){return ca})),n.d(t,"setMonth",(function(){return ea})),n.d(t,"setQuarter",(function(){return ua})),n.d(t,"setSeconds",(function(){return da})),n.d(t,"setWeek",(function(){return ha})),n.d(t,"setWeekYear",(function(){return fa})),n.d(t,"setYear",(function(){return pa})),n.d(t,"startOfDay",(function(){return k})),n.d(t,"startOfDecade",(function(){return ma})),n.d(t,"startOfHour",(function(){return nn})),n.d(t,"startOfISOWeek",(function(){return m})),n.d(t,"startOfISOWeekYear",(function(){return g})),n.d(t,"startOfMinute",(function(){return ln})),n.d(t,"startOfMonth",(function(){return oe})),n.d(t,"startOfQuarter",(function(){return dn})),n.d(t,"startOfSecond",(function(){return fn})),n.d(t,"startOfToday",(function(){return _a})),n.d(t,"startOfTomorrow",(function(){return ga})),n.d(t,"startOfWeek",(function(){return p})),n.d(t,"startOfWeekYear",(function(){return Vt})),n.d(t,"startOfYear",(function(){return ce})),n.d(t,"startOfYesterday",(function(){return va})),n.d(t,"sub",(function(){return ka})),n.d(t,"subBusinessDays",(function(){return ba})),n.d(t,"subDays",(function(){return In})),n.d(t,"subHours",(function(){return wa})),n.d(t,"subISOWeekYears",(function(){return G})),n.d(t,"subMilliseconds",(function(){return Ee})),n.d(t,"subMinutes",(function(){return Ca})),n.d(t,"subMonths",(function(){return ya})),n.d(t,"subQuarters",(function(){return Da})),n.d(t,"subSeconds",(function(){return Sa})),n.d(t,"subWeeks",(function(){return Ma})),n.d(t,"subYears",(function(){return xa})),n.d(t,"toDate",(function(){return r})),n.d(t,"maxTime",(function(){return Ta})),n.d(t,"minTime",(function(){return Aa}));var Se={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Me(e){return function(t){var n=t||{},i=n.width?String(n.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}var xe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Te(e){return function(t,n){var i,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=a.width?String(a.width):r;i=e.formattingValues[o]||e.formattingValues[r]}else{var s=e.defaultWidth,l=a.width?String(a.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function Ae(e){return function(t,n){var i=String(t),a=n||{},r=a.width,o=i.match(r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth]);if(!o)return null;var s,l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(i))return n}(c):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(i))return n}(c),s=e.valueCallback?e.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:i.slice(l.length)}}}var Le,Ie={code:"en-US",formatDistance:function(e,t,n){var i;return n=n||{},i="string"==typeof Se[e]?Se[e]:1===t?Se[e].one:Se[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i},formatLong:{date:Me({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Me({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Me({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:function(e,t,n,i){return xe[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Te({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Te({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Te({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Te({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Te({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Le={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),i=t||{},a=n.match(Le.matchPattern);if(!a)return null;var r=a[0],o=n.match(Le.parsePattern);if(!o)return null;var s=Le.valueCallback?Le.valueCallback(o[0]):o[0];return{value:s=i.valueCallback?i.valueCallback(s):s,rest:n.slice(r.length)}}),era:Ae({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ae({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ae({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ae({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ae({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ee(e,t){a(2,arguments);var n=i(t);return h(e,-n)}function Oe(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}var Re={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Oe("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Oe(n+1,2)},d:function(e,t){return Oe(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Oe(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Oe(e.getUTCHours(),t.length)},m:function(e,t){return Oe(e.getUTCMinutes(),t.length)},s:function(e,t){return Oe(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Oe(Math.floor(i*Math.pow(10,n-3)),t.length)}};function Pe(e){a(1,arguments);var t=1,n=r(e),i=n.getUTCDay(),o=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function Ye(e){a(1,arguments);var t=r(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var o=Pe(i),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=Pe(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function Fe(e){a(1,arguments);var t=Ye(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=Pe(n);return i}function qe(e){a(1,arguments);var t=r(e),n=Pe(t).getTime()-Fe(t).getTime();return Math.round(n/6048e5)+1}function Ve(e,t){a(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:i(s),c=null==n.weekStartsOn?l:i(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=r(e),d=u.getUTCDay(),h=(d<c?7:0)+d-c;return u.setUTCDate(u.getUTCDate()-h),u.setUTCHours(0,0,0,0),u}function He(e,t){a(1,arguments);var n=r(e,t),o=n.getUTCFullYear(),s=t||{},l=s.locale,c=l&&l.options&&l.options.firstWeekContainsDate,u=null==c?1:i(c),d=null==s.firstWeekContainsDate?u:i(s.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(o+1,0,d),h.setUTCHours(0,0,0,0);var f=Ve(h,t),p=new Date(0);p.setUTCFullYear(o,0,d),p.setUTCHours(0,0,0,0);var m=Ve(p,t);return n.getTime()>=f.getTime()?o+1:n.getTime()>=m.getTime()?o:o-1}function Ne(e,t){a(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,s=null==o?1:i(o),l=null==n.firstWeekContainsDate?s:i(n.firstWeekContainsDate),c=He(e,t),u=new Date(0);u.setUTCFullYear(c,0,l),u.setUTCHours(0,0,0,0);var d=Ve(u,t);return d}function Be(e,t){a(1,arguments);var n=r(e),i=Ve(n,t).getTime()-Ne(n,t).getTime();return Math.round(i/6048e5)+1}function je(e,t){var n=e>0?"-":"+",i=Math.abs(e),a=Math.floor(i/60),r=i%60;if(0===r)return n+String(a);var o=t||"";return n+String(a)+o+Oe(r,2)}function ze(e,t){return e%60==0?(e>0?"-":"+")+Oe(Math.abs(e)/60,2):Ue(e,t)}function Ue(e,t){var n=t||"",i=e>0?"-":"+",a=Math.abs(e);return i+Oe(Math.floor(a/60),2)+n+Oe(a%60,2)}var We={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear();return n.ordinalNumber(i>0?i:1-i,{unit:"year"})}return Re.y(e,t)},Y:function(e,t,n,i){var a=He(e,i),r=a>0?a:1-a;return"YY"===t?Oe(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):Oe(r,t.length)},R:function(e,t){return Oe(Ye(e),t.length)},u:function(e,t){return Oe(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Re.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var a=Be(e,i);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Oe(a,t.length)},I:function(e,t,n){var i=qe(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Oe(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Re.d(e,t)},D:function(e,t,n){var i=function(e){a(1,arguments);var t=r(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),o=n-i;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var a=e.getUTCDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return Oe(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var a=e.getUTCDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return Oe(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),a=0===i?7:i;switch(t){case"i":return String(a);case"ii":return Oe(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,a=e.getUTCHours();switch(i=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,a=e.getUTCHours();switch(i=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Re.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Re.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):Oe(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):Oe(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Re.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Re.s(e,t)},S:function(e,t){return Re.S(e,t)},X:function(e,t,n,i){var a=(i._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return ze(a);case"XXXX":case"XX":return Ue(a);case"XXXXX":case"XXX":default:return Ue(a,":")}},x:function(e,t,n,i){var a=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return ze(a);case"xxxx":case"xx":return Ue(a);case"xxxxx":case"xxx":default:return Ue(a,":")}},O:function(e,t,n,i){var a=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+je(a,":");case"OOOO":default:return"GMT"+Ue(a,":")}},z:function(e,t,n,i){var a=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+je(a,":");case"zzzz":default:return"GMT"+Ue(a,":")}},t:function(e,t,n,i){return Oe(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,i){return Oe((i._originalDate||e).getTime(),t.length)}};function Ge(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Qe(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var Ke={p:Qe,P:function(e,t){var n,i=e.match(/(P+)(p+)?/),a=i[1],r=i[2];if(!r)return Ge(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Ge(a,t)).replace("{{time}}",Qe(r,t))}},$e=["D","DD"],Je=["YY","YYYY"];function Xe(e){return-1!==$e.indexOf(e)}function Ze(e){return-1!==Je.indexOf(e)}function et(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var tt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,it=/^'([^]*?)'?$/,at=/''/g,rt=/[a-zA-Z]/;function ot(e,t,n){a(2,arguments);var o=String(t),s=n||{},l=s.locale||Ie,c=l.options&&l.options.firstWeekContainsDate,u=null==c?1:i(c),d=null==s.firstWeekContainsDate?u:i(s.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=l.options&&l.options.weekStartsOn,f=null==h?0:i(h),p=null==s.weekStartsOn?f:i(s.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");var m=r(e);if(!R(m))throw new RangeError("Invalid time value");var _=y(m),g=Ee(m,_),v={firstWeekContainsDate:d,weekStartsOn:p,locale:l,_originalDate:m},k=o.match(nt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ke[t])(e,l.formatLong,v):e})).join("").match(tt).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return st(e);var n=We[t];if(n)return!s.useAdditionalWeekYearTokens&&Ze(e)&&et(e),!s.useAdditionalDayOfYearTokens&&Xe(e)&&et(e),n(g,e,l.localize,v);if(t.match(rt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return k}function st(e){return e.match(it)[1].replace(at,"'")}function lt(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ct(e){return lt({},e)}function ut(e,t,n){a(2,arguments);var i=n||{},o=i.locale||Ie;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=E(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l,c,u=ct(i);u.addSuffix=Boolean(i.addSuffix),u.comparison=s,s>0?(l=r(t),c=r(e)):(l=r(e),c=r(t));var d,h=X(c,l),f=(y(c)-y(l))/1e3,p=Math.round((h-f)/60);if(p<2)return i.includeSeconds?h<5?o.formatDistance("lessThanXSeconds",5,u):h<10?o.formatDistance("lessThanXSeconds",10,u):h<20?o.formatDistance("lessThanXSeconds",20,u):h<40?o.formatDistance("halfAMinute",null,u):o.formatDistance(h<60?"lessThanXMinutes":"xMinutes",1,u):0===p?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",p,u);if(p<45)return o.formatDistance("xMinutes",p,u);if(p<90)return o.formatDistance("aboutXHours",1,u);if(p<1440){var m=Math.round(p/60);return o.formatDistance("aboutXHours",m,u)}if(p<2520)return o.formatDistance("xDays",1,u);if(p<43200){var _=Math.round(p/1440);return o.formatDistance("xDays",_,u)}if(p<86400)return d=Math.round(p/43200),o.formatDistance("aboutXMonths",d,u);if((d=$(c,l))<12){var g=Math.round(p/43200);return o.formatDistance("xMonths",g,u)}var v=d%12,k=Math.floor(d/12);return v<3?o.formatDistance("aboutXYears",k,u):v<9?o.formatDistance("overXYears",k,u):o.formatDistance("almostXYears",k+1,u)}function dt(e,t,n){a(2,arguments);var i=n||{},o=i.locale||Ie;if(!o.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=E(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l,c,u=ct(i);u.addSuffix=Boolean(i.addSuffix),u.comparison=s,s>0?(l=r(t),c=r(e)):(l=r(e),c=r(t));var d,h=null==i.roundingMethod?"round":String(i.roundingMethod);if("floor"===h)d=Math.floor;else if("ceil"===h)d=Math.ceil;else{if("round"!==h)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");d=Math.round}var f,p=X(c,l),m=(y(c)-y(l))/1e3,_=d((p-m)/60);if("second"===(f=null==i.unit?_<1?"second":_<60?"minute":_<1440?"hour":_<43200?"day":_<525600?"month":"year":String(i.unit)))return o.formatDistance("xSeconds",p,u);if("minute"===f)return o.formatDistance("xMinutes",_,u);if("hour"===f){var g=d(_/60);return o.formatDistance("xHours",g,u)}if("day"===f){var v=d(_/1440);return o.formatDistance("xDays",v,u)}if("month"===f){var k=d(_/43200);return o.formatDistance("xMonths",k,u)}if("year"===f){var b=d(_/525600);return o.formatDistance("xYears",b,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function ht(e,t){return a(1,arguments),ut(e,Date.now(),t)}function ft(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=r(e);if(!R(n))throw new RangeError("Invalid time value");var i=t||{},a=null==i.format?"extended":String(i.format),o=null==i.representation?"complete":String(i.representation);if("extended"!==a&&"basic"!==a)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==o){var d=Oe(n.getDate(),2),h=Oe(n.getMonth()+1,2),f=Oe(n.getFullYear(),4);s="".concat(f).concat(c).concat(h).concat(c).concat(d)}if("date"!==o){var p=n.getTimezoneOffset();if(0!==p){var m=Math.abs(p),_=Oe(Math.floor(m/60),2),g=Oe(m%60,2),v=p<0?"+":"-";l="".concat(v).concat(_,":").concat(g)}else l="Z";var y=Oe(n.getHours(),2),k=Oe(n.getMinutes(),2),b=Oe(n.getSeconds(),2),w=""===s?"":"T",C=[y,k,b].join(u);s="".concat(s).concat(w).concat(C).concat(l)}return s}function pt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=r(e);if(!R(n))throw new RangeError("Invalid time value");var i=t||{},a=null==i.format?"extended":String(i.format),o=null==i.representation?"complete":String(i.representation);if("extended"!==a&&"basic"!==a)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="extended"===a?"-":"",c="extended"===a?":":"";if("time"!==o){var u=Oe(n.getDate(),2),d=Oe(n.getMonth()+1,2),h=Oe(n.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(u)}if("date"!==o){var f=Oe(n.getHours(),2),p=Oe(n.getMinutes(),2),m=Oe(n.getSeconds(),2),_=""===s?"":" ";s="".concat(s).concat(_).concat(f).concat(c).concat(p).concat(c).concat(m)}return s}function mt(e,t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var n=r(e);if(!R(n))throw new RangeError("Invalid time value");var a=t||{},o=null==a.fractionDigits?0:i(a.fractionDigits);if(!(o>=0&&o<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var s=Oe(n.getDate(),2),l=Oe(n.getMonth()+1,2),c=n.getFullYear(),u=Oe(n.getHours(),2),d=Oe(n.getMinutes(),2),h=Oe(n.getSeconds(),2),f="";if(o>0){var p=n.getMilliseconds(),m=Math.floor(p*Math.pow(10,o-3));f="."+Oe(m,o)}var _="",g=n.getTimezoneOffset();if(0!==g){var v=Math.abs(g),y=Oe(v/60,2),k=Oe(v%60,2),b=g<0?"+":"-";_="".concat(b).concat(y,":").concat(k)}else _="Z";return"".concat(c,"-").concat(l,"-").concat(s,"T").concat(u,":").concat(d,":").concat(h).concat(f).concat(_)}var _t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],gt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vt(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=r(e);if(!R(t))throw new RangeError("Invalid time value");var n=_t[t.getUTCDay()],i=Oe(t.getUTCDate(),2),a=gt[t.getUTCMonth()],o=t.getUTCFullYear(),s=Oe(t.getUTCHours(),2),l=Oe(t.getUTCMinutes(),2),c=Oe(t.getUTCSeconds(),2);return"".concat(n,", ").concat(i," ").concat(a," ").concat(o," ").concat(s,":").concat(l,":").concat(c," GMT")}function yt(e,t,n){a(2,arguments);var i=r(e),o=r(t),s=n||{},l=s.locale||Ie;if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");if(!l.formatRelative)throw new RangeError("locale must contain formatRelative property");var c,u=b(i,o);if(isNaN(u))throw new RangeError("Invalid time value");c=u<-6?"other":u<-1?"lastWeek":u<0?"yesterday":u<1?"today":u<2?"tomorrow":u<7?"nextWeek":"other";var d=Ee(i,y(i)),h=Ee(o,y(o)),f=l.formatRelative(c,d,h,s);return ot(i,f,s)}function kt(e){a(1,arguments);var t=i(e);return r(1e3*t)}function bt(e){a(1,arguments);var t=r(e),n=t.getDate();return n}function wt(e){a(1,arguments);var t=r(e),n=t.getDay();return n}function Ct(e){a(1,arguments);var t=r(e),n=b(t,ce(t)),i=n+1;return i}function Dt(e){a(1,arguments);var t=r(e),n=t.getFullYear();return n%400==0||n%4==0&&n%100!=0}function St(e){a(1,arguments);var t=r(e);return isNaN(t)?NaN:Dt(t)?366:365}function Mt(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=10*Math.floor(n/10);return i}function xt(e){a(1,arguments);var t=r(e),n=t.getHours();return n}function Tt(e){a(1,arguments);var t=r(e),n=t.getDay();return 0===n&&(n=7),n}function At(e){a(1,arguments);var t=r(e),n=m(t).getTime()-g(t).getTime();return Math.round(n/6048e5)+1}function Lt(e){a(1,arguments);var t=g(e),n=g(x(t,60)),i=n.valueOf()-t.valueOf();return Math.round(i/6048e5)}function It(e){a(1,arguments);var t=r(e),n=t.getMilliseconds();return n}function Et(e){a(1,arguments);var t=r(e),n=t.getMinutes();return n}function Ot(e){a(1,arguments);var t=r(e),n=t.getMonth();return n}function Rt(e,t){a(2,arguments);var n=e||{},i=t||{},o=r(n.start).getTime(),s=r(n.end).getTime(),l=r(i.start).getTime(),c=r(i.end).getTime();if(!(o<=s&&l<=c))throw new RangeError("Invalid interval");var u=o<c&&l<s;if(!u)return 0;var d=l<o?o:l,h=c>s?s:c,f=h-d;return Math.ceil(f/864e5)}function Pt(e){a(1,arguments);var t=r(e),n=t.getSeconds();return n}function Yt(e){a(1,arguments);var t=r(e),n=t.getTime();return n}function Ft(e){return a(1,arguments),Math.floor(Yt(e)/1e3)}function qt(e,t){a(1,arguments);var n=r(e),o=n.getFullYear(),s=t||{},l=s.locale,c=l&&l.options&&l.options.firstWeekContainsDate,u=null==c?1:i(c),d=null==s.firstWeekContainsDate?u:i(s.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(o+1,0,d),h.setHours(0,0,0,0);var f=p(h,t),m=new Date(0);m.setFullYear(o,0,d),m.setHours(0,0,0,0);var _=p(m,t);return n.getTime()>=f.getTime()?o+1:n.getTime()>=_.getTime()?o:o-1}function Vt(e,t){a(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,s=null==o?1:i(o),l=null==n.firstWeekContainsDate?s:i(n.firstWeekContainsDate),c=qt(e,t),u=new Date(0);u.setFullYear(c,0,l),u.setHours(0,0,0,0);var d=p(u,t);return d}function Ht(e,t){a(1,arguments);var n=r(e),i=p(n,t).getTime()-Vt(n,t).getTime();return Math.round(i/6048e5)+1}function Nt(e,t){a(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:i(o),l=null==n.weekStartsOn?s:i(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=bt(e);if(isNaN(c))return c;var u=wt(oe(e)),d=0,h=1;if(c>(d=u>=l?l+7-u:l-u)){var f=c-d;h+=Math.ceil(f/7)}return h}function Bt(e){a(1,arguments);var t=r(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function jt(e,t){return a(1,arguments),B(Bt(e),oe(e),t)+1}function zt(e){a(1,arguments);var t=r(e),n=t.getFullYear();return n}function Ut(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getTime()>i.getTime()}function Wt(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getTime()<i.getTime()}function Gt(e){return a(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Qt(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getTime()===i.getTime()}function Kt(e,t,n){if(arguments.length<3)throw new TypeError("3 argument required, but only "+arguments.length+" present");var i=new Date(e,t,n);return i.getFullYear()===e&&i.getMonth()===t&&i.getDate()===n}function $t(e){return a(1,arguments),1===r(e).getDate()}function Jt(e){return a(1,arguments),5===r(e).getDay()}function Xt(e){return a(1,arguments),r(e).getTime()>Date.now()}function Zt(e){a(1,arguments);var t=r(e);return fe(t).getTime()===se(t).getTime()}function en(e){return a(1,arguments),1===r(e).getDay()}function tn(e){return a(1,arguments),r(e).getTime()<Date.now()}function nn(e){a(1,arguments);var t=r(e);return t.setMinutes(0,0,0),t}function an(e,t){a(2,arguments);var n=nn(e),i=nn(t);return n.getTime()===i.getTime()}function rn(e,t,n){a(2,arguments);var i=p(e,n),r=p(t,n);return i.getTime()===r.getTime()}function on(e,t){return a(2,arguments),rn(e,t,{weekStartsOn:1})}function sn(e,t){a(2,arguments);var n=g(e),i=g(t);return n.getTime()===i.getTime()}function ln(e){a(1,arguments);var t=r(e);return t.setSeconds(0,0),t}function cn(e,t){a(2,arguments);var n=ln(e),i=ln(t);return n.getTime()===i.getTime()}function un(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function dn(e){a(1,arguments);var t=r(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function hn(e,t){a(2,arguments);var n=dn(e),i=dn(t);return n.getTime()===i.getTime()}function fn(e){a(1,arguments);var t=r(e);return t.setMilliseconds(0),t}function pn(e,t){a(2,arguments);var n=fn(e),i=fn(t);return n.getTime()===i.getTime()}function mn(e,t){a(2,arguments);var n=r(e),i=r(t);return n.getFullYear()===i.getFullYear()}function _n(e){return a(1,arguments),6===r(e).getDay()}function gn(e){return a(1,arguments),an(Date.now(),e)}function vn(e){return a(1,arguments),on(e,Date.now())}function yn(e){return a(1,arguments),cn(Date.now(),e)}function kn(e){return a(1,arguments),un(Date.now(),e)}function bn(e){return a(1,arguments),hn(Date.now(),e)}function wn(e){return a(1,arguments),pn(Date.now(),e)}function Cn(e,t){return a(1,arguments),rn(e,Date.now(),t)}function Dn(e){return a(1,arguments),mn(e,Date.now())}function Sn(e){return a(1,arguments),4===r(e).getDay()}function Mn(e){return a(1,arguments),P(e,Date.now())}function xn(e){return a(1,arguments),P(e,o(Date.now(),1))}function Tn(e){return a(1,arguments),2===r(e).getDay()}function An(e){return a(1,arguments),3===r(e).getDay()}function Ln(e,t){a(2,arguments);var n=t||{},i=r(e).getTime(),o=r(n.start).getTime(),s=r(n.end).getTime();if(!(o<=s))throw new RangeError("Invalid interval");return i>=o&&i<=s}function In(e,t){a(2,arguments);var n=i(t);return o(e,-n)}function En(e){return a(1,arguments),P(e,In(Date.now(),1))}function On(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return t.setFullYear(i+1,0,0),t.setHours(0,0,0,0),t}function Rn(e,t){a(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:i(s),c=null==n.weekStartsOn?l:i(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var u=r(e),d=u.getDay(),h=6+(d<c?-7:0)-(d-c);return u.setHours(0,0,0,0),u.setDate(u.getDate()+h),u}function Pn(e){return a(1,arguments),Rn(e,{weekStartsOn:1})}function Yn(e){a(1,arguments);var t=_(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var i=m(n);return i.setDate(i.getDate()-1),i}function Fn(e){a(1,arguments);var t=r(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(0,0,0,0),t}function qn(e){a(1,arguments);var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t}var Vn=/(\w)\1*|''|'(''|[^'])+('|$)|./g,Hn=/^'([^]*?)'?$/,Nn=/''/g,Bn=/[a-zA-Z]/;function jn(e,t){a(2,arguments);var n=String(t),i=r(e);if(!R(i))throw new RangeError("Invalid time value");var o=y(i),s=Ee(i,o),l=n.match(Vn).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return zn(e);var n=Re[t];if(n)return n(s,e,null,{});if(t.match(Bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return l}function zn(e){return e.match(Hn)[1].replace(Nn,"'")}function Un(e){var t,n;if(a(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=r(e);(void 0===n||n<t||isNaN(t))&&(n=t)})),n||new Date(NaN)}function Wn(e){var t,n;if(a(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=r(e);(void 0===n||n>t||isNaN(t))&&(n=t)})),n||new Date(NaN)}function Gn(e,t,n){a(2,arguments);var o=n||{},s=o.locale,l=s&&s.options&&s.options.weekStartsOn,c=null==l?0:i(l),u=null==o.weekStartsOn?c:i(o.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=r(e),h=i(t),f=d.getUTCDay(),p=h%7,m=(p+7)%7,_=(m<u?7:0)+h-f;return d.setUTCDate(d.getUTCDate()+_),d}var Qn=/^(1[0-2]|0?\d)/,Kn=/^(3[0-1]|[0-2]?\d)/,$n=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Jn=/^(5[0-3]|[0-4]?\d)/,Xn=/^(2[0-3]|[0-1]?\d)/,Zn=/^(2[0-4]|[0-1]?\d)/,ei=/^(1[0-1]|0?\d)/,ti=/^(1[0-2]|0?\d)/,ni=/^[0-5]?\d/,ii=/^[0-5]?\d/,ai=/^\d/,ri=/^\d{1,2}/,oi=/^\d{1,3}/,si=/^\d{1,4}/,li=/^-?\d+/,ci=/^-?\d/,ui=/^-?\d{1,2}/,di=/^-?\d{1,3}/,hi=/^-?\d{1,4}/,fi=/^([+-])(\d{2})(\d{2})?|Z/,pi=/^([+-])(\d{2})(\d{2})|Z/,mi=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,_i=/^([+-])(\d{2}):(\d{2})|Z/,gi=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function vi(e,t,n){var i=t.match(e);if(!i)return null;var a=parseInt(i[0],10);return{value:n?n(a):a,rest:t.slice(i[0].length)}}function yi(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function ki(e,t){return vi(li,e,t)}function bi(e,t,n){switch(e){case 1:return vi(ai,t,n);case 2:return vi(ri,t,n);case 3:return vi(oi,t,n);case 4:return vi(si,t,n);default:return vi(new RegExp("^\\d{1,"+e+"}"),t,n)}}function wi(e,t,n){switch(e){case 1:return vi(ci,t,n);case 2:return vi(ui,t,n);case 3:return vi(di,t,n);case 4:return vi(hi,t,n);default:return vi(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Ci(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Di(e,t){var n,i=t>0,a=i?t:1-t;if(a<=50)n=e||100;else{var r=a+50;n=e+100*Math.floor(r/100)-(e>=r%100?100:0)}return i?n:1-n}var Si=[31,28,31,30,31,30,31,31,30,31,30,31],Mi=[31,29,31,30,31,30,31,31,30,31,30,31];function xi(e){return e%400==0||e%4==0&&e%100!=0}var Ti={G:{priority:140,parse:function(e,t,n,i){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,i){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,i){var a=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return bi(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return bi(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var r=Di(n.year,a);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,i){var a=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return bi(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return bi(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var a=He(e,i);if(n.isTwoDigitYear){var r=Di(n.year,a);return e.setUTCFullYear(r,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ve(e,i)}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ve(e,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,i){return wi("R"===t?4:t.length,e)},set:function(e,t,n,i){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),Pe(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,i){return wi("u"===t?4:t.length,e)},set:function(e,t,n,i){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,i){switch(t){case"Q":case"QQ":return bi(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,i){switch(t){case"q":case"qq":return bi(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,i){var a=function(e){return e-1};switch(t){case"M":return vi(Qn,e,a);case"MM":return bi(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,i){var a=function(e){return e-1};switch(t){case"L":return vi(Qn,e,a);case"LL":return bi(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,i){switch(t){case"w":return vi(Jn,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return Ve(function(e,t,n){a(2,arguments);var o=r(e),s=i(t),l=Be(o,n)-s;return o.setUTCDate(o.getUTCDate()-7*l),o}(e,n,o),o)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,i){switch(t){case"I":return vi(Jn,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return Pe(function(e,t){a(2,arguments);var n=r(e),o=i(t),s=qe(n)-o;return n.setUTCDate(n.getUTCDate()-7*s),n}(e,n,o),o)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,i){switch(t){case"d":return vi(Kn,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return bi(t.length,e)}},validate:function(e,t,n){var i=xi(e.getUTCFullYear()),a=e.getUTCMonth();return i?t>=1&&t<=Mi[a]:t>=1&&t<=Si[a]},set:function(e,t,n,i){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,i){switch(t){case"D":case"DD":return vi($n,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return bi(t.length,e)}},validate:function(e,t,n){return xi(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,i){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,i){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Gn(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,i){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return bi(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Gn(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,i){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return bi(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Gn(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,i){var a=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return bi(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,o){return(e=function(e,t){a(2,arguments);var n=i(t);n%7==0&&(n-=7);var o=1,s=r(e),l=s.getUTCDay(),c=n%7,u=(c+7)%7,d=(u<o?7:0)+n-l;return s.setUTCDate(s.getUTCDate()+d),s}(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,i){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(Ci(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,i){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(Ci(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,i){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,i){return e.setUTCHours(Ci(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,i){switch(t){case"h":return vi(ti,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return e.setUTCHours(a&&n<12?n+12:a||12!==n?n:0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,i){switch(t){case"H":return vi(Xn,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,i){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,i){switch(t){case"K":return vi(ei,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){var a=e.getUTCHours()>=12;return e.setUTCHours(a&&n<12?n+12:n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,i){switch(t){case"k":return vi(Zn,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,i){return e.setUTCHours(n<=24?n%24:n,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,i){switch(t){case"m":return vi(ni,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,i){switch(t){case"s":return vi(ii,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return bi(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,i){return bi(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,i){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,i){switch(t){case"X":return yi(fi,e);case"XX":return yi(pi,e);case"XXXX":return yi(mi,e);case"XXXXX":return yi(gi,e);case"XXX":default:return yi(_i,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,i){switch(t){case"x":return yi(fi,e);case"xx":return yi(pi,e);case"xxxx":return yi(mi,e);case"xxxxx":return yi(gi,e);case"xxx":default:return yi(_i,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,i){return ki(e)},set:function(e,t,n,i){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,i){return ki(e)},set:function(e,t,n,i){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Ai=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Li=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ii=/^'([^]*?)'?$/,Ei=/''/g,Oi=/\S/,Ri=/[a-zA-Z]/;function Pi(e,t,n,o){a(3,arguments);var s=String(e),l=String(t),c=o||{},u=c.locale||Ie;if(!u.match)throw new RangeError("locale must contain match property");var d=u.options&&u.options.firstWeekContainsDate,h=null==d?1:i(d),f=null==c.firstWeekContainsDate?h:i(c.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=u.options&&u.options.weekStartsOn,m=null==p?0:i(p),_=null==c.weekStartsOn?m:i(c.weekStartsOn);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===l)return""===s?r(n):new Date(NaN);var g,v={firstWeekContainsDate:f,weekStartsOn:_,locale:u},k=[{priority:10,set:Yi,index:0}],b=l.match(Li).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ke[t])(e,u.formatLong,v):e})).join("").match(Ai),w=[];for(g=0;g<b.length;g++){var C=b[g];!c.useAdditionalWeekYearTokens&&Ze(C)&&et(C),!c.useAdditionalDayOfYearTokens&&Xe(C)&&et(C);var D=C[0],S=Ti[D];if(S){var M=S.incompatibleTokens;if(Array.isArray(M)){for(var x=void 0,T=0;T<w.length;T++){var A=w[T].token;if(-1!==M.indexOf(A)||A===D){x=w[T];break}}if(x)throw new RangeError("The format string mustn't contain `".concat(x.fullToken,"` and `").concat(C,"` at the same time"))}else if("*"===S.incompatibleTokens&&w.length)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));w.push({token:D,fullToken:C});var L=S.parse(s,C,u.match,v);if(!L)return new Date(NaN);k.push({priority:S.priority,set:S.set,validate:S.validate,value:L.value,index:k.length}),s=L.rest}else{if(D.match(Ri))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if("''"===C?C="'":"'"===D&&(C=Fi(C)),0!==s.indexOf(C))return new Date(NaN);s=s.slice(C.length)}}if(s.length>0&&Oi.test(s))return new Date(NaN);var I=k.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return k.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),E=r(n);if(isNaN(E))return new Date(NaN);var O=Ee(E,y(E)),R={};for(g=0;g<I.length;g++){var P=I[g];if(P.validate&&!P.validate(O,P.value,v))return new Date(NaN);var Y=P.set(O,R,P.value,v);Y[0]?(O=Y[0],lt(R,Y[1])):O=Y}return O}function Yi(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function Fi(e){return e.match(Ii)[1].replace(Ei,"'")}var qi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Vi=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hi=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ni=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bi(e,t){a(1,arguments);var n=t||{},r=null==n.additionalDigits?2:i(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,s=ji(e);if(s.date){var l=zi(s.date,r);o=Ui(l.restDateString,l.year)}if(isNaN(o)||!o)return new Date(NaN);var c,u=o.getTime(),d=0;if(s.time&&(d=Gi(s.time),isNaN(d)||null===d))return new Date(NaN);if(!s.timezone){var h=new Date(u+d),f=new Date(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds());return f.setFullYear(h.getUTCFullYear()),f}return c=Ki(s.timezone),isNaN(c)?new Date(NaN):new Date(u+d+c)}function ji(e){var t,n={},i=e.split(qi.dateTimeDelimiter);if(/:/.test(i[0])?(n.date=null,t=i[0]):(n.date=i[0],t=i[1],qi.timeZoneDelimiter.test(n.date)&&(n.date=e.split(qi.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=qi.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}function zi(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:null};var a=i[1]&&parseInt(i[1]),r=i[2]&&parseInt(i[2]);return{year:null==r?a:100*r,restDateString:e.slice((i[1]||i[2]).length)}}function Ui(e,t){if(null===t)return null;var n=e.match(Vi);if(!n)return null;var i=!!n[4],a=Wi(n[1]),r=Wi(n[2])-1,o=Wi(n[3]),s=Wi(n[4]),l=Wi(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var a=7*(t-1)+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+a),i}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=($i[t]||(Ji(e)?29:28))}(t,r,o)&&function(e,t){return t>=1&&t<=(Ji(e)?366:365)}(t,a)?(c.setUTCFullYear(t,r,Math.max(a,o)),c):new Date(NaN)}function Wi(e){return e?parseInt(e):1}function Gi(e){var t=e.match(Hi);if(!t)return null;var n=Qi(t[1]),i=Qi(t[2]),a=Qi(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,a)?36e5*n+6e4*i+1e3*a:NaN}function Qi(e){return e&&parseFloat(e.replace(",","."))||0}function Ki(e){if("Z"===e)return 0;var t=e.match(Ni);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,a)?n*(36e5*i+6e4*a):NaN}var $i=[31,null,31,30,31,30,31,31,30,31,30,31];function Ji(e){return e%400==0||e%4==0&&e%100}function Xi(e){if(a(1,arguments),"string"==typeof e){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|\+00:?00)?/);return t?new Date(Date.UTC(+t[1],t[2]-1,+t[3],+t[4],+t[5],+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return r(e)}function Zi(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var n=t&&"nearestTo"in t?i(t.nearestTo):1;if(n<1||n>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var a=r(e),o=a.getSeconds(),s=a.getMinutes()+o/60,l=Math.floor(s/n)*n,c=s%n,u=Math.round(c/n)*n;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),l+u)}function ea(e,t){a(2,arguments);var n=r(e),o=i(t),l=n.getFullYear(),c=n.getDate(),u=new Date(0);u.setFullYear(l,o,15),u.setHours(0,0,0,0);var d=s(u);return n.setMonth(o,Math.min(c,d)),n}function ta(e,t){if(a(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=r(e);return isNaN(n)?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ea(n,t.month)),null!=t.date&&n.setDate(i(t.date)),null!=t.hours&&n.setHours(i(t.hours)),null!=t.minutes&&n.setMinutes(i(t.minutes)),null!=t.seconds&&n.setSeconds(i(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(i(t.milliseconds)),n)}function na(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setDate(o),n}function ia(e,t,n){a(2,arguments);var s=n||{},l=s.locale,c=l&&l.options&&l.options.weekStartsOn,u=null==c?0:i(c),d=null==s.weekStartsOn?u:i(s.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=r(e,s),f=i(t),p=h.getDay(),m=f%7,_=(m+7)%7,g=(_<d?7:0)+f-p;return o(h,g,s)}function aa(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setMonth(0),n.setDate(o),n}function ra(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setHours(o),n}function oa(e,t){a(2,arguments);var n=r(e),s=i(t),l=Tt(n),c=s-l;return o(n,c)}function sa(e,t){a(2,arguments);var n=r(e),o=i(t),s=At(n)-o;return n.setDate(n.getDate()-7*s),n}function la(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setMilliseconds(o),n}function ca(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setMinutes(o),n}function ua(e,t){a(2,arguments);var n=r(e),o=i(t),s=Math.floor(n.getMonth()/3)+1,l=o-s;return ea(n,n.getMonth()+3*l)}function da(e,t){a(2,arguments);var n=r(e),o=i(t);return n.setSeconds(o),n}function ha(e,t,n){a(2,arguments);var o=r(e),s=i(t),l=Ht(o,n)-s;return o.setDate(o.getDate()-7*l),o}function fa(e,t,n){a(2,arguments);var o=n||{},s=o.locale,l=s&&s.options&&s.options.firstWeekContainsDate,c=null==l?1:i(l),u=null==o.firstWeekContainsDate?c:i(o.firstWeekContainsDate),d=r(e),h=i(t),f=b(d,Vt(d,n)),p=new Date(0);return p.setFullYear(h,0,u),p.setHours(0,0,0,0),(d=Vt(p,n)).setDate(d.getDate()+f),d}function pa(e,t){a(2,arguments);var n=r(e),o=i(t);return isNaN(n)?new Date(NaN):(n.setFullYear(o),n)}function ma(e){a(1,arguments);var t=r(e),n=t.getFullYear(),i=10*Math.floor(n/10);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}function _a(){return k(Date.now())}function ga(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),a=new Date(0);return a.setFullYear(t,n,i+1),a.setHours(0,0,0,0),a}function va(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),i=e.getDate(),a=new Date(0);return a.setFullYear(t,n,i-1),a.setHours(0,0,0,0),a}function ya(e,t){a(2,arguments);var n=i(t);return l(e,-n)}function ka(e,t){if(a(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n="years"in t?i(t.years):0,o="months"in t?i(t.months):0,s="weeks"in t?i(t.weeks):0,l="days"in t?i(t.days):0,c="hours"in t?i(t.hours):0,u="minutes"in t?i(t.minutes):0,d="seconds"in t?i(t.seconds):0,h=ya(r(e),o+12*n),f=In(h,l+7*s),p=u+60*c,m=d+60*p,_=1e3*m,g=new Date(f.getTime()-_);return g}function ba(e,t){a(2,arguments);var n=i(t);return d(e,-n)}function wa(e,t){a(2,arguments);var n=i(t);return f(e,-n)}function Ca(e,t){a(2,arguments);var n=i(t);return D(e,-n)}function Da(e,t){a(2,arguments);var n=i(t);return S(e,-n)}function Sa(e,t){a(2,arguments);var n=i(t);return M(e,-n)}function Ma(e,t){a(2,arguments);var n=i(t);return x(e,-n)}function xa(e,t){a(2,arguments);var n=i(t);return T(e,-n)}var Ta=24*Math.pow(10,8)*60*60*1e3,Aa=-Ta},b1Dy:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},bOMt:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},bXm7:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},bxKX:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"c/fO":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["webkit","moz","ms","o"];t.requestAnimationFrame=function(){for(var e=0,t=i.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"];var n;return window.requestAnimationFrame||(n=0,window.requestAnimationFrame=function(e){var t=(new Date).getTime(),i=Math.max(0,16-t-n),a=window.setTimeout((function(){return e(t+i)}),i);return n=t+i,a}),window.requestAnimationFrame.bind(window)}(),t.cancelAnimationFrame=function(){for(var e=0,t=i.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}()},cRix:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},czMo:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},dNwA:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("wd/R"))},dgW9:function(e){e.exports=JSON.parse('[{"locationId":1,"locationName":"Core A (\u937e\u58eb\u5143\u6a13)","locationKey":"core a (\u937e\u58eb\u5143\u6a13)","locationCode":"A-CZYB","Keys":"A Core,G Core,Core A,Core G,Wing AG,AG,Chung Sze Yuen Building,A\u68df,AG\u7ffc,\u937e\u58eb\u5143\u6a13,Room A,Room AG,A\u680b,AG\u7ffc,\u949f\u58eb\u5143\u697c"},{"locationId":2,"locationName":"Core A (\u6821\u53cb\u8588)","locationKey":"core a (\u6821\u53cb\u8588)","locationCode":"A-AA","Keys":"A Core,Core A,A\u68df,Alumni Atrium,\u6821\u53cb\u8588,A\u680b,\u6821\u53cb\u835f"},{"locationId":3,"locationName":"Core A (\u8523\u9707\u5287\u9662)","locationKey":"core a (\u8523\u9707\u5287\u9662)","locationCode":"A-CCST","Keys":"A Core,Core A,Chiang Chen Studio Theatre,A\u68df,\u8523\u9707\u5287\u9662,A\u680b,\u848b\u9707\u5267\u9662"},{"locationId":4,"locationName":"Wing BC (BC\u7ffc)","locationKey":"wing bc (bc\u7ffc)","locationCode":"BC","Keys":"B Core,C Core,Core B,Core C,Wing BC,BC\u7ffc,B\u68df,C\u68df,B\u680b,C\u680b,BC"},{"locationId":5,"locationName":"Wing CD (\u9999\u6e2f\u4e2d\u83ef\u5ee0\u5546\u806f\u5408\u6703\u6a13)","locationKey":"wing cd (\u9999\u6e2f\u4e2d\u83ef\u5ee0\u5546\u806f\u5408\u6703\u6a13)","locationCode":"CD","Keys":"C Core,D Core,Core C,Core D,Wing CD,CD\u7ffc,C\u68df,D\u68df,\u9999\u6e2f\u4e2d\u83ef\u5ee0\u5546\u806f\u5408\u6703\u6a13,C\u680b,D\u680b,\u9999\u6e2f\u4e2d\u534e\u5382\u5546\u8054\u5408\u4f1a\u697c,CMA Building,CD"},{"locationId":6,"locationName":"Wing CF (\u5510\u70b3\u6e90\u6a13)","locationKey":"wing cf (\u5510\u70b3\u6e90\u6a13)","locationCode":"CF","Keys":"C Core,F Core,Core C,Core F,Wing CF,CF\u7ffc,C\u68df,F\u68df,\u5510\u70b3\u6e90\u6a13,C\u680b,F\u680b,\u5510\u70b3\u6e90\u697c,Tang Ping Yuan Building,CF"},{"locationId":7,"locationName":"Wing DE (\u5442\u5fd7\u548c\u6a13)","locationKey":"wing de (\u5442\u5fd7\u548c\u6a13)","locationCode":"DE","Keys":"D Core,E Core,Core D,Core E,Wing DE,DE\u7ffc,D\u68df,E\u68df,\u5442\u5fd7\u548c\u6a13,D\u680b,E\u680b,\u5415\u5fd7\u548c\u697c,Lui Che Woo Building,DE"},{"locationId":8,"locationName":"Wing EF (\u9673\u745e\u69d0\u6a13)","locationKey":"wing ef (\u9673\u745e\u69d0\u6a13)","locationCode":"EF","Keys":"E Core,F Core,Core E,Core F,Wing EF,EF\u7ffc,E\u68df,F\u68df,\u9673\u745e\u69d0\u6a13,E\u680b,F\u680b,\u9648\u745e\u69d0\u697c,Chan Sui Wai Building,EF"},{"locationId":9,"locationName":"Wing FG (\u5510\u91d1\u7f8e\u6a13)","locationKey":"wing fg (\u5510\u91d1\u7f8e\u6a13)","locationCode":"FG","Keys":"F Core,G Core,Core F,Core G,Wing FG,FG\u7ffc,F\u68df,G\u68df,\u5510\u91d1\u7f8e\u6a13,F\u680b,G\u680b,\u5510\u91d1\u7f8e\u697c,Kinmay W. Tang Building,FG"},{"locationId":10,"locationName":"Wing FJ (\u9673\u5927\u6cb3\u6a13)","locationKey":"wing fj (\u9673\u5927\u6cb3\u6a13)","locationCode":"FJ","Keys":"F Core,J Core,Core F,Core J,Wing FJ,FJ\u7ffc,F\u68df,J\u68df,\u9673\u5927\u6cb3\u6a13,F\u680b,J\u680b,\u9648\u5927\u6cb3\u697c,Chan Tai Ho Building,FJ"},{"locationId":11,"locationName":"Wing GH (GH\u7ffc)","locationKey":"wing gh (GH\u7ffc)","locationCode":"GH","Keys":"H Core,G Core,Core G,Core H,Wing GH,GH\u7ffc,G\u68df,H\u68df,G\u680b,H\u680b,GH"},{"locationId":12,"locationName":"Wing HJ (\u4f55\u9d3b\u71ca\u6a13)","locationKey":"wing hj (\u4f55\u9d3b\u71ca\u6a13)","locationCode":"HJ","Keys":"J Core,H Core,Core H,Core J,Wing HJ,HJ\u7ffc,H\u68df,J\u68df,\u4f55\u9d3b\u71ca\u6a13,H\u680b,J\u680b,\u4f55\u9e3f\u71ca\u697c,Stanley Ho Building,HJG"},{"locationId":13,"locationName":"Block L (\u5305\u7389\u525b\u5716\u66f8\u9928)","locationKey":"block l (\u5305\u7389\u525b\u5716\u66f8\u9928)","locationCode":"L","Keys":"L Block,L Core,Core L,Block L,L\u5ea7,L\u68df,\u5305\u7389\u525b\u5716\u66f8\u9928,L\u680b,\u5305\u7389\u521a\u56fe\u4e66\u9986,Pao Yue-Kong Library,Pao Yue Kong Library,Room LG"},{"locationId":14,"locationName":"Block M (\u674e\u5609\u8aa0\u6a13)","locationKey":"block m (\u674e\u5609\u8aa0\u6a13)","locationCode":"M","Keys":"M Block,M Core,Core M,Block M,M\u5ea7,M\u68df,\u674e\u5609\u8aa0\u6a13,M\u680b,\u674e\u5609\u8bda\u697c,Li Ka Shing Tower,Room M"},{"locationId":15,"locationName":"Block MN (MN\u5ea7)","locationKey":"block mn (mn\u5ea7)","locationCode":"N-MN","Keys":"N Block,N Core,Core N,Block N,N\u5ea7,N\u68df,N\u680b,MN,Room MN"},{"locationId":16,"locationName":"Block N (N\u5ea7)","locationKey":"block n (n\u5ea7)","locationCode":"N-BN","Keys":"N Block,N Core,Core N,Block N,N\u5ea7,N\u68df,N\u680b,Room N"},{"locationId":17,"locationName":"Block N (Logo Square)","locationKey":"block n (logo square)","locationCode":"N-LS","Keys":"N Block,N Core,Core N,Block N,N\u5ea7,N\u68df,N\u680b,Logo Square,Chan Sui Kau and Chan Lam Moon Chun Square"},{"locationId":18,"locationName":"Core P (\u9673\u9e97\u73b2\u6a13)","locationKey":"core p (\u9673\u9e97\u73b2\u6a13)","locationCode":"P-ACLLB","Keys":"P Core,Core P,P\u68df,\u9673\u9e97\u73b2\u6a13,P\u680b,\u9648\u4e3d\u73b2\u697c,Anita Chan Lai Ling Building,Room P"},{"locationId":19,"locationName":"Core P (\u5275\u65b0\u9928)","locationKey":"core p (\u5275\u65b0\u9928)","locationCode":"P-HOI","Keys":"P Core,Core P,P\u68df,P\u680b,House of Innovation,\u5275\u65b0\u9928,\u521b\u65b0\u9986"},{"locationId":20,"locationName":"Wing PQ (\u8499\u6c11\u5049\u6a13)","locationKey":"wing pq (\u8499\u6c11\u5049\u6a13)","locationCode":"PQ","Keys":"Q Core,P Core,Core P,Core Q,Wing PQ,PQ\u7ffc,P\u68df,Q\u68df,\u8499\u6c11\u5049\u6a13,P\u680b,Q\u680b,\u8499\u6c11\u4f1f\u697c,Mong Man Wai Building,PQ"},{"locationId":21,"locationName":"Wing QR (\u8521\u7e7c\u6709\u6a13)","locationKey":"wing qr (\u8521\u7e7c\u6709\u6a13)","locationCode":"QR","Keys":"R Core,Q Core,Core Q,Core R,Wing QR,QR\u7ffc,Q\u68df,R\u68df,\u8521\u7e7c\u6709\u6a13,Q\u680b,R\u680b,\u8521\u7ee7\u6709\u697c,Choi Kai Yau Building,QR"},{"locationId":22,"locationName":"Wing QT (\u5468\u4ea6\u537f\u6a13)","locationKey":"wing qt (\u5468\u4ea6\u537f\u6a13)","locationCode":"QT","Keys":"Q Core,T Core,Core Q,Core T,WingQT,Wing QT,QT\u7ffc,Q\u68df,T\u68df,\u5468\u4ea6\u537f\u6a13,Q\u680b,T\u680b,\u5468\u4ea6\u537f\u697c,Chow Yei Ching Building,QT"},{"locationId":23,"locationName":"Core R (\u9673\u9b91\u96ea\u7469\u6a13)","locationKey":"core r (\u9673\u9b91\u96ea\u7469\u6a13)","locationCode":"R","Keys":"R Core,Core R,R\u68df,\u9673\u9b91\u96ea\u7469\u6a13,R\u680b,\u9648\u9c8d\u96ea\u83b9\u697c,Shirley Chan Building,Room R"},{"locationId":24,"locationName":"Core S (\u6587\u5eb7\u5927\u6a13)","locationKey":"core s (\u6587\u5eb7\u5927\u6a13)","locationCode":"S-CB","Keys":"S Core,Core S,S\u68df,\u6587\u5eb7\u5927\u6a13,S\u680b,\u6587\u5eb7\u5927\u697c,Communal Building"},{"locationId":25,"locationName":"Core S (\u5ee3\u5b89\u91d1\u79a7\u9ad4\u80b2\u4e2d\u5fc3)","locationKey":"core s (\u5ee3\u5b89\u91d1\u79a7\u9ad4\u80b2\u4e2d\u5fc3)","locationCode":"S-JSC","Keys":"S Core,Core S,S\u68df,\u5ee3\u5b89\u91d1\u79a7\u9ad4\u80b2\u4e2d\u5fc3,S\u680b,\u5e7f\u5b89\u91d1\u79a7\u4f53\u80b2\u4e2d\u5fc3,Kwong On Jubilee Sports Centre"},{"locationId":26,"locationName":"Wing ST (\u4f0d\u6c38\u5eb7\u6a13)","locationKey":"wing st (\u4f0d\u6c38\u5eb7\u6a13)","locationCode":"ST-NWH","Keys":"S Core,T Core,Core S,Core T,Wing ST,ST\u7ffc,S\u68df,T\u68df,\u4f0d\u6c38\u5eb7\u6a13,S\u680b,T\u680b,\u4f0d\u6c38\u5eb7\u697c,Ng Wing Hong Building,ST"},{"locationId":27,"locationName":"Wing ST (\u8cfd\u99ac\u6703\u7d9c\u85dd\u9928)","locationKey":"wing st (\u8cfd\u99ac\u6703\u7d9c\u85dd\u9928)","locationCode":"ST-JCA","Keys":"T Core,S Core,Core S,Core T,Wing ST,ST\u7ffc,S\u68df,T\u68df,\u8cfd\u99ac\u6703\u7d9c\u85dd\u9928,S\u680b,T\u680b,\u8d5b\u9a6c\u4f1a\u7efc\u827a\u9986,Jockey Club Auditorium,ST"},{"locationId":28,"locationName":"Wing TU (\u8449\u5091\u5168\u6a13)","locationKey":"wing tu (\u8449\u5091\u5168\u6a13)","locationCode":"TU","Keys":"U Core,T Core,Core T,Core U,Wing TU,TU\u7ffc,T\u68df,U\u68df,\u8449\u5091\u5168\u6a13,T\u680b,U\u680b,\u53f6\u6770\u5168\u697c,Yip Kit Chuen Building,TU"},{"locationId":29,"locationName":"Core U (\u6ed9\u4fe1\u6a13)","locationKey":"core u (\u6ed9\u4fe1\u6a13)","locationCode":"U","Keys":"U Core,Core U,U\u68df,\u6ed9\u4fe1\u6a13,U\u680b,\u6c47\u4fe1\u697c,Realink Building,Room U"},{"locationId":30,"locationName":"Block V (\u8cfd\u99ac\u6703\u5275\u65b0\u6a13)","locationKey":"block v (\u8cfd\u99ac\u6703\u5275\u65b0\u6a13)","locationCode":"V","Keys":"V Core,Core V,Block V,V\u5ea7,V\u68df,\u8cfd\u99ac\u6703\u5275\u65b0\u6a13,V\u680b,\u8d5b\u9a6c\u4f1a\u521b\u65b0\u697c,Jockey Club Innovation Tower,JCIT"},{"locationId":31,"locationName":"Block VA (\u90b5\u9038\u592b\u6a13)","locationKey":"block va (\u90b5\u9038\u592b\u6a13)","locationCode":"VA","Keys":"VA Core,Core VA,Block VA,VA\u5ea7,VA\u68df,\u90b5\u9038\u592b\u6a13,VA\u680b,\u90b5\u9038\u592b\u697c,Shaw Amenities Building,VA"},{"locationId":32,"locationName":"Block VS (\u90b5\u9038\u592b\u9ad4\u80b2\u9928)","locationKey":"block vs (\u90b5\u9038\u592b\u9ad4\u80b2\u9928)","locationCode":"VS","Keys":"VS Core,Core VS,Block VS,VS\u5ea7,VS\u68df,\u90b5\u9038\u592b\u9ad4\u80b2\u9928,VS\u680b,\u90b5\u9038\u592b\u4f53\u80b2\u9986,Shaw Sports Complex,VS"},{"locationId":33,"locationName":"Block W (\u5de5\u696d\u4e2d\u5fc3)","locationKey":"block w (\u5de5\u696d\u4e2d\u5fc3)","locationCode":"W-IC","Keys":"W Core,Core W,Block W,W\u5ea7,W\u68df,\u5de5\u696d\u4e2d\u5fc3,W\u680b,\u5de5\u4e1a\u4e2d\u5fc3,Industrial Centre,Room W"},{"locationId":34,"locationName":"Block W (\u4f55\u8000\u5149\u6a13)","locationKey":"block w (\u4f55\u8000\u5149\u6a13)","locationCode":"W-HIK","Keys":"W Core,Core W,Block W,W\u5ea7,W\u68df,\u4f55\u8000\u5149\u6a13,W\u680b,\u4f55\u8000\u5149\u697c,Room W"},{"locationId":35,"locationName":"Block X (X\u5ea7)","locationKey":"block x (x\u5ea7)","locationCode":"X","Keys":"X Core,Core X,Block X,X\u5ea7,X\u68df,X\u680b,Room X"},{"locationId":36,"locationName":"Block Y (\u674e\u5146\u57fa\u6a13)","locationKey":"block y (\u674e\u5146\u57fa\u6a13)","locationCode":"Y","Keys":"Y Core,Core Y,Block Y,Y\u5ea7,Y\u68df,\u674e\u5146\u57fa\u6a13,Y\u680b,\u674e\u5146\u57fa\u697c,Lee Shau Kee Building,Room Y"},{"locationId":37,"locationName":"Block Z (Z\u5ea7)","locationKey":"block z (z\u5ea7)","locationCode":"Z","Keys":"Z Core,Core Z,Block Z,Z\u5ea7,Z\u68df,Z\u680b,Room Z,ZN,ZS"},{"locationId":38,"locationName":"Hotel ICON (\u552f\u6e2f\u8588)","locationKey":"hotel icon (\u552f\u6e2f\u8588)","locationCode":"HOTEL ICON","Keys":"Hotel ICON,Hotel Icon,\u552f\u6e2f\u8588,\u552f\u6e2f\u835f"},{"locationId":39,"locationName":"** Whole Campus (\u6574\u500b\u6821\u5712)","locationKey":"** whole campus (\u6574\u500b\u6821\u5712)","locationCode":"WHOLE CAMPUS","Keys":""},{"locationId":40,"locationName":"** Off-Campus Venue (\u6821\u5712\u4ee5\u5916)","locationKey":"** off-campus venue (\u6821\u5712\u4ee5\u5916)","locationCode":"OFF CAMPUS","Keys":""},{"locationId":41,"locationName":"** Multiple Locations (\u591a\u500b\u5730\u9ede)","locationKey":"** multiple locations (\u591a\u500b\u5730\u9ede)","locationCode":"MULTIPLE LOC","Keys":""},{"locationId":42,"locationName":"** Others (\u5176\u4ed6)","locationKey":"** others (\u5176\u4ed6)","locationCode":"OTHER","Keys":""}]')},"e+ae":function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function a(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||a?r+(i(e)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return t?"min\xfata":a?"min\xfatu":"min\xfatou";case"mm":return t||a?r+(i(e)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(i(e)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return t||a?"de\u0148":"d\u0148om";case"dd":return t||a?r+(i(e)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?r+(i(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?r+(i(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},fzPg:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n("wd/R"))},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return a+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return a+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return a+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return a+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return a+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return a+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gekB:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,a,r){var o="";switch(a){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,r)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},gjCT:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n("wd/R"))},hKrs:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},honF:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("wd/R"))},iEDd:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},iYuL:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha invalida"})}(n("wd/R"))},jUeY:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],a=t&&t.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",a%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n("wd/R"))},jVdC:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var a=e+" ";switch(n){case"ss":return a+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return a+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return a+(i(e)?"godziny":"godzin");case"MM":return a+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return a+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},jfSC:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n("wd/R"))},jnO4:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,n,r,o){var s=i(t),l=a[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},kEOa:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},kOpN:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},l5ep:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("wd/R"))},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,a;return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,a={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?a[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?a[1]:a[2])}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n("wd/R"))},lYtQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n("wd/R"))},lgnt:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},lipz:function(e,t){var n,i,a,r,o,s;e.exports=(n=function(e){return"function"==typeof e},i=Math.pow(2,53)-1,a=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),i)},r=function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}},o=function(e,t){if(null!=e&&null!=t){var i=e[t];if(null==i)return;if(!n(i))throw new TypeError(i+" is not a function");return i}},s=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var t,i,l,c=this,u=arguments.length>1?arguments[1]:void 0;if(void 0!==u){if(!n(u))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(t=arguments[2])}var d=o(e,r(e));if(void 0!==d){i=n(c)?Object(new c):[];var h,f,p=d.call(e);if(null==p)throw new TypeError("Array.from requires an array-like or iterable object");for(l=0;;){if(!(h=s(p)))return i.length=l,i;f=h.value,i[l]=u?u.call(t,f,l):f,l++}}else{var m=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var _,g=a(m.length);for(i=n(c)?Object(new c(g)):new Array(g),l=0;l<g;)_=m[l],i[l]=u?u.call(t,_,l):_,l++;i.length=g}return i})},lyxo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("wd/R"))},mrSG:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return a})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return p})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return _})),n.d(t,"__await",(function(){return g})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return y})),n.d(t,"__asyncValues",(function(){return k})),n.d(t,"__makeTemplateObject",(function(){return b})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return D})),n.d(t,"__classPrivateFieldSet",(function(){return S}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}function s(e,t,n,i){var a,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,n,o):a(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(a,r){function o(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=2&r[0]?i.return:r[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;switch(i=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,i=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){o.label=r[1];break}if(6===r[0]&&o.label<a[1]){o.label=a[1],a=r;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(r);break}a[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(s){r=[6,s],i=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function _(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var r=arguments[t],o=0,s=r.length;o<s;o++,a++)i[a]=r[o];return i}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,a=n.apply(e,t||[]),r=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){a[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof g?Promise.resolve(n.value.v).then(l,c):u(r[0][2],n)}catch(i){u(r[0][3],i)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function y(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(n=!n)?{value:g(e[i](t)),done:"return"===i}:a?a(t):t}:a}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,a){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,a,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function D(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},nyYc:function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},o1bE:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(e){return function(i,a,r,o){var s=t(i),l=n[e][t(i)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,i)}},a=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n("wd/R"))},"p/rL":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("wd/R"))},qvJo:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return i?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){switch(t){case"D":return e+"\u0935\u0947\u0930";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n("wd/R"))},rJ3z:function(e,t,n){"use strict";var i,a=n("OJSY"),r=n("c/fO"),o=n("VJNc"),s=n("PTRy"),l=(i=n("uzHG"))&&"object"==typeof i&&"default"in i?i.default:i;function c(e,t){void 0===t&&(t={});var n=this,i=4,c=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var d={},h=s.createPointCB(d),f=l(),p=!1;window.addEventListener("mousemove",h,!1),window.addEventListener("touchmove",h,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),this.autoScroll=a.boolean(t.autoScroll),this.syncMove=a.boolean(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",h,!1),window.removeEventListener("touchmove",h,!1),window.removeEventListener("mousedown",b,!1),window.removeEventListener("touchstart",b,!1),window.removeEventListener("mouseup",w,!1),window.removeEventListener("touchend",w,!1),window.removeEventListener("pointerup",w,!1),window.removeEventListener("mouseleave",D,!1),window.removeEventListener("mousemove",M,!1),window.removeEventListener("touchmove",M,!1),window.removeEventListener("scroll",k,!0),e=[],t&&C()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return o.addElements.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return o.removeElements.apply(void 0,[e].concat(t))};var m,_,g=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),_=e,e=[],_.forEach((function(e){e===window?g=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return p}},maxSpeed:{get:function(){return i}},point:{get:function(){return d}},scrolling:{get:function(){return c}}});var v,y=null;function k(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){c=!0;break}c&&r.requestAnimationFrame((function(){return c=!1}))}function b(){p=!0}function w(){p=!1,C()}function C(){r.cancelAnimationFrame(v),r.cancelAnimationFrame(m)}function D(){p=!1}function S(){for(var t=null,n=0;n<e.length;n++)u(d,e[n])&&(t=e[n]);return t}function M(t){if(n.autoScroll()&&!t.dispatched){var i=t.target,a=document.body;y&&!u(d,y)&&(n.scrollWhenOutside||(y=null)),i&&i.parentNode===a?i=S():(i=function(t){if(!t)return null;if(y===t)return t;if(o.hasElement(e,t))return t;for(;t=t.parentNode;)if(o.hasElement(e,t))return t;return null}(i))||(i=S()),i&&i!==y&&(y=i),g&&(r.cancelAnimationFrame(m),m=r.requestAnimationFrame(x)),y&&(r.cancelAnimationFrame(v),v=r.requestAnimationFrame(T))}}function x(){A(g),r.cancelAnimationFrame(m),m=r.requestAnimationFrame(x)}function T(){y&&(A(y),r.cancelAnimationFrame(v),v=r.requestAnimationFrame(T))}function A(e){var t,i,a=s.getClientRect(e);t=d.x<a.left+n.margin?Math.floor(Math.max(-1,(d.x-a.left)/n.margin-1)*n.maxSpeed):d.x>a.right-n.margin?Math.ceil(Math.min(1,(d.x-a.right)/n.margin+1)*n.maxSpeed):0,i=d.y<a.top+n.margin?Math.floor(Math.max(-1,(d.y-a.top)/n.margin-1)*n.maxSpeed):d.y>a.bottom-n.margin?Math.ceil(Math.min(1,(d.y-a.bottom)/n.margin+1)*n.maxSpeed):0,n.syncMove()&&f.dispatch(e,{pageX:d.pageX+t,pageY:d.pageY+i,clientX:d.x+t,clientY:d.y+i}),setTimeout((function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",b,!1),window.addEventListener("touchstart",b,!1),window.addEventListener("mouseup",w,!1),window.addEventListener("touchend",w,!1),window.addEventListener("pointerup",w,!1),window.addEventListener("mousemove",M,!1),window.addEventListener("touchmove",M,!1),window.addEventListener("mouseleave",D,!1),window.addEventListener("scroll",k,!0)}function u(e,t,n){return n?e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right:s.pointInside(e,t)}e.exports=function(e,t){return new c(e,t)}},raLr:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,a;return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,a={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n].split("_"),i%10==1&&i%100!=11?a[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?a[1]:a[2])}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"s+uk":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},sp3z:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n("wd/R"))},"t+mt":function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tT3J:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("wd/R"))},tUCv:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("wd/R"))},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uEye:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uMIJ:function(e,t,n){e.exports="function"==typeof Array.from?Array.from:n("lipz")},uXwI:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,a){return e+" "+n(t[a],e,i)}function a(e,i,a){return n(t[a],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:a,mm:i,h:a,hh:i,d:a,dd:i,M:a,MM:i,y:a,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uzHG:function(e,t,n){"use strict";var i,a=void 0;"function"!=typeof Object.create?(i=function(){},a=function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");i.prototype=e||{};var n=new i;return i.prototype=null,void 0!==t&&Object.defineProperties(n,t),null===e&&(n.__proto__=null),n}):a=Object.create;var r=a,o=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function s(e,t){t=t||{};for(var n=r(e),i=0;i<o.length;i++)void 0!==t[o[i]]&&(n[o[i]]=t[o[i]]);return n}function l(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}e.exports=function(e){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function n(e){for(var n=0;n<o.length;n++)t[o[n]]=e[o[n]]}return void 0!==e&&e.addEventListener("mousemove",n),{destroy:function(){e&&e.removeEventListener("mousemove",n,!1),t=null},dispatch:MouseEvent?function(e,n,i){var a=new MouseEvent("mousemove",s(t,n));return l(a,i),e.dispatchEvent(a)}:"function"==typeof document.createEvent?function(e,n,i){var a=s(t,n),r=document.createEvent("MouseEvents");return r.initMouseEvent("mousemove",!0,!0,window,0,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget),l(r,i),e.dispatchEvent(r)}:"function"==typeof document.createEventObject?function(e,n,i){var a=document.createEventObject(),r=s(t,n);for(var o in r)a[o]=r[o];return l(a,i),e.dispatchEvent(a)}:void 0}}},wQk9:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n("wd/R"))},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function a(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Dt(e,t,n,i,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=a.momentProperties=[],y=!1;function k(e,t){var n,i,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)c(a=t[i=v[n]])||(e[i]=a);return e}function b(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var i,r,o,l=[];for(r=0;r<arguments.length;r++){if(i="","object"==typeof arguments[r]){for(o in i+="\n["+r+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[r];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,M={};function x(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),M[e]||(C(t),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,i=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(i[n]=f({},i[n]));return i}function L(e){null!=e&&this.set(e)}function I(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},P={};function Y(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(P[e]=a),t&&(P[t[0]]=function(){return I(a.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=q(t,e.localeData()),R[t]=R[t]||function(e){var t,n,i,a=e.match(E);for(t=0,n=a.length;t<n;t++)a[t]=P[a[t]]?P[a[t]]:(i=a[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<n;i++)r+=T(a[i])?a[i].call(t,e):a[i];return r}}(t),R[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var V={};function H(e,t){var n=e.toLowerCase();V[n]=V[n+"s"]=V[t]=e}function N(e){return"string"==typeof e?V[e]||V[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)s(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}var j={};function z(e,t){j[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function Q(e,t){return function(n){return null!=n?($(this,e,n),a.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,X=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ie=/\d\d?/,ae=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){J[e]=T(t)?t:function(e,i){return e&&n?n:t}}function me(e,t){return s(J,e)?J[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,a){return t||n||i||a}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ge,ve={};function ye(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)ve[e[n]]=i}function ke(e,t){ye(e,(function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)}))}function be(e,t,n){null!=t&&s(ve,e)&&ve[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?U(e)?29:28:31-n%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Y("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),z("month",8),pe("M",ie),pe("MM",ie,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[1]=a:m(n).invalidMonth=e}));var Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me=fe,xe=fe;function Te(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=ge.call(this._shortMonthsParse,o))?a:null:-1!==(a=ge.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=ge.call(this._shortMonthsParse,o))||-1!==(a=ge.call(this._longMonthsParse,o))?a:null:-1!==(a=ge.call(this._longMonthsParse,o))||-1!==(a=ge.call(this._shortMonthsParse,o))?a:null}function Ae(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(Ae(this,e),a.updateOffset(this,!0),this):K(this,"Month")}function Ie(){function e(e,t){return t.length-e.length}var t,n,i=[],a=[],r=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),a.sort(e),r.sort(e),t=0;t<12;t++)i[t]=_e(i[t]),a[t]=_e(a[t]);for(t=0;t<24;t++)r[t]=_e(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ee(e){return U(e)?366:365}Y("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),H("year","y"),z("year",1),pe("Y",ue),pe("YY",ie,Z),pe("YYYY",se,te),pe("YYYYY",le,ne),pe("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Oe=Q("FullYear",!0);function Re(e,t,n,i,a,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,a,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,a,r,o),s}function Pe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ye(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function Fe(e,t,n,i,a){var r,o,s=1+7*(t-1)+(7+n-i)%7+Ye(e,i,a);return s<=0?o=Ee(r=e-1)+s:s>Ee(e)?(r=e+1,o=s-Ee(e)):(r=e,o=s),{year:r,dayOfYear:o}}function qe(e,t,n){var i,a,r=Ye(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1;return o<1?i=o+Ve(a=e.year()-1,t,n):o>Ve(e.year(),t,n)?(i=o-Ve(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Ve(e,t,n){var i=Ye(e,t,n),a=Ye(e+1,t,n);return(Ee(e)-i+a)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),z("week",5),z("isoWeek",5),pe("w",ie),pe("ww",ie,Z),pe("W",ie),pe("WW",ie,Z),ke(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=G(e)})),Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),pe("d",ie),pe("e",ie),pe("E",ie),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ke(["dd","ddd","dddd"],(function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:m(n).invalidWeekday=e})),ke(["d","e","E"],(function(e,t,n,i){t[i]=G(e)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=fe,Ue=fe,We=fe;function Ge(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ge.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ge.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=ge.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=ge.call(this._weekdaysParse,o))||-1!==(a=ge.call(this._shortWeekdaysParse,o))||-1!==(a=ge.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ge.call(this._shortWeekdaysParse,o))||-1!==(a=ge.call(this._weekdaysParse,o))||-1!==(a=ge.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ge.call(this._minWeekdaysParse,o))||-1!==(a=ge.call(this._weekdaysParse,o))||-1!==(a=ge.call(this._shortWeekdaysParse,o))?a:null}function Qe(){function e(e,t){return t.length-e.length}var t,n,i,a,r,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=_e(this.weekdaysMin(n,"")),a=_e(this.weekdaysShort(n,"")),r=_e(this.weekdays(n,"")),o.push(i),s.push(a),l.push(r),c.push(i),c.push(a),c.push(r);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function $e(e,t){Y(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Ke),Y("k",["kk",2],0,(function(){return this.hours()||24})),Y("hmm",0,0,(function(){return""+Ke.apply(this)+I(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Ke.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),$e("a",!0),$e("A",!1),H("hour","h"),z("hour",13),pe("a",Je),pe("A",Je),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,Z),pe("hh",ie,Z),pe("kk",ie,Z),pe("hmm",ae),pe("hmmss",re),pe("Hmm",ae),pe("Hmmss",re),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var i=G(e);t[3]=24===i?0:i})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(a)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i))})),ye("Hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(a))}));var Xe,Ze=Q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ce,monthsShort:De,week:{dow:0,doy:6},weekdays:Ne,weekdaysMin:je,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function at(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{i=Xe._abbr,n("RnhZ")("./"+t),ot(i)}catch(a){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function st(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new L(A(i,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!r(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;t>0;){if(i=rt(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(a,n)>=t-1)break;t--}r++}return Xe}(e)}function ct(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,i,a,r,o,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(m(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){a=ft[t][0],i=!1!==ft[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[3])){r=(l[2]||" ")+pt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!ht.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),wt(e)}else e._isValid=!1}function yt(e){var t,n,i,a,r,o,s,l,c,u=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[3],i=u[2],a=u[5],r=u[6],o=u[7],s=[(l=u[4],c=parseInt(l,10),c<=49?2e3+c:c<=999?1900+c:c),De.indexOf(n),parseInt(i,10),parseInt(a,10),parseInt(r,10)],o&&s.push(parseInt(o,10)),!function(e,t,n){return!e||Be.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t=s,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}(u[8],u[9],u[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function kt(e,t,n){return null!=e?e:null!=t?t:n}function bt(e){var t,n,i,r,o,s=[];if(!e._d){for(i=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,a,r,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,o=4,n=kt(t.GG,e._a[0],qe(St(),1,4).year),i=kt(t.W,1),((a=kt(t.E,1))<1||a>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,c=qe(St(),r,o),n=kt(t.gg,e._a[0],c.year),i=kt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(l=!0)):a=r),i<1||i>Ve(n,r,o)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=Fe(n,i,a,r,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=kt(e._a[0],i[0]),(e._dayOfYear>Ee(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Pe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:Re).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,r,o,s,l=""+e._i,c=l.length,u=0;for(i=q(e._f,e._locale).match(E)||[],t=0;t<i.length;t++)(n=(l.match(me(r=i[t],e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),P[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),be(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=c-u,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),bt(e),ct(e)}else yt(e);else vt(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ct(t)):(d(t)?e._d=t:r(n)?function(e){var t,n,i,a,r,o,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,o=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],wt(t),_(t)&&(o=!0),r+=m(t).charsLeftOver,r+=10*m(t).unusedTokens.length,m(t).score=r,s?r<i&&(i=r,n=t):(null==i||r<i||o)&&(i=r,n=t,o&&(s=!0));f(e,n||t)}(e):n?wt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,yt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),bt(e)):o(t)?function(e){if(!e._d){var t=B(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),bt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Dt(e,t,n,i,a){var s,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&l(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=i,(s=new b(ct(Ct(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,i){return Dt(e,t,n,i,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Mt=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),xt=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Tt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=B(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(s(e,t)&&(-1===ge.call(At,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<At.length;++n)if(e[At[n]]){if(i)return!1;parseFloat(e[At[n]])!==G(e[At[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=lt(),this._bubble()}function It(e){return e instanceof Lt}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}Ot("Z",":"),Ot("ZZ",""),pe("Z",he),pe("ZZ",he),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(he,e)}));var Rt=/([\+\-]|\d\d)/gi;function Pt(e,t){var n,i,a=(t||"").match(e);return null===a?null:0===(i=60*(n=((a[a.length-1]||[])+"").match(Rt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?i:-i}function Yt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||d(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),a.updateOffset(n,!1),n):St(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function qt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Vt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nt(e,t){var n,i,a,r,o,l,c=e,d=null;return It(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Vt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(Et(1e3*d[6]))*n}):(d=Ht.exec(e))?c={y:Bt(d[2],n="-"===d[1]?-1:1),M:Bt(d[3],n),w:Bt(d[4],n),d:Bt(d[5],n),h:Bt(d[6],n),m:Bt(d[7],n),s:Bt(d[8],n)}:null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=St(c.from),o=St(c.to),a=r.isValid()&&o.isValid()?(o=Yt(o,r),r.isBefore(o)?l=jt(r,o):((l=jt(o,r)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),i=new Lt(c),It(e)&&s(e,"_locale")&&(i._locale=e._locale),It(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){return function(n,i){var a;return null===i||isNaN(+i)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),Ut(this,Nt(n,i),e),this}}function Ut(e,t,n,i){var r=t._milliseconds,o=Et(t._days),s=Et(t._months);e.isValid()&&(i=null==i||i,s&&Ae(e,K(e,"Month")+s*n),o&&$(e,"Date",K(e,"Date")+o*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&a.updateOffset(e,o||s))}Nt.fn=Lt.prototype,Nt.invalid=function(){return Nt(NaN)};var Wt=zt(1,"add"),Gt=zt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Kt(e){return w(e)||d(e)||Qt(e)||u(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Qt(e)})).length),t&&n}(e)||function(e){var t,n=o(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)i=i||s(e,a[t]);return n&&i}(e)||null==e}function $t(e){var t,n=o(e)&&!l(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=i||s(e,a[t]);return n&&i}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zt=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],i=[],a=[],r=[],o=this.eras();for(e=0,t=o.length;e<t;++e)i.push(_e(o[e].name)),n.push(_e(o[e].abbr)),a.push(_e(o[e].narrow)),r.push(_e(o[e].name)),r.push(_e(o[e].abbr)),r.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function sn(e,t){Y(0,[e,e.length],0,t)}function ln(e,t,n,i,a){var r;return null==e?qe(this,i,a).year:(t>(r=Ve(e,i,a))&&(t=r),cn.call(this,e,t,n,i,a))}function cn(e,t,n,i,a){var r=Fe(e,t,n,i,a),o=Pe(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),pe("N",rn),pe("NN",rn),pe("NNN",rn),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);a?m(n).era=a:m(n).invalidEra=e})),pe("y",ce),pe("yy",ce),pe("yyy",ce),pe("yyyy",ce),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,a):parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ie,Z),pe("gg",ie,Z),pe("GGGG",se,te),pe("gggg",se,te),pe("GGGGG",le,ne),pe("ggggg",le,ne),ke(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=G(e)})),ke(["gg","GG"],(function(e,t,n,i){t[i]=a.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),H("quarter","Q"),z("quarter",7),pe("Q",X),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),Y("D",["DD",2],"Do","date"),H("date","D"),z("date",9),pe("D",ie),pe("DD",ie,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(ie)[0])}));var un=Q("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),z("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),Y("m",["mm",2],0,"minute"),H("minute","m"),z("minute",14),pe("m",ie),pe("mm",ie,Z),ye(["m","mm"],4);var dn=Q("Minutes",!1);Y("s",["ss",2],0,"second"),H("second","s"),z("second",15),pe("s",ie),pe("ss",ie,Z),ye(["s","ss"],5);var hn,fn,pn=Q("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),z("millisecond",16),pe("S",oe,X),pe("SS",oe,Z),pe("SSS",oe,ee),hn="SSSS";hn.length<=9;hn+="S")pe(hn,ce);function mn(e,t){t[6]=G(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ye(hn,mn);fn=Q("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var _n=b.prototype;function gn(e){return e}_n.add=Wt,_n.calendar=function(e,t){1===arguments.length&&(Kt(arguments[0])?(e=arguments[0],t=void 0):$t(arguments[0])&&(t=arguments[0],e=void 0));var n=e||St(),i=Yt(n,this).startOf("day"),r=a.calendarFormat(this,i)||"sameElse",o=t&&(T(t[r])?t[r].call(this,n):t[r]);return this.format(o||this.localeData().calendar(r,this,St(n)))},_n.clone=function(){return new b(this)},_n.diff=function(e,t,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Yt(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":r=Jt(this,i)/12;break;case"month":r=Jt(this,i);break;case"quarter":r=Jt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:W(r)},_n.endOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},_n.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(St(),e)},_n.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(St(),e)},_n.get=function(e){return T(this[e=N(e)])?this[e]():this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},_n.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},_n.isBetween=function(e,t,n,i){var a=w(e)?e:St(e),r=w(t)?t:St(t);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))},_n.isSame=function(e,t){var n,i=w(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},_n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},_n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},_n.isValid=function(){return _(this)},_n.lang=Zt,_n.locale=Xt,_n.localeData=en,_n.max=xt,_n.min=Mt,_n.parsingFlags=function(){return f({},m(this))},_n.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:j[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=B(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(T(this[e=N(e)]))return this[e](t);return this},_n.startOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},_n.subtract=Gt,_n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},_n.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},_n.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},_n.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},_n.eraYear=function(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-a(r[e].since).year())*n+r[e].offset;return this.year()},_n.year=Oe,_n.isLeapYear=function(){return U(this.year())},_n.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},_n.month=Le,_n.daysInMonth=function(){return we(this.year(),this.month())},_n.week=_n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},_n.isoWeek=_n.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},_n.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},_n.weeksInWeekYear=function(){var e=this.localeData()._week;return Ve(this.weekYear(),e.dow,e.doy)},_n.isoWeeksInYear=function(){return Ve(this.year(),1,4)},_n.isoWeeksInISOWeekYear=function(){return Ve(this.isoWeekYear(),1,4)},_n.date=un,_n.day=_n.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},_n.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},_n.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},_n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},_n.hour=_n.hours=Ze,_n.minute=_n.minutes=dn,_n.second=_n.seconds=pn,_n.millisecond=_n.milliseconds=fn,_n.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ft(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Ut(this,Nt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ft(this)},_n.utc=function(e){return this.utcOffset(0,e)},_n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=qt,_n.isUTC=qt,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=D("dates accessor is deprecated. Use date instead.",un),_n.months=D("months accessor is deprecated. Use month instead",Le),_n.years=D("years accessor is deprecated. Use year instead",Oe),_n.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),_n.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=Ct(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0;for(i=0;i<a;i++)G(e[i])!==G(t[i])&&o++;return o+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var vn=L.prototype;function yn(e,t,n,i){var a=lt(),r=p().set(i,t);return a[n](r,e)}function kn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return yn(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=yn(e,i,n,"month");return a}function bn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,r=lt(),o=e?r._week.dow:0,s=[];if(null!=n)return yn(t,(n+o)%7,i,"day");for(a=0;a<7;a++)s[a]=yn(t,(a+o)%7,i,"day");return s}vn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},vn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vn.invalidDate=function(){return this._invalidDate},vn.ordinal=function(e){return this._ordinal.replace("%d",e)},vn.preparse=gn,vn.postformat=gn,vn.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return T(a)?a(e,t,n,i):a.replace(/%d/i,e)},vn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},vn.set=function(e){var t,n;for(n in e)s(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vn.eras=function(e,t){var n,i,r,o=this._eras||lt("en")._eras;for(n=0,i=o.length;n<i;++n){switch(typeof o[n].since){case"string":r=a(o[n].since).startOf("day"),o[n].since=r.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":r=a(o[n].until).startOf("day").valueOf(),o[n].until=r.valueOf()}}return o},vn.erasParse=function(e,t,n){var i,a,r,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,a=l.length;i<a;++i)if(r=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(r===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([r,o,s].indexOf(e)>=0)return l[i]},vn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},vn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},vn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},vn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},vn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},vn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vn.monthsParse=function(e,t,n){var i,a,r;if(this._monthsParseExact)return Te.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},vn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},vn.firstDayOfYear=function(){return this._week.doy},vn.firstDayOfWeek=function(){return this._week.dow},vn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},vn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vn.weekdaysParse=function(e,t,n){var i,a,r;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},vn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",ot),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",lt);var wn=Math.abs;function Cn(e,t,n,i){var a=Nt(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Mn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Tn=xn("ms"),An=xn("s"),Ln=xn("m"),In=xn("h"),En=xn("d"),On=xn("w"),Rn=xn("M"),Pn=xn("Q"),Yn=xn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=Fn("milliseconds"),Vn=Fn("seconds"),Hn=Fn("minutes"),Nn=Fn("hours"),Bn=Fn("days"),jn=Fn("months"),zn=Fn("years"),Un=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}var Qn=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,a,r,o,s,l=Qn(this._milliseconds)/1e3,c=Qn(this._days),u=Qn(this._months),d=this.asSeconds();return d?(e=W(l/60),t=W(e/60),l%=60,e%=60,n=W(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",r=Kn(this._months)!==Kn(d)?"-":"",o=Kn(this._days)!==Kn(d)?"-":"",s=Kn(this._milliseconds)!==Kn(d)?"-":"",a+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var Jn=Lt.prototype;return Jn.isValid=function(){return this._isValid},Jn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Jn.add=function(e,t){return Cn(this,e,t,1)},Jn.subtract=function(e,t){return Cn(this,e,t,-1)},Jn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(n=this._months+Sn(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Jn.asMilliseconds=Tn,Jn.asSeconds=An,Jn.asMinutes=Ln,Jn.asHours=In,Jn.asDays=En,Jn.asWeeks=On,Jn.asMonths=Rn,Jn.asQuarters=Pn,Jn.asYears=Yn,Jn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Jn._bubble=function(){var e,t,n,i,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*Dn(Mn(s)+o),o=0,s=0),l.milliseconds=r%1e3,e=W(r/1e3),l.seconds=e%60,t=W(e/60),l.minutes=t%60,n=W(t/60),l.hours=n%24,o+=W(n/24),s+=a=W(Sn(o)),o-=Dn(Mn(a)),i=W(s/12),s%=12,l.days=o,l.months=s,l.years=i,this},Jn.clone=function(){return Nt(this)},Jn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},Jn.milliseconds=qn,Jn.seconds=Vn,Jn.minutes=Hn,Jn.hours=Nn,Jn.days=Bn,Jn.weeks=function(){return W(this.days()/7)},Jn.months=jn,Jn.years=zn,Jn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,a=!1,r=Wn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(r=Object.assign({},Wn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),i=function(e,t,n,i){var a=Nt(e).abs(),r=Un(a.as("s")),o=Un(a.as("m")),s=Un(a.as("h")),l=Un(a.as("d")),c=Un(a.as("M")),u=Un(a.as("w")),d=Un(a.as("y")),h=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,Gn.apply(null,h)}(this,!a,r,n=this.localeData()),a&&(i=n.pastFuture(+this,i)),n.postformat(i)},Jn.toISOString=$n,Jn.toString=$n,Jn.toJSON=$n,Jn.locale=Xt,Jn.localeData=en,Jn.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),Jn.lang=Zt,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),a.version="2.26.0",t=St,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=p,a.unix=function(e){return St(1e3*e)},a.months=function(e,t){return kn(e,t,"months")},a.isDate=d,a.locale=ot,a.invalid=g,a.duration=Nt,a.isMoment=w,a.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},a.parseZone=function(){return St.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=It,a.monthsShort=function(e,t){return kn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,i,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(A(tt[e]._config,t)):(null!=(i=rt(e))&&(a=i._config),t=A(a,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return S(tt)},a.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},a.normalizeUnits=N,a.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=_n,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n("YuTi")(e))},x6pH:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n("wd/R"))},xijO:function(e,t,n){"use strict";n.r(t);var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.default=function(e){return null!=e&&"object"===(void 0===e?"undefined":i(e))&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}},yPMs:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,a){var r=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),a=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),i>0&&(r+=(""!==r?" ":"")+t[i]+"maH"),a>0&&(r+=(""!==r?" ":"")+t[a]),""===r?"pagh":r}(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},zUnb:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.r(t);var a=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=e},get useDeprecatedSynchronousErrorHandling(){return a}};function o(e){setTimeout((function(){throw e}),0)}var s={closed:!0,next:function(e){},error:function(e){if(r.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete:function(){}},l=Array.isArray||function(e){return e&&"number"==typeof e.length};function c(e){return null!==e&&"object"==typeof e}var u,d=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),h=((u=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,a=this._unsubscribe,r=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(i(a))try{a.call(this)}catch(p){t=p instanceof d?f(p.errors):[p]}if(l(r))for(var s=-1,u=r.length;++s<u;){var h=r[s];if(c(h))try{h.unsubscribe()}catch(p){t=t||[],p instanceof d?t=t.concat(f(p.errors)):t.push(p)}}if(t)throw new d(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var a=n._parentOrParents;if(null===a)n._parentOrParents=this;else if(a instanceof e){if(a===this)return n;n._parentOrParents=[a,this]}else{if(-1!==a.indexOf(this))return n;a.push(this)}var r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new u),u);function f(e){return e.reduce((function(e,t){return e.concat(t instanceof d?t.errors:t)}),[])}var p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;switch(_classCallCheck(this,n),(r=t.call(this)).syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=s;break;case 1:if(!e){r.destination=s;break}if("object"==typeof e){e instanceof n?(r.syncErrorThrowable=e.syncErrorThrowable,r.destination=e,e.add(_assertThisInitialized(r))):(r.syncErrorThrowable=!0,r.destination=new _(_assertThisInitialized(r),e));break}default:r.syncErrorThrowable=!0,r.destination=new _(_assertThisInitialized(r),e,i,a)}return r}return _createClass(n,[{key:p,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var a=new n(e,t,i);return a.syncErrorThrowable=!1,a}}]),n}(h),_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,r,o){var l,c;_classCallCheck(this,n),(l=t.call(this))._parentSubscriber=e;var u=_assertThisInitialized(l);return i(a)?c=a:a&&(c=a.next,r=a.error,o=a.complete,a!==s&&(i((u=Object.create(a)).unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(_assertThisInitialized(l)))),l._context=u,l._next=c,l._error=r,l._complete=o,l}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=r.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(o(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(m),g="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(e){return e}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k(t)}function k(e){return 0===e.length?v:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var b,w=((b=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,a=function(e,t,n){if(e){if(e instanceof m)return e;if(e[p])return e[p]()}return e||t||n?new m(e,t,n):new m(s)}(e,t,n);if(a.add(i?i.call(a,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),r.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){r.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,a=t.isStopped;if(n||a)return!1;e=i&&i instanceof m?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=C(t))((function(t,i){var a;a=n.subscribe((function(t){try{e(t)}catch(n){i(n),a&&a.unsubscribe()}}),i,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:g,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:k(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=C(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))}}]),e}()).create=function(e){return new b(e)},b);function C(e){if(e||(e=r.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var D,S=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).subject=e,a.subscriber=i,a.closed=!1,a}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(h),x=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).destination=e,i}return n}(m),T=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:p,value:function(){return new x(this)}},{key:"lift",value:function(e){var t=new A(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new S;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),a=0;a<n;a++)i[a].next(e)}},{key:"error",value:function(e){if(this.closed)throw new S;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),a=0;a<n;a++)i[a].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new S;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new S;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new S;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new M(this,e))}},{key:"asObservable",value:function(){var e=new w;return e.source=this,e}}]),n}(w)).create=function(e,t){return new A(e,t)},D),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).destination=e,a.source=i,a}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):h.EMPTY}}]),n}(T);function L(e){return e&&"function"==typeof e.schedule}var I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this)).parent=e,r.outerValue=i,r.outerIndex=a,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(m),E=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var O="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",R=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function P(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Y=function(e){if(e&&"function"==typeof e[g])return i=e,function(e){var t=i[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(R(e))return E(e);if(P(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,o),e};if(e&&"function"==typeof e[O])return t=e,function(e){for(var n=t[O]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,i,a=c(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(a," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.")};function F(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new I(e,n,i);if(!a.closed)return t instanceof w?t.subscribe(a):Y(t)(a)}var q=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,a){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(m);function V(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new H(e,t))}}var H=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new N(e,this.project,this.thisArg))}}]),e}(),N=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.count=0,r.thisArg=a||_assertThisInitialized(r),r}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(m);function B(e,t){return new w((function(n){var i=new h,a=0;return i.add(t.schedule((function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function j(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new w((function(n){var i=new h;return i.add(t.schedule((function(){var a=e[g]();i.add(a.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}))}(e,t);if(P(e))return function(e,t){return new w((function(n){var i=new h;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}))}(e,t);if(R(e))return B(e,t);if(function(e){return e&&"function"==typeof e[O]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w((function(n){var i,a=new h;return a.add((function(){i&&"function"==typeof i.return&&i.return()})),a.add(t.schedule((function(){i=e[O](),a.add(t.schedule((function(){if(!n.closed){var e,t;try{var a=i.next();e=a.value,t=a.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}})))}))),a}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof w?e:new w(Y(e))}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(z((function(n,i){return j(e(n,i)).pipe(V((function(e,a){return t(n,e,i,a)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new U(e,n))})}var U=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new W(e,this.project,this.concurrent))}}]),e}(),W=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.concurrent=r,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=new I(this,t,n),a=this.destination;a.add(i);var r=F(this,e,void 0,void 0,i);r!==i&&a.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,i,a){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(q);function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return z(v,e)}function Q(e,t){return t?B(e,t):new w(E(e))}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,a=null,r=t[t.length-1];return L(r)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof r&&(i=t.pop()),null===a&&1===t.length&&t[0]instanceof w?t[0]:G(i)(Q(t,a))}function $(){return function(e){return e.lift(new X(e))}}var J,X=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new Z(e,n),a=t.subscribe(i);return i.closed||(i.connection=n.connect()),a}}]),e}(),Z=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).connectable=i,a}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(m),ee={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).source=e,a.subjectFactory=i,a._refCount=0,a._isComplete=!1,a}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new te(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}},{key:"refCount",value:function(){return $()(this)}}]),n}(w).prototype)._subscribe},_isComplete:{value:J._isComplete,writable:!0},getSubject:{value:J.getSubject},connect:{value:J.connect},refCount:{value:J.refCount}},te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).connectable=i,a}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(x);function ne(){return new T}function ie(){return function(e){return $()((t=ne,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,ee);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ae(e){return{toString:e}.toString()}function re(e,t,n){return ae((function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof a)return i.apply(this,t),this;var r=_construct(a,t);return o.annotation=r,o;function o(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(r),e}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a}))}var oe=re("Inject",(function(e){return{token:e}})),se=re("Optional"),le=re("Self"),ce=re("SkipSelf"),ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(var t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function he(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var pe=fe;function me(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function _e(e){return ge(e,e[ye])||ge(e,e[we])}function ge(e,t){return t&&t.token===e?t:null}function ve(e){return e&&(e.hasOwnProperty(ke)||e.hasOwnProperty(Ce))?e[ke]:null}var ye=de({"\u0275prov":de}),ke=de({"\u0275inj":de}),be=de({"\u0275provFallback":de}),we=de({ngInjectableDef:de}),Ce=de({ngInjectorDef:de});function De(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Me=de({__forward_ref__:de});function xe(e){return e.__forward_ref__=xe,e.toString=function(){return De(this())},e}function Te(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(Me)&&e.__forward_ref__===xe}var Le,Ie="undefined"!=typeof globalThis&&globalThis,Ee="undefined"!=typeof window&&window,Oe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Re="undefined"!=typeof global&&global,Pe=Ie||Re||Ee||Oe,Ye=de({"\u0275cmp":de}),Fe=de({"\u0275dir":de}),qe=de({"\u0275pipe":de}),Ve=de({"\u0275mod":de}),He=de({"\u0275loc":de}),Ne=de({"\u0275fac":de}),Be=de({__NG_ELEMENT_ID__:de}),je=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=fe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ze=new je("INJECTOR",-1),Ue={},We=/\n/gm,Ge=de({provide:String,useValue:de}),Qe=void 0;function Ke(e){var t=Qe;return Qe=e,t}function $e(e){var t=Le;return Le=e,t}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;if(void 0===Qe)throw new Error("inject() must be called from an injection context");return null===Qe?et(e,void 0,t):Qe.get(e,t&ue.Optional?null:void 0,t)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;return(Le||Je)(Te(e),t)}var Ze=Xe;function et(e,t,n){var i=_e(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&ue.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(De(e),"]"))}function tt(e){for(var t=[],n=0;n<e.length;n++){var i=Te(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var a=void 0,r=ue.Default,o=0;o<i.length;o++){var s=i[o];s instanceof se||"Optional"===s.ngMetadataName||s===se?r|=ue.Optional:s instanceof ce||"SkipSelf"===s.ngMetadataName||s===ce?r|=ue.SkipSelf:s instanceof le||"Self"===s.ngMetadataName||s===le?r|=ue.Self:a=s instanceof oe||s===oe?s.token:s}t.push(Xe(a,r))}else t.push(Xe(i))}return t}var nt=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;if(t===Ue){var n=new Error("NullInjectorError: No provider for ".concat(De(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),it=function e(){_classCallCheck(this,e)},at=function e(){_classCallCheck(this,e)};function rt(e,t){e.forEach((function(e){return Array.isArray(e)?rt(e,t):t(e)}))}function ot(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function st(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lt(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function ct(e,t,n){var i=dt(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var a=e.length;if(a==t)e.push(n,i);else if(1===a)e.push(i,e[0]),e[0]=n;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function ut(e,t){var n=dt(e,t);if(n>=0)return e[1|n]}function dt(e,t){return function(e,t,n){for(var i=0,a=e.length>>1;a!==i;){var r=i+(a-i>>1),o=e[r<<1];if(t===o)return r<<1;o>t?a=r:i=r+1}return~(a<<1)}(e,t)}var ht=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),ft=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),pt={},mt=[],_t=0;function gt(e){return ae((function(){var t=e.type,n=t.prototype,i={},a={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ht.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ft.Emulated,id:"c",styles:e.styles||mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,o=e.features,s=e.pipes;return a.id+=_t++,a.inputs=wt(e.inputs,i),a.outputs=wt(e.outputs),o&&o.forEach((function(e){return e(a)})),a.directiveDefs=r?function(){return("function"==typeof r?r():r).map(vt)}:null,a.pipeDefs=s?function(){return("function"==typeof s?s():s).map(yt)}:null,a}))}function vt(e){return St(e)||function(e){return e[Fe]||null}(e)}function yt(e){return function(e){return e[qe]||null}(e)}var kt={};function bt(e){var t={type:e.type,bootstrap:e.bootstrap||mt,declarations:e.declarations||mt,imports:e.imports||mt,exports:e.exports||mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&ae((function(){kt[e.id]=e.type})),t}function wt(e,t){if(null==e)return pt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var a=e[i],r=a;Array.isArray(a)&&(r=a[1],a=a[0]),n[a]=i,t&&(t[a]=r)}return n}var Ct=gt;function Dt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function St(e){return e[Ye]||null}function Mt(e,t){return e.hasOwnProperty(Ne)?e[Ne]:null}function xt(e,t){var n=e[Ve]||null;if(!n&&!0===t)throw new Error("Type ".concat(De(e)," does not have '\u0275mod' property."));return n}function Tt(e){return Array.isArray(e)&&"object"==typeof e[1]}function At(e){return Array.isArray(e)&&!0===e[1]}function Lt(e){return 0!=(8&e.flags)}function It(e){return 2==(2&e.flags)}function Et(e){return 1==(1&e.flags)}function Ot(e){return null!==e.template}function Rt(e){return 0!=(512&e[2])}var Pt=void 0;function Yt(){return void 0!==Pt?Pt:"undefined"!=typeof document?document:void 0}function Ft(e){return!!e.listen}var qt={createRenderer:function(e,t){return Yt()}};function Vt(e){for(;Array.isArray(e);)e=e[0];return e}function Ht(e,t){return Vt(t[e+19])}function Nt(e,t){return Vt(t[e.index])}function Bt(e,t){return e.data[t+19]}function jt(e,t){return e[t+19]}function zt(e,t){var n=t[e];return Tt(n)?n:n[0]}function Ut(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Wt(e){return 4==(4&e[2])}function Gt(e){return 128==(128&e[2])}function Qt(e,t){return null===e||null==t?null:e[t]}function Kt(e){e[18]=0}var $t={lFrame:gn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Jt(){return $t.bindingsEnabled}function Xt(){return $t.lFrame.lView}function Zt(){return $t.lFrame.tView}function en(e){$t.lFrame.contextLView=e}function tn(){return $t.lFrame.previousOrParentTNode}function nn(e,t){$t.lFrame.previousOrParentTNode=e,$t.lFrame.isParent=t}function an(){return $t.lFrame.isParent}function rn(){$t.lFrame.isParent=!1}function on(){return $t.checkNoChangesMode}function sn(e){$t.checkNoChangesMode=e}function ln(){var e=$t.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cn(){return $t.lFrame.bindingIndex++}function un(e){var t=$t.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dn(e,t){var n=$t.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function hn(){return $t.lFrame.currentQueryIndex}function fn(e){$t.lFrame.currentQueryIndex=e}function pn(e,t){var n=_n();$t.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function mn(e,t){var n=_n(),i=e[1];$t.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex}function _n(){var e=$t.lFrame,t=null===e?null:e.child;return null===t?gn(e):t}function gn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function vn(){var e=$t.lFrame;return $t.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var yn=vn;function kn(){var e=vn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return $t.lFrame.selectedIndex}function wn(e){$t.lFrame.selectedIndex=e}function Cn(){var e=$t.lFrame;return Bt(e.tView,e.selectedIndex)}function Dn(){$t.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){$t.lFrame.currentNamespace=null}function Mn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var a=e.data[n];a.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,a.afterContentInit),a.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,a.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a.afterContentChecked)),a.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,a.afterViewInit),a.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,a.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,a.afterViewChecked)),null!=a.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a.onDestroy)}}function xn(e,t,n){Ln(e,t,3,n)}function Tn(e,t,n,i){(3&e[2])===n&&Ln(e,t,n,i)}function An(e,t){var n=e[2];(3&n)===t&&(n&=1023,n+=1,e[2]=n)}function Ln(e,t,n,i){for(var a=null!=i?i:-1,r=0,o=void 0!==i?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(r=t[o],null!=i&&r>=i)break}else t[o]<0&&(e[18]+=65536),(r<a||-1==a)&&(In(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function In(e,t,n,i){var a=n[i]<0,r=n[i+1],o=e[a?-n[i]:n[i]];a?e[2]>>10<e[18]>>16&&(3&e[2])===t&&(e[2]+=1024,r.call(o)):r.call(o)}var En=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function On(e,t,n){for(var i=Ft(e),a=0;a<n.length;){var r=n[a];if("number"==typeof r){if(0!==r)break;a++;var o=n[a++],s=n[a++],l=n[a++];i?e.setAttribute(t,s,l,o):t.setAttributeNS(o,s,l)}else{var c=r,u=n[++a];Pn(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),a++}}return a}function Rn(e){return 3===e||4===e||6===e}function Pn(e){return 64===e.charCodeAt(0)}function Yn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var a=t[i];"number"==typeof a?n=a:0===n||Fn(e,n,a,null,-1===n||2===n?t[++i]:null)}return e}function Fn(e,t,n,i,a){var r=0,o=e.length;if(-1===t)o=-1;else for(;r<e.length;){var s=e[r++];if("number"==typeof s){if(s===t){o=-1;break}if(s>t){o=r-1;break}}}for(;r<e.length;){var l=e[r];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==a&&(e[r+1]=a));if(i===e[r+1])return void(e[r+2]=a)}r++,null!==i&&r++,null!==a&&r++}-1!==o&&(e.splice(o,0,t),r=o+1),e.splice(r++,0,n),null!==i&&e.splice(r++,0,i),null!==a&&e.splice(r++,0,a)}function qn(e){return-1!==e}function Vn(e){return 32767&e}function Hn(e){return e>>16}function Nn(e,t){for(var n=Hn(e),i=t;n>0;)i=i[15],n--;return i}function Bn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Bn(e)}var zn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pe);function Un(e){return{name:"body",target:e.ownerDocument.body}}function Wn(e){return e instanceof Function?e():e}var Gn=!0;function Qn(e){var t=Gn;return Gn=e,t}var Kn=0;function $n(e,t){var n=Xn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Jn(i.data,e),Jn(t,null),Jn(i.blueprint,null));var a=Zn(e,t),r=e.injectorIndex;if(qn(a))for(var o=Vn(a),s=Nn(a,t),l=s[1].data,c=0;c<8;c++)t[r+c]=s[o+c]|l[o+c];return t[r+8]=a,r}function Jn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Zn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],i=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function ei(e,t,n){!function(e,t,n){var i="string"!=typeof n?n[Be]:n.charCodeAt(0)||0;null==i&&(i=n[Be]=Kn++);var a=255&i,r=1<<a,o=64&a,s=32&a,l=t.data;128&a?o?s?l[e+7]|=r:l[e+6]|=r:s?l[e+5]|=r:l[e+4]|=r:o?s?l[e+3]|=r:l[e+2]|=r:s?l[e+1]|=r:l[e]|=r}(e,t,n)}function ti(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ue.Default,a=arguments.length>4?arguments[4]:void 0;if(null!==e){var r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Be];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){pn(t,e);try{var o=r();if(null!=o||i&ue.Optional)return o;throw new Error("No provider for ".concat(jn(n),"!"))}finally{yn()}}else if("number"==typeof r){if(-1===r)return new li(e,t);var s=null,l=Xn(e,t),c=-1,u=i&ue.Host?t[16][6]:null;for((-1===l||i&ue.SkipSelf)&&(c=-1===l?Zn(e,t):t[l+8],si(i,!1)?(s=t[1],l=Vn(c),t=Nn(c,t)):l=-1);-1!==l;){c=t[l+8];var d=t[1];if(oi(r,l,d.data)){var h=ii(l,t,n,s,i,u);if(h!==ni)return h}si(i,t[1].data[l+8]===u)&&oi(r,l,t)?(s=d,l=Vn(c),t=Nn(c,t)):l=-1}}}if(i&ue.Optional&&void 0===a&&(a=null),0==(i&(ue.Self|ue.Host))){var f=t[9],p=$e(void 0);try{return f?f.get(n,a,i&ue.Optional):et(n,a,i&ue.Optional)}finally{$e(p)}}if(i&ue.Optional)return a;throw new Error("NodeInjector: NOT_FOUND [".concat(jn(n),"]"))}var ni={};function ii(e,t,n,i,a,r){var o=t[1],s=o.data[e+8],l=ai(s,o,n,null==i?It(s)&&Gn:i!=o&&3===s.type,a&ue.Host&&r===s);return null!==l?ri(t,o,l,s):ni}function ai(e,t,n,i,a){for(var r=e.providerIndexes,o=t.data,s=65535&r,l=e.directiveStart,c=r>>16,u=a?s+c:e.directiveEnd,d=i?s:s+c;d<u;d++){var h=o[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(a){var f=o[l];if(f&&Ot(f)&&f.type===n)return l}return null}function ri(e,t,n,i){var a=e[n],r=t.data;if(a instanceof En){var o=a;if(o.resolving)throw new Error("Circular dep for ".concat(jn(r[n])));var s,l=Qn(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=$e(o.injectImpl)),pn(e,i);try{a=e[n]=o.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.onChanges,a=t.onInit,r=t.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,a),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{o.injectImpl&&$e(s),Qn(l),o.resolving=!1,yn()}}return a}function oi(e,t,n){var i=64&e,a=32&e;return!!((128&e?i?a?n[t+7]:n[t+6]:a?n[t+5]:n[t+4]:i?a?n[t+3]:n[t+2]:a?n[t+1]:n[t])&1<<e)}function si(e,t){return!(e&ue.Self||e&ue.Host&&t)}var li=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return ti(this._tNode,this._lView,e,void 0,t)}}]),e}();function ci(e){return ae((function(){var t=Object.getPrototypeOf(e.prototype).constructor,n=t[Ne]||function e(t){var n=t;if(Ae(t))return function(){var t=e(Te(n));return t?t():null};var i=Mt(n);if(null===i){var a=ve(n);i=a&&a.factory}return i||null}(t);return null!==n?n:function(e){return new e}}))}function ui(e){return e.ngDebugContext}function di(e){return e.ngOriginalError}function hi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var fi=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||hi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?ui(e)?ui(e):this._findContext(di(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=di(e);t&&di(t);)t=di(t);return t}}]),e}(),pi=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}(),mi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(pi),_i=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(pi),gi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(pi),vi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(pi),yi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(pi);function ki(e){return e instanceof pi?e.changingThisBreaksApplicationSecurity:e}function bi(e,t){var n=wi(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===t}function wi(e){return e instanceof pi&&e.getTypeName()||null}var Ci=!0,Di=!1;function Si(){return Di=!0,Ci}var Mi=function(){function e(t){_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var n=this.inertDocument.body;if(null==n){var i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i),n=this.inertDocument.createElement("body"),i.appendChild(n)}n.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!n.querySelector||n.querySelector("svg")?(n.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(i){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var a=e.firstChild;a;)a.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(a),a=a.nextSibling}}]),e}(),xi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ti=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ai(e){return(e=String(e)).match(xi)||e.match(Ti)?e:(Si()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function Li(e){var t,n={},i=_createForOfIteratorHelper(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(a){i.e(a)}finally{i.f()}return n}function Ii(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var a=0,r=n;a<r.length;a++){var o=r[a];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var Ei,Oi=Li("area,br,col,hr,img,wbr"),Ri=Li("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pi=Li("rp,rt"),Yi=Ii(Pi,Ri),Fi=Ii(Oi,Ii(Ri,Li("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ii(Pi,Li("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Yi),qi=Li("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vi=Li("srcset"),Hi=Ii(qi,Vi,Li("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Li("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ni=Li("script,style,template"),Bi=function(){function e(){_classCallCheck(this,e),this.sanitizedSomething=!1,this.buf=[]}return _createClass(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Fi.hasOwnProperty(t))return this.sanitizedSomething=!0,!Ni.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,a=0;a<i.length;a++){var r=i.item(a),o=r.name,s=o.toLowerCase();if(Hi.hasOwnProperty(s)){var l=r.value;qi[s]&&(l=Ai(l)),Vi[s]&&(n=l,l=(n=String(n)).split(",").map((function(e){return Ai(e.trim())})).join(", ")),this.buf.push(" ",o,'="',Ui(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Fi.hasOwnProperty(t)&&!Oi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Ui(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zi=/([^\#-~ |!])/g;function Ui(e){return e.replace(/&/g,"&amp;").replace(ji,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(zi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Wi(e,t){var n=null;try{Ei=Ei||new Mi(e);var i=t?String(t):"";n=Ei.getInertBodyElement(i);var a=5,r=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=r,r=n.innerHTML,n=Ei.getInertBodyElement(i)}while(i!==r);var o=new Bi,s=o.sanitizeChildren(Gi(n)||n);return Si()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=Gi(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}function Gi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qi=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),Ki=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),$i=/^url\(([^)]+)\)$/;function Ji(e){var t=Zi();return t?t.sanitize(Qi.HTML,e)||"":bi(e,"HTML")?ki(e):Wi(Yt(),Bn(e))}function Xi(e){var t=Zi();return t?t.sanitize(Qi.URL,e)||"":bi(e,"URL")?ki(e):Ai(Bn(e))}function Zi(){var e=Xt();return e&&e[12]}function ea(e,t){e.__ngContext__=t}function ta(e){throw new Error("Multiple components match node with tagname ".concat(e.tagName))}function na(){throw new Error("Cannot mix multi providers and regular providers")}function ia(e,t,n){for(var i=e.length;;){var a=e.indexOf(t,n);if(-1===a)return a;if(0===a||e.charCodeAt(a-1)<=32){var r=t.length;if(a+r===i||e.charCodeAt(a+r)<=32)return a}n=a+1}}function aa(e,t,n){for(var i=0;i<e.length;){var a=e[i++];if(n&&"class"===a){if(-1!==ia((a=e[i]).toLowerCase(),t,0))return!0}else if(1===a){for(;i<e.length&&"string"==typeof(a=e[i++]);)if(a.toLowerCase()===t)return!0;return!1}}return!1}function ra(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function oa(e,t,n){for(var i=4,a=e.attrs||[],r=function(e){for(var t=0;t<e.length;t++)if(Rn(e[t]))return t;return e.length}(a),o=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!ra(e,l,n)||""===l&&1===t.length){if(sa(i))return!1;o=!0}}else{var c=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!aa(e.attrs,c,n)){if(sa(i))return!1;o=!0}continue}var u=la(8&i?"class":l,a,0==e.type&&"ng-template"!==e.tagName,n);if(-1===u){if(sa(i))return!1;o=!0;continue}if(""!==c){var d;d=u>r?"":a[u+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==ia(h,c,0)||2&i&&c!==d){if(sa(i))return!1;o=!0}}}}else{if(!o&&!sa(i)&&!sa(l))return!1;if(o&&sa(l))continue;o=!1,i=l|1&i}}return sa(i)||o}function sa(e){return 0==(1&e)}function la(e,t,n,i){if(null===t)return-1;var a=0;if(i||!n){for(var r=!1;a<t.length;){var o=t[a];if(o===e)return a;if(3===o||6===o)r=!0;else{if(1===o||2===o){for(var s=t[++a];"string"==typeof s;)s=t[++a];continue}if(4===o)break;if(0===o){a+=4;continue}}a+=r?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){if(e[n]===t)return n;n++}return-1}(t,e)}function ca(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(oa(e,t[i],n))return!0;return!1}function ua(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var a=0;a<e.length;a++)if(e[a]!==i[a])continue e;return!0}}return!1}function da(e,t){return e?":not("+t.trim()+")":t}function ha(e){for(var t=e[0],n=1,i=2,a="",r=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&i){var s=e[++n];a+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?a+="."+o:4&i&&(a+=" "+o);else""===a||sa(o)||(t+=da(r,a),a=""),i=o,r=r||!sa(i);n++}return""!==a&&(t+=da(r,a)),t}var fa={};function pa(e){var t=e[3];return At(t)?t[3]:t}function ma(e){_a(Zt(),Xt(),bn()+e,on())}function _a(e,t,n,i){if(!i)if(3==(3&t[2])){var a=e.preOrderCheckHooks;null!==a&&xn(t,a,n)}else{var r=e.preOrderHooks;null!==r&&Tn(t,r,0,n)}wn(n)}function ga(e,t){return e<<17|t<<2}function va(e){return e>>17&32767}function ya(e){return 2|e}function ka(e){return(131068&e)>>2}function ba(e,t){return-131069&e|t<<2}function wa(e){return 1|e}function Ca(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var a=n[i],r=n[i+1];if(-1!==r){var o=e.data[r];fn(a),o.contentQueries(2,t[r],r)}}}function Da(e,t,n){return Ft(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Sa(e,t,n,i,a,r,o,s,l,c){var u=t.blueprint.slice();return u[0]=a,u[2]=140|i,Kt(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=r,u[16]=2==t.type?e[16]:u,u}function Ma(e,t,n,i,a,r){var o=n+19,s=e.data[o]||function(e,t,n,i,a,r){var o=tn(),s=an(),l=s?o:o&&o.parent,c=e.data[n]=Ya(0,l&&l!==t?l:null,i,n,a,r);return null===e.firstChild&&(e.firstChild=c),o&&(!s||null!=o.child||null===c.parent&&2!==o.type?s||(o.next=c):o.child=c),c}(e,t,o,i,a,r);return nn(s,!0),s}function xa(e,t,n){mn(t,t[6]);try{var i=e.viewQuery;null!==i&&rr(1,i,n);var a=e.template;null!==a&&La(e,t,a,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ca(e,t),e.staticViewQueries&&rr(2,e.viewQuery,n);var r=e.components;null!==r&&function(e,t){for(var n=0;n<t.length;n++)er(e,t[n])}(t,r)}finally{t[2]&=-5,kn()}}function Ta(e,t,n,i){var a=t[2];if(256!=(256&a)){mn(t,t[6]);var r=on();try{Kt(t),$t.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&La(e,t,n,2,i);var o=3==(3&a);if(!r)if(o){var s=e.preOrderCheckHooks;null!==s&&xn(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Tn(t,l,0,null),An(t,0)}if(function(e){for(var t=e[13];null!==t;){var n=void 0;if(At(t)&&(n=t[2])>>1==-1){for(var i=9;i<t.length;i++){var a=t[i],r=a[1];Gt(a)&&Ta(r,a,r.template,a[8])}0!=(1&n)&&Xa(t,e[16])}t=t[4]}}(t),null!==e.contentQueries&&Ca(e,t),!r)if(o){var c=e.contentCheckHooks;null!==c&&xn(t,c)}else{var u=e.contentHooks;null!==u&&Tn(t,u,1),An(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var i=e.expandoStartIndex,a=-1,r=0;r<n.length;r++){var o=n[r];"number"==typeof o?o<=0?(wn(0-o),a=i+=9+n[++r]):i+=o:(null!==o&&(dn(i,a),o(2,t[a])),a++)}}finally{wn(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)Za(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&rr(2,h,i),!r)if(o){var f=e.viewCheckHooks;null!==f&&xn(t,f)}else{var p=e.viewHooks;null!==p&&Tn(t,p,2),An(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),r||(t[2]&=-73)}finally{kn()}}}function Aa(e,t,n,i){var a=t[10],r=!on(),o=Wt(t);try{r&&!o&&a.begin&&a.begin(),o&&xa(e,t,i),Ta(e,t,n,i)}finally{r&&!o&&a.end&&a.end()}}function La(e,t,n,i,a){var r=bn();try{wn(-1),2&i&&t.length>19&&_a(e,t,0,on()),n(i,a)}finally{wn(r)}}function Ia(e,t,n){if(Lt(t))for(var i=t.directiveEnd,a=t.directiveStart;a<i;a++){var r=e.data[a];r.contentQueries&&r.contentQueries(1,n[a],a)}}function Ea(e,t,n){Jt()&&(function(e,t,n,i){var a=n.directiveStart,r=n.directiveEnd;e.firstCreatePass||$n(n,t),ea(i,t);for(var o=n.initialInputs,s=a;s<r;s++){var l=e.data[s],c=Ot(l);c&&Qa(t,n,l);var u=ri(t,e,s,n);ea(u,t),null!==o&&Ka(0,s-a,u,l,0,o),c&&(zt(n.index,t)[8]=u)}}(e,t,n,Nt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,a=n.directiveEnd,r=e.expandoInstructions,o=e.firstCreatePass,s=n.index-19;try{wn(s);for(var l=i;l<a;l++){var c=e.data[l],u=t[l];null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?Ba(c,u):o&&r.push(null)}}finally{wn(-1)}}(e,t,n))}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt,i=t.localNames;if(null!==i)for(var a=t.index+1,r=0;r<i.length;r+=2){var o=i[r+1],s=-1===o?n(t,e):e[o];e[a++]=s}}function Ra(e){return e.tView||(e.tView=Pa(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts))}function Pa(e,t,n,i,a,r,o,s,l,c){var u=19+i,d=u+a,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:fa);return n}(u,d);return h[1]={type:e,id:t,blueprint:h,template:n,queries:null,viewQuery:s,node:null,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c}}function Ya(e,t,n,i,a,r){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:a,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Fa(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,a):n[i]=[t,a]}return n}function qa(e,t,n,i,a,r,o,s){var l,c,u=Nt(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(dr(e,n,l,i,a),It(t)&&function(e,t){var n=zt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,a=null!=o?o(a,t.tagName||"",i):a,Ft(r)?r.setProperty(u,i,a):Pn(i)||(u.setProperty?u.setProperty(i,a):u[i]=a))}function Va(e,t,n,i){var a=!1;if(Jt()){var r=function(e,t,n){var i=e.directiveRegistry,a=null;if(i)for(var r=0;r<i.length;r++){var o=i[r];ca(n,o.selectors,!1)&&(a||(a=[]),ei($n(n,t),e,o.type),Ot(o)?(2&n.flags&&ta(n),za(e,n),a.unshift(o)):a.push(o))}return a}(e,t,n),o=null===i?null:{"":-1};if(null!==r){var s=0;a=!0,Wa(n,e.data.length,r.length);for(var l=0;l<r.length;l++){var c=r[l];c.providersResolver&&c.providersResolver(c)}ja(e,n,r.length);for(var u=!1,d=!1,h=0;h<r.length;h++){var f=r[h];n.mergedAttrs=Yn(n.mergedAttrs,f.hostAttrs),Ga(e,t,f),Ua(e.data.length-1,f,o),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128),!u&&(f.onChanges||f.onInit||f.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-19),u=!0),d||!f.onChanges&&!f.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-19),d=!0),Ha(e,f),s+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,i=e.data,a=t.attrs,r=[],o=null,s=null,l=t.directiveStart;l<n;l++){var c=i[l],u=c.inputs;r.push(null!==a?$a(u,a):null),o=Fa(u,l,o),s=Fa(c.outputs,l,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=r,t.inputs=o,t.outputs=s}(e,n),Na(e,t,s)}o&&function(e,t,n){if(t)for(var i=e.localNames=[],a=0;a<t.length;a+=2){var r=n[t[a+1]];if(null==r)throw new Error("Export of name '".concat(t[a+1],"' not found!"));i.push(t[a],r)}}(n,i,o)}return n.mergedAttrs=Yn(n.mergedAttrs,n.attrs),a}function Ha(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Na(e,t,n){for(var i=0;i<n;i++)t.push(fa),e.blueprint.push(fa),e.data.push(null)}function Ba(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ja(e,t,n){var i=19-t.index,a=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,a,n)}function za(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ua(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Ot(t)&&(n[""]=e)}}function Wa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ga(e,t,n){e.data.push(n);var i=n.factory||(n.factory=Mt(n.type)),a=new En(i,Ot(n),null);e.blueprint.push(a),t.push(a)}function Qa(e,t,n){var i=Nt(t,e),a=Ra(n),r=e[10],o=tr(e,Sa(e,a,null,n.onPush?64:16,i,t,r,r.createRenderer(i,n)));e[t.index]=o}function Ka(e,t,n,i,a,r){var o=r[t];if(null!==o)for(var s=i.setInput,l=0;l<o.length;){var c=o[l++],u=o[l++],d=o[l++];null!==s?i.setInput(n,d,c,u):n[u]=d}}function $a(e,t){for(var n=null,i=0;i<t.length;){var a=t[i];if(0!==a)if(5!==a){if("number"==typeof a)break;e.hasOwnProperty(a)&&(null===n&&(n=[]),n.push(a,e[a],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ja(e,t,n,i){return new Array(e,!0,-2,t,null,null,i,n,null)}function Xa(e,t){for(var n=e[5],i=0;i<n.length;i++){var a=n[i],r=a[3][3][16];if(r!==t&&0==(16&r[2])){var o=a[1];Ta(o,a,o.template,a[8])}}}function Za(e,t){var n=zt(t,e);if(Gt(n)&&80&n[2]){var i=n[1];Ta(i,n,i.template,n[8])}}function er(e,t){var n=zt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),xa(i,n,n[8])}function tr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function nr(e){for(;e;){e[2]|=64;var t=pa(e);if(Rt(e)&&!t)return e;e=t}return null}function ir(e,t,n){var i=t[10];i.begin&&i.begin();try{Ta(e,t,e.template,n)}catch(a){throw ur(t,a),a}finally{i.end&&i.end()}}function ar(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Ut(n),a=i[1];Aa(a,i,a.template,n)}}(e[8])}function rr(e,t,n){fn(0),t(e,n)}var or=Promise.resolve(null);function sr(e){return e[7]||(e[7]=[])}function lr(e){return e.cleanup||(e.cleanup=[])}function cr(e,t){return function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[e.index])[11]}function ur(e,t){var n=e[9],i=n?n.get(fi,null):null;i&&i.handleError(t)}function dr(e,t,n,i,a){for(var r=0;r<n.length;){var o=n[r++],s=n[r++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,a,i,s):l[s]=a}}function hr(e,t){var n=t[3];return-1===e.index?At(n)?n:null:n}function fr(e,t){var n=hr(e,t);return n?Sr(t[11],n[7]):null}function pr(e,t,n,i,a){if(null!=i){var r,o=!1;At(i)?r=i:Tt(i)&&(o=!0,i=i[0]);var s=Vt(i);0===e&&null!==n?null==a?Cr(t,n,s):wr(t,n,s,a||null):1===e&&null!==n?wr(t,n,s,a||null):2===e?function(e,t,n){var i=Sr(e,t);i&&function(e,t,n,i){Ft(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,o):3===e&&t.destroyNode(s),null!=r&&function(e,t,n,i,a){var r=n[7];r!==Vt(n)&&pr(t,e,i,r,a);for(var o=9;o<n.length;o++){var s=n[o];Lr(s[1],s,e,t,i,r)}}(t,e,r,n,a)}}function mr(e,t,n,i){var a=fr(e.node,t);a&&Lr(e,t,t[11],n?1:2,a,i)}function _r(e,t){var n=e[5],i=n.indexOf(t);n.splice(i,1)}function gr(e,t){if(!(e.length<=9)){var n=9+t,i=e[n];if(i){var a=i[17];null!==a&&a!==e&&_r(a,i),t>0&&(e[n-1][4]=i[4]);var r=st(e,9+t);mr(i[1],i,!1,null);var o=r[5];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function vr(e,t){if(!(256&t[2])){var n=t[11];Ft(n)&&n.destroyNode&&Lr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return kr(e[1],e);for(;t;){var n=null;if(Tt(t))n=t[13];else{var i=t[9];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Tt(t)&&kr(t[1],t),t=yr(t,e);null===t&&(t=e),Tt(t)&&kr(t[1],t),n=t&&t[4]}t=n}}(t)}}function yr(e,t){var n;return Tt(e)&&(n=e[6])&&2===n.type?hr(n,e):e[3]===t?null:e[3]}function kr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var a=t[n[i]];if(!(a instanceof En)){var r=n[i+1];if(Array.isArray(r))for(var o=0;o<r.length;o+=2)r[o+1].call(a[r[o]]);else r.call(a)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var i=t[7],a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){var r=n[a+1],o="function"==typeof r?r(t):Vt(t[r]),s=i[n[a+2]],l=n[a+3];"boolean"==typeof l?o.removeEventListener(n[a],s,l):l>=0?i[l]():i[-l].unsubscribe(),a+=2}else n[a].call(i[n[a+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Ft(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&At(t[3])){i!==t[3]&&_r(i,t);var a=t[5];null!==a&&a.detachView(e)}}}function br(e,t,n){for(var i=t.parent;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){var a=n[6];return 2===a.type?fr(a,n):n[0]}if(t&&5===t.type&&4&t.flags)return Nt(t,n).parentNode;if(2&i.flags){var r=e.data,o=r[r[i.index].directiveStart].encapsulation;if(o!==ft.ShadowDom&&o!==ft.Native)return null}return Nt(i,n)}function wr(e,t,n,i){Ft(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function Cr(e,t,n){Ft(e)?e.appendChild(t,n):t.appendChild(n)}function Dr(e,t,n,i){null!==i?wr(e,t,n,i):Cr(e,t,n)}function Sr(e,t){return Ft(e)?e.parentNode(t):t.parentNode}function Mr(e,t){if(2===e.type){var n=hr(e,t);return null===n?null:Tr(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?Nt(e,t):null}function xr(e,t,n,i){var a=br(e,i,t);if(null!=a){var r=t[11],o=Mr(i.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)Dr(r,a,n[s],o);else Dr(r,a,n,o)}}function Tr(e,t){var n=9+e+1;if(n<t.length){var i=t[n],a=i[1].firstChild;if(null!==a)return function e(t,n){if(null!==n){var i=n.type;if(3===i)return Nt(n,t);if(0===i)return Tr(-1,t[n.index]);if(4===i||5===i){var a=n.child;if(null!==a)return e(t,a);var r=t[n.index];return At(r)?Tr(-1,r):Vt(r)}var o=t[16],s=o[6],l=pa(o),c=s.projection[n.projection];return null!=c?e(l,c):e(t,n.next)}return null}(i,a)}return t[7]}function Ar(e,t,n,i,a,r,o){for(;null!=n;){var s=i[n.index],l=n.type;o&&0===t&&(s&&ea(Vt(s),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Ar(e,t,n.child,i,a,r,!1),pr(t,e,a,s,r)):1===l?Ir(e,t,i,n,a,r):pr(t,e,a,s,r)),n=o?n.projectionNext:n.next}}function Lr(e,t,n,i,a,r){Ar(n,i,e.node.child,t,a,r,!1)}function Ir(e,t,n,i,a,r){var o=n[16],s=o[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)pr(t,e,a,s[l],r);else Ar(e,t,s,o[3],a,r,!0)}function Er(e,t,n){Ft(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Or(e,t,n){Ft(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var Rr,Pr,Yr,Fr=function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}return _createClass(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}vr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,i;t=this._lView[1],i=e,sr(n=this._lView).push(i),t.firstCreatePass&&lr(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){nr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ir(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){sn(!0);try{ir(e,t,n)}finally{sn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Lr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,i,a){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=n[i.index];if(null!==o&&a.push(Vt(o)),At(o))for(var s=9;s<o.length;s++){var l=o[s],c=l[1].firstChild;null!==c&&e(l[1],l,c,a)}var u=i.type;if(4===u||5===u)e(t,n,i.child,a);else if(1===u){var d=n[16],h=d[6],f=pa(d),p=h.projection[i.projection];null!==p&&null!==f&&e(f[1],f,p,a,!0)}i=r?i.projectionNext:i.next}return a}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),qr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){ar(this._view)}},{key:"checkNoChanges",value:function(){!function(e){sn(!0);try{ar(e)}finally{sn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Fr);function Vr(e,t,n){return Rr||(Rr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(e)),new Rr(Nt(t,n))}function Hr(e,t,n,i){return Pr||(Pr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this))._declarationView=e,r._declarationTContainer=i,r.elementRef=a,r}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Sa(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(t)),xa(t,n,e);var a=new Fr(n);return a._tViewNode=n[6],a}}]),n}(e)),0===n.type?new Pr(i,n,Vr(t,n,i)):null}function Nr(e,t,n,i){var a;Yr||(Yr=function(e){_inherits(i,e);var n=_createSuper(i);function i(e,t,a){var r;return _classCallCheck(this,i),(r=n.call(this))._lContainer=e,r._hostTNode=t,r._hostView=a,r}return _createClass(i,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,a){var r=n||this.parentInjector;if(!a&&null==e.ngModule&&r){var o=r.get(it,null);o&&(a=o)}var s=e.create(r,i,void 0,a);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),At(n[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var r=n[3],o=new Yr(r,r[6],r[3]);o.detach(o.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,i){var a=9+i,r=n.length;i>0&&(n[a-1][4]=t),i<r-9?(t[4]=n[a],ot(n,9+i,t)):(n.push(t),t[4]=null),t[3]=n;var o=t[17];null!==o&&n!==o&&function(e,t){var n=e[5],i=t[3][3][16];16!=(16&i[2])&&t[16]!==i&&(e[2]|=1),null===n?e[5]=[t]:n.push(t)}(o,t);var s=t[5];null!==s&&s.insertView(e),t[2]|=128}(i,n,this._lContainer,s),mr(i,n,!0,Tr(s,this._lContainer)),e.attachToViewContainerRef(this),ot(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1);(function(e,t){var n=gr(e,t);n&&vr(n[1],n)})(this._lContainer,t),st(this._lContainer[8],t)}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=gr(this._lContainer,t);return n&&null!=st(this._lContainer[8],t)?new Fr(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Vr(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new li(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Zn(this._hostTNode,this._hostView),t=Nn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,a=n.parent;null!=a.parent&&i==a.parent.injectorIndex;)a=a.parent;return a}for(var r=Hn(e),o=t,s=t[6];r>1;)s=(o=o[15])[6],r--;return s}(e,this._hostView,this._hostTNode);return qn(e)&&null!=n?new li(n,t):new li(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),i}(e));var r=i[n.index];if(At(r))(function(e,t){e[2]=-2})(a=r);else{var o;if(4===n.type)o=Vt(r);else if(o=i[11].createComment(""),Rt(i)){var s=i[11],l=Nt(n,i);wr(s,Sr(s,l),o,function(e,t){return Ft(e)?e.nextSibling(t):t.nextSibling}(s,l))}else xr(i[1],i,o,n);i[n.index]=a=Ja(r,i,o,n),tr(i,a)}return new Yr(a,n,i)}function Br(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&It(e)){var i=zt(e.index,t);return new Fr(i,i)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Fr(t[16],t):null}(tn(),Xt(),e)}var jr=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return zr()},e}(),zr=Br,Ur=new je("Set Injector scope."),Wr={},Gr={},Qr=[],Kr=void 0;function $r(){return void 0===Kr&&(Kr=new nt),Kr}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Xr(e,n,t||$r(),i)}var Xr=function(){function e(t,n,i){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&rt(n,(function(e){return a.processProvider(e,t,n)})),rt([t],(function(e){return a.processInjectorType(e,[],o)})),this.records.set(ze,to(void 0,this));var s=this.records.get(Ur);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:De(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;this.assertNotDestroyed();var i,a=Ke(this);try{if(!(n&ue.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof je)&&_e(e);r=o&&this.injectableDefInScope(o)?to(Zr(e),Wr):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}return(n&ue.Self?$r():this.parent).get(e,t=n&ue.Optional&&t===Ue?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(De(e)),a)throw s;return function(e,t,n,i){var a=e.ngTempTokenPath;throw t.__source&&a.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var a=De(t);if(Array.isArray(t))a=t.map(De).join(" -> ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];r.push(o+":"+("string"==typeof s?JSON.stringify(s):De(s)))}a="{".concat(r.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(a,"]: ").concat(e.replace(We,"\n  "))}("\n"+e.message,a,"R3InjectorError",i),e.ngTokenPath=a,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Ke(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(De(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Te(e)))return!1;var a=ve(e),r=null==a&&e.ngModule||void 0,o=void 0===r?e:r,s=-1!==n.indexOf(o);if(void 0!==r&&(a=ve(r)),null==a)return!1;if(null!=a.imports&&!s){var l;n.push(o);try{rt(a.imports,(function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var c=function(e){var t=l[e],n=t.ngModule,a=t.providers;rt(a,(function(e){return i.processProvider(e,n,a||Qr)}))},u=0;u<l.length;u++)c(u)}this.injectorDefTypes.add(o),this.records.set(o,to(a.factory,Wr));var d=a.providers;if(null!=d&&!s){var h=e;rt(d,(function(e){return i.processProvider(e,h,d)}))}return void 0!==r&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=io(e=Te(e))?e:Te(e&&e.provide),a=function(e,t,n){return no(e)?to(void 0,e.useValue):to(eo(e,t,n),Wr)}(e,t,n);if(io(e)||!0!==e.multi){var r=this.records.get(i);r&&void 0!==r.multi&&na()}else{var o=this.records.get(i);o?void 0===o.multi&&na():((o=to(void 0,Wr,!0)).factory=function(){return tt(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,a)}},{key:"hydrate",value:function(e,t){var n;return t.value===Gr?function(e){throw new Error("Cannot instantiate cyclic dependency! ".concat(e))}(De(e)):t.value===Wr&&(t.value=Gr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Zr(e){var t=_e(e),n=null!==t?t.factory:Mt(e);if(null!==n)return n;var i=ve(e);if(null!==i)return i.factory;if(e instanceof je)throw new Error("Token ".concat(De(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=lt(t,"?");throw new Error("Can't resolve all parameters for ".concat(De(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[ye]||e[we]||e[be]&&e[be]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function eo(e,t,n){var i,a=void 0;if(io(e)){var r=Te(e);return Mt(r)||Zr(r)}if(no(e))a=function(){return Te(e.useValue)};else if((i=e)&&i.useFactory)a=function(){return e.useFactory.apply(e,_toConsumableArray(tt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))a=function(){return Xe(Te(e.useExisting))};else{var o=Te(e&&(e.useClass||e.provide));if(o||function(e,t,n){var i="";throw e&&t&&(i=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(De(e),"'")+i)}(t,n,e),!function(e){return!!e.deps}(e))return Mt(o)||Zr(o);a=function(){return _construct(o,_toConsumableArray(tt(e.deps)))}}return a}function to(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function no(e){return null!==e&&"object"==typeof e&&Ge in e}function io(e){return"function"==typeof e}var ao=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,a=Jr(e,t,n,i);return a._resolveInjectorDefTypes(),a}({name:n},t,e,n)},ro=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ao(e,t,""):ao(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ue,e.NULL=new nt,e.\u0275prov=fe({token:e,providedIn:"any",factory:function(){return Xe(ze)}}),e.__NG_ELEMENT_ID__=-1,e}(),oo=new je("AnalyzeForEntryComponents"),so=new Map,lo=new Set;function co(e){return"string"==typeof e?e:e.text()}function uo(e,t){for(var n=e.styles,i=e.classes,a=0,r=0;r<t.length;r++){var o=t[r];"number"==typeof o?a=o:1==a?i=Se(i,o):2==a&&(n=Se(n,o+": "+t[++r]+";"))}null!==n&&(e.styles=n),null!==i&&(e.classes=i)}var ho=null;function fo(){if(!ho){var e=Pe.Symbol;if(e&&e.iterator)ho=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ho=i)}}return ho}function po(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}var mo=function(){function e(t){_classCallCheck(this,e),this.wrapped=t}return _createClass(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function _o(e){return!!go(e)&&(Array.isArray(e)||!(e instanceof Map)&&fo()in e)}function go(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function vo(e,t,n){return e[t]=n}function yo(e,t){return e[t]}function ko(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function bo(e,t,n,i){var a=ko(e,t,n);return ko(e,t+1,i)||a}function wo(e,t,n,i){var a=Xt();return ko(a,cn(),t)&&(Zt(),function(e,t,n,i,a,r){var o=Nt(e,t),s=t[11];if(null==i)Ft(s)?s.removeAttribute(o,n,r):o.removeAttribute(n);else{var l=null==a?Bn(i):a(i,e.tagName||"",n);Ft(s)?s.setAttribute(o,n,l,r):r?o.setAttributeNS(r,n,l):o.setAttribute(n,l)}}(Cn(),a,e,t,n,i)),wo}function Co(e,t,n,i){return ko(e,cn(),n)?t+Bn(n)+i:fa}function Do(e,t,n,i,a,r,o,s){var l=Xt(),c=Zt(),u=e+19,d=c.firstCreatePass?function(e,t,n,i,a,r,o,s,l){var c=t.consts,u=Ma(t,n[6],e,0,o||null,Qt(c,s));Va(t,n,u,Qt(c,l)),Mn(t,u);var d=u.tViews=Pa(2,-1,i,a,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),h=Ya(0,null,2,-1,null,null);return h.injectorIndex=u.injectorIndex,d.node=h,null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(e,c,l,t,n,i,a,r,o):c.data[u];nn(d,!1);var h=l[11].createComment("");xr(c,l,h,d),ea(h,l),tr(l,l[u]=Ja(h,l,h,d)),Et(d)&&Ea(c,l,d),null!=o&&Oa(l,d,s)}function So(e){return jt($t.lFrame.contextLView,e)}function Mo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default,n=Xt();return null==n?Xe(e,t):ti(tn(),n,Te(e),t)}function xo(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,a=0;a<i;){var r=n[a];if(Rn(r))break;if(0===r)a+=2;else if("number"==typeof r)for(a++;a<i&&"string"==typeof n[a];)a++;else{if(r===t)return n[a+1];a+=2}}return null}(tn(),e)}function To(){throw new Error("invalid")}function Ao(e,t,n){var i=Xt();return ko(i,cn(),t)&&qa(Zt(),Cn(),i,e,t,i[11],n,!1),Ao}function Lo(e,t,n,i,a){var r=a?"class":"style";dr(e,n,t.inputs[r],r,i)}function Io(e,t,n,i){var a=Xt(),r=Zt(),o=19+e,s=a[11],l=a[o]=Da(t,s,$t.lFrame.currentNamespace),c=r.firstCreatePass?function(e,t,n,i,a,r,o){var s=t.consts,l=Qt(s,r),c=Ma(t,n[6],e,3,a,l);return Va(t,n,c,Qt(s,o)),null!==c.mergedAttrs&&uo(c,c.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,c),c}(e,r,a,0,t,n,i):r.data[o];nn(c,!0);var u=c.mergedAttrs;null!==u&&On(s,l,u);var d=c.classes;null!==d&&Or(s,l,d);var h=c.styles;null!==h&&Er(s,l,h),xr(r,a,l,c),0===$t.lFrame.elementDepthCount&&ea(l,a),$t.lFrame.elementDepthCount++,Et(c)&&(Ea(r,a,c),Ia(r,c,a)),null!==i&&Oa(a,c)}function Eo(){var e=tn();an()?rn():nn(e=e.parent,!1);var t=e;$t.lFrame.elementDepthCount--;var n=Zt();n.firstCreatePass&&(Mn(n,e),Lt(e)&&n.queries.elementEnd(e)),null!==t.classes&&function(e){return 0!=(16&e.flags)}(t)&&Lo(n,t,Xt(),t.classes,!0),null!==t.styles&&function(e){return 0!=(32&e.flags)}(t)&&Lo(n,t,Xt(),t.styles,!1)}function Oo(e,t,n,i){Io(e,t,n,i),Eo()}function Ro(e,t,n){var i=Xt(),a=Zt(),r=e+19,o=a.firstCreatePass?function(e,t,n,i,a){var r=t.consts,o=Qt(r,i),s=Ma(t,n[6],e,4,"ng-container",o);return null!==o&&uo(s,o),Va(t,n,s,Qt(r,a)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,a,i,t,n):a.data[r];nn(o,!0);var s=i[r]=i[11].createComment("");xr(a,i,s,o),ea(s,i),Et(o)&&(Ea(a,i,o),Ia(a,o,i)),null!=n&&Oa(i,o)}function Po(){var e=tn(),t=Zt();an()?rn():nn(e=e.parent,!1),t.firstCreatePass&&(Mn(t,e),Lt(e)&&t.queries.elementEnd(e))}function Yo(e,t,n){Ro(e,t,n),Po()}function Fo(){return Xt()}function qo(e){return!!e&&"function"==typeof e.then}function Vo(e){return!!e&&"function"==typeof e.subscribe}function Ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=Xt(),r=Zt(),o=tn();return Bo(r,a,a[11],o,e,t,n,i),Ho}function No(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=tn(),r=Xt(),o=cr(a,r);return Bo(Zt(),r,o,a,e,t,n,i),No}function Bo(e,t,n,i,a,r){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Et(i),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=sr(t),d=!0;if(3===i.type){var h=Nt(i,t),f=s?s(h):pt,p=f.target||h,m=u.length,_=s?function(e){return s(Vt(e[i.index])).target}:i.index;if(Ft(n)){var g=null;if(!s&&l&&(g=function(e,t,n,i){var a=e.cleanup;if(null!=a)for(var r=0;r<a.length-1;r+=2){var o=a[r];if(o===n&&a[r+1]===i){var s=t[7],l=a[r+2];return s.length>l?s[l]:null}"string"==typeof o&&(r+=2)}return null}(e,t,a,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=r,g.__ngLastListenerFn__=r,d=!1;else{r=zo(i,t,r,!1);var v=n.listen(f.name||p,a,r);u.push(r,v),c&&c.push(a,_,m,m+1)}}else r=zo(i,t,r,!0),p.addEventListener(a,r,o),u.push(r),c&&c.push(a,_,m,o)}var y,k=i.outputs;if(d&&null!==k&&(y=k[a])){var b=y.length;if(b)for(var w=0;w<b;w+=2){var C=t[y[w]][y[w+1]].subscribe(r),D=u.length;u.push(r,C),c&&c.push(a,i.index,D,-(D+1))}}}function jo(e,t,n){try{return!1!==t(n)}catch(i){return ur(e,i),!1}}function zo(e,t,n,i){return function a(r){if(r===Function)return n;var o=2&e.flags?zt(e.index,t):t;0==(32&t[2])&&nr(o);for(var s=jo(t,n,r),l=a.__ngNextListenerFn__;l;)s=jo(t,l,r)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(r.preventDefault(),r.returnValue=!1),s}}function Uo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return($t.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,$t.lFrame.contextLView))[8]}(e)}function Wo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),a=0;a<t.length;a++){var r=t[a];if("*"!==r){if(null===i?ca(e,r,!0):ua(i,r))return a}else n=a}return n}function Go(e){var t=Xt()[16][6];if(!t.projection)for(var n=t.projection=lt(e?e.length:1,null),i=n.slice(),a=t.child;null!==a;){var r=e?Wo(a,e):0;null!==r&&(i[r]?i[r].projectionNext=a:n[r]=a,i[r]=a),a=a.next}}function Qo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Xt(),a=Zt(),r=Ma(a,i[6],e,1,null,n||null);null===r.projection&&(r.projection=t),rn(),function(e,t,n){Ir(t[11],0,t,n,br(e,n,t),Mr(n.parent||t[6],t))}(a,i,r)}function Ko(e,t,n){return $o(e,"",t,"",n),Ko}function $o(e,t,n,i,a){var r=Xt(),o=Co(r,t,n,i);return o!==fa&&qa(Zt(),Cn(),r,e,o,r[11],a,!1),$o}var Jo=[];function Xo(e,t,n,i,a){for(var r=e[n+1],o=null===t,s=i?va(r):ka(r),l=!1;0!==s&&(!1===l||o);){var c=e[s+1];Zo(e[s],t)&&(l=!0,e[s+1]=i?wa(c):ya(c)),s=i?va(c):ka(c)}l&&(e[n+1]=i?ya(r):wa(r))}function Zo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&dt(e,t)>=0}var es={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ts(e){return e.substring(es.key,es.keyEnd)}function ns(e,t){var n=es.textEnd;return n===t?-1:(t=es.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,es.key=t,n),is(e,t,n))}function is(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function as(e,t,n){return ss(e,t,n,!1),as}function rs(e,t){return ss(e,t,null,!0),rs}function os(e,t){for(var n=function(e){return function(e){es.key=0,es.keyEnd=0,es.value=0,es.valueEnd=0,es.textEnd=e.length}(e),ns(e,is(e,0,es.textEnd))}(t);n>=0;n=ns(t,n))ct(e,ts(t),!0)}function ss(e,t,n,i){var a,r,o=Xt(),s=Zt(),l=un(2);(s.firstUpdatePass&&cs(s,e,l,i),t!==fa&&ko(o,l,t))&&(null==n&&(a=null===(r=$t.lFrame)?null:r.currentSanitizer)&&(n=a),hs(s,s.data[bn()+19],o,o[11],e,o[l+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=De(ki(e)))),e}(t,n),i,l))}function ls(e,t){return t>=e.expandoStartIndex}function cs(e,t,n,i){var a=e.data;if(null===a[n+1]){var r=a[bn()+19],o=ls(e,n);ms(r,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var a=function(e){var t=$t.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),r=i?t.residualClasses:t.residualStyles;if(null===a)0===(i?t.classBindings:t.styleBindings)&&(n=ds(n=us(null,e,t,n,i),t.attrs,i),r=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==a)if(n=us(a,e,t,n,i),null===r){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==ka(i))return e[va(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[va(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=ds(s=us(null,e,t,s[1],i),t.attrs,i))}else r=function(e,t,n){for(var i=void 0,a=t.directiveEnd,r=1+t.directiveStylingLast;r<a;r++)i=ds(i,e[r].hostAttrs,n);return ds(i,t.attrs,n)}(e,t,i)}return void 0!==r&&(i?t.residualClasses=r:t.residualStyles=r),n}(a,r,t,i),function(e,t,n,i,a,r){var o=r?t.classBindings:t.styleBindings,s=va(o),l=ka(o);e[i]=n;var c,u=!1;if(Array.isArray(n)){var d=n;(null===(c=d[1])||dt(d,c)>0)&&(u=!0)}else c=n;if(a)if(0!==l){var h=va(e[s+1]);e[i+1]=ga(h,s),0!==h&&(e[h+1]=ba(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=ga(s,0),0!==s&&(e[s+1]=ba(e[s+1],i)),s=i;else e[i+1]=ga(l,0),0===s?s=i:e[l+1]=ba(e[l+1],i),l=i;u&&(e[i+1]=ya(e[i+1])),Xo(e,c,i,!0),Xo(e,c,i,!1),function(e,t,n,i,a){var r=a?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&dt(r,t)>=0&&(n[i+1]=wa(n[i+1]))}(t,c,e,i,r),o=ga(s,l),r?t.classBindings=o:t.styleBindings=o}(a,r,t,n,o,i)}}function us(e,t,n,i,a){var r=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(i=ds(i,(r=t[s]).hostAttrs,a),r!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function ds(e,t,n){var i=n?1:2,a=-1;if(null!==t)for(var r=0;r<t.length;r++){var o=t[r];"number"==typeof o?a=o:a===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ct(e,o,!!n||t[++r]))}return void 0===e?null:e}function hs(e,t,n,i,a,r,o,s){if(3===t.type){var l=e.data,c=l[s+1];ps(1==(1&c)?fs(l,t,n,a,ka(c),o):void 0)||(ps(r)||2==(2&c)&&(r=fs(l,null,n,a,s,o)),function(e,t,n,i,a){var r=Ft(e);if(t)a?r?e.addClass(n,i):n.classList.add(i):r?e.removeClass(n,i):n.classList.remove(i);else{var o=-1==i.indexOf("-")?void 0:2;null==a?r?e.removeStyle(n,i,o):n.style.removeProperty(i):r?e.setStyle(n,i,a,o):n.style.setProperty(i,a)}}(i,o,Ht(bn(),n),a,r))}}function fs(e,t,n,i,a,r){for(var o=null===t,s=void 0;a>0;){var l=e[a],c=Array.isArray(l),u=c?l[1]:l,d=null===u,h=n[a+1];h===fa&&(h=d?Jo:void 0);var f=d?ut(h,i):u===i?h:void 0;if(c&&!ps(f)&&(f=ut(l,i)),ps(f)&&(s=f,o))return s;var p=e[a+1];a=o?va(p):ka(p)}if(null!==t){var m=r?t.residualClasses:t.residualStyles;null!=m&&(s=ut(m,i))}return s}function ps(e){return void 0!==e}function ms(e,t){return 0!=(e.flags&(t?16:32))}function _s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xt(),i=Zt(),a=e+19,r=i.firstCreatePass?Ma(i,n[6],e,3,null,null):i.data[a],o=n[a]=function(e,t){return Ft(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);xr(i,n,o,r),nn(r,!1)}function gs(e){return vs("",e,""),gs}function vs(e,t,n){var i=Xt(),a=Co(i,e,t,n);return a!==fa&&function(e,t,n){var i=Ht(t,e),a=e[11];Ft(a)?a.setValue(i,n):i.textContent=n}(i,bn(),a),vs}function ys(e,t,n){!function(e,t,n,i){var a=Zt(),r=un(2);a.firstUpdatePass&&cs(a,null,r,!0);var o=Xt();if(n!==fa&&ko(o,r,n)){var s=a.data[bn()+19];if(ms(s,!0)&&!ls(a,r)){var l=s.classes;null!==l&&(n=Se(l,n||"")),Lo(a,s,o,n,!0)}else!function(e,t,n,i,a,r,o,s){a===fa&&(a=Jo);for(var l=0,c=0,u=0<a.length?a[0]:null,d=0<r.length?r[0]:null;null!==u||null!==d;){var h=l<a.length?a[l+1]:void 0,f=c<r.length?r[c+1]:void 0,p=null,m=void 0;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&hs(e,t,n,i,p,m,!0,s),u=l<a.length?a[l]:null,d=c<r.length?r[c]:null}}(a,s,o,o[11],o[r+1],o[r+1]=function(e,t,n){if(null==n||""===n)return Jo;var i=[],a=ki(n);if(Array.isArray(a))for(var r=0;r<a.length;r++)e(i,a[r],!0);else if("object"==typeof a)for(var o in a)a.hasOwnProperty(o)&&e(i,o,a[o]);else"string"==typeof a&&t(i,a);return i}(e,t,n),0,r)}}(ct,os,Co(Xt(),e,t,n))}function ks(e,t,n){var i=Xt();return ko(i,cn(),t)&&qa(Zt(),Cn(),i,e,t,i[11],n,!0),ks}function bs(e,t,n){var i=Xt();if(ko(i,cn(),t)){var a=Zt(),r=Cn();qa(a,r,i,e,t,cr(r,i),n,!0)}return bs}function ws(e,t){var n=Ut(e)[1],i=n.data.length-1;Mn(n,{directiveStart:i,directiveEnd:i+1})}function Cs(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var a=void 0;if(Ot(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");a=t.\u0275dir}if(a){if(n){i.push(a);var r=e;r.inputs=Ds(e.inputs),r.declaredInputs=Ds(e.declaredInputs),r.outputs=Ds(e.outputs);var o=a.hostBindings;o&&xs(e,o);var s=a.viewQuery,l=a.contentQueries;if(s&&Ss(e,s),l&&Ms(e,l),he(e.inputs,a.inputs),he(e.declaredInputs,a.declaredInputs),he(e.outputs,a.outputs),Ot(a)&&a.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(a.data.animation)}r.afterContentChecked=r.afterContentChecked||a.afterContentChecked,r.afterContentInit=e.afterContentInit||a.afterContentInit,r.afterViewChecked=e.afterViewChecked||a.afterViewChecked,r.afterViewInit=e.afterViewInit||a.afterViewInit,r.doCheck=e.doCheck||a.doCheck,r.onDestroy=e.onDestroy||a.onDestroy,r.onInit=e.onInit||a.onInit}var u=a.features;if(u)for(var d=0;d<u.length;d++){var h=u[d];h&&h.ngInherit&&h(e),h===Cs&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var a=e[i];a.hostVars=t+=a.hostVars,a.hostAttrs=Yn(a.hostAttrs,n=Yn(n,a.hostAttrs))}}(i)}function Ds(e){return e===pt?{}:e===mt?[]:e}function Ss(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ms(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,a){t(e,i,a),n(e,i,a)}:t}function xs(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ts=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function As(e){e.type.prototype.ngOnChanges&&(e.setInput=Ls,e.onChanges=function(){var e=Is(this),t=e&&e.current;if(t){var n=e.previous;if(n===pt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}})}function Ls(e,t,n,i){var a=Is(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:pt,current:null}),r=a.current||(a.current={}),o=a.previous,s=this.declaredInputs[n],l=o[s];r[s]=new Ts(l&&l.currentValue,t,o===pt),e[i]=t}function Is(e){return e.__ngSimpleChanges__||null}function Es(e,t,n,i,a){if(e=Te(e),Array.isArray(e))for(var r=0;r<e.length;r++)Es(e[r],t,n,i,a);else{var o=Zt(),s=Xt(),l=io(e)?e:Te(e.provide),c=eo(e),u=tn(),d=65535&u.providerIndexes,h=u.directiveStart,f=u.providerIndexes>>16;if(io(e)||!e.multi){var p=new En(c,a,Mo),m=Ps(l,t,a?d:d+f,h);-1===m?(ei($n(u,s),o,l),Os(o,e,t.length),t.push(l),u.directiveStart++,u.directiveEnd++,a&&(u.providerIndexes+=65536),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var _=Ps(l,t,d+f,h),g=Ps(l,t,d,d+f),v=_>=0&&n[_],y=g>=0&&n[g];if(a&&!y||!a&&!v){ei($n(u,s),o,l);var k=function(e,t,n,i,a){var r=new En(e,n,Mo);return r.multi=[],r.index=t,r.componentProviders=0,Rs(r,a,i&&!n),r}(a?Fs:Ys,n.length,a,i,c);!a&&y&&(n[g].providerFactory=k),Os(o,e,t.length,0),t.push(l),u.directiveStart++,u.directiveEnd++,a&&(u.providerIndexes+=65536),n.push(k),s.push(k)}else Os(o,e,_>-1?_:g,Rs(n[a?g:_],c,!a&&i));!a&&i&&y&&n[g].componentProviders++}}}function Os(e,t,n,i){var a=io(t);if(a||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;if(r){var o=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,r]):o[s+1].push(i,r)}else o.push(n,r)}}}function Rs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ps(e,t,n,i){for(var a=n;a<i;a++)if(t[a]===e)return a;return-1}function Ys(e,t,n,i){return qs(this.multi,[])}function Fs(e,t,n,i){var a,r=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=ri(n,n[1],this.providerFactory.index,i);qs(r,a=s.slice(0,o));for(var l=o;l<s.length;l++)a.push(s[l])}else qs(r,a=[]);return a}function qs(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Vs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Zt();if(i.firstCreatePass){var a=Ot(e);Es(n,i.data,i.blueprint,a,!0),Es(t,i.data,i.blueprint,a,!1)}}(n,i?i(e):e,t)}}}As.ngInherit=!0;var Hs=function e(){_classCallCheck(this,e)},Ns=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(De(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Bs=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Ns,e}(),js=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return zs(e)},e}(),zs=function(e){return Vr(e,tn(),Xt())},Us=function e(){_classCallCheck(this,e)},Ws=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Gs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Qs()},e}(),Qs=function(){var e=Xt(),t=zt(tn().index,e);return function(e){var t=e[11];if(Ft(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Tt(t)?t:e)},Ks=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=fe({token:e,providedIn:"root",factory:function(){return null}}),e}(),$s=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Js=new $s("9.1.2"),Xs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return _o(e)}},{key:"create",value:function(e){return new el(e)}}]),e}(),Zs=function(e,t){return t},el=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Zs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,a=null;t||n;){var r=!n||t&&t.currentIndex<al(n,i,a)?t:n,o=al(r,i,a),s=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(t=t._next,null==r.previousIndex)i++;else{a||(a=[]);var l=o-i,c=s-i;if(l!=c){for(var u=0;u<l;u++){var d=u<a.length?a[u]:a[u]=0,h=d+u;c<=h&&h<l&&(a[u]=d+1)}a[r.previousIndex]=c-l}}o!==s&&e(r,o,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!_o(e))throw new Error("Error trying to diff '".concat(De(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,a,r=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],a=this._trackByFn(s,i),null!==r&&po(r.trackById,a)?(o&&(r=this._verifyReinsertion(r,i,a,s)),po(r.item,i)||this._addIdentityChange(r,i)):(r=this._mismatch(r,i,a,s),o=!0),r=r._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,a=e[fo()]();!(i=a.next()).done;)t(i.value)}(e,(function(e){a=t._trackByFn(n,e),null!==r&&po(r.trackById,a)?(o&&(r=t._verifyReinsertion(r,e,a,n)),po(r.item,e)||t._addIdentityChange(r,e)):(r=t._mismatch(r,e,a,n),o=!0),r=r._next,n++})),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var a;return null===e?a=this._itTail:(a=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(po(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,a,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(po(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,a,i)):e=this._addAfter(new tl(t,n),a,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?e=this._reinsertAfter(a,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,a=e._nextRemoved;return null===i?this._removalsHead=a:i._nextRemoved=a,null===a?this._removalsTail=i:a._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new il),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new il),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),tl=function e(t,n){_classCallCheck(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},nl=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&po(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),il=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new nl,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function al(e,t,n){var i=e.previousIndex;if(null===i)return i;var a=0;return n&&i<n.length&&(a=n[i]),i+t+a}var rl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||go(e)}},{key:"create",value:function(){return new ol}}]),e}(),ol=function(){function e(){_classCallCheck(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||go(e)))throw new Error("Error trying to diff '".concat(De(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var a=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,a)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,a=n._next;return i&&(i._next=a),a&&(a._prev=i),n._next=null,n._prev=null,n}var r=new sl(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){po(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),sl=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},ll=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new se]]}}}]),e}();return e.\u0275prov=fe({token:e,providedIn:"root",factory:function(){return new e([new Xs])}}),e}(),cl=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new se]]}}}]),e}();return e.\u0275prov=fe({token:e,providedIn:"root",factory:function(){return new e([new rl])}}),e}(),ul=[new rl],dl=new ll([new Xs]),hl=new cl(ul),fl=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return pl(e,js)},e}(),pl=function(e,t){return Hr(e,t,tn(),Xt())},ml=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return _l(e,js)},e}(),_l=function(e,t){return Nr(e,t,tn(),Xt())},gl={},vl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=St(e);return new bl(t,this.ngModule)}}]),n}(Bs);function yl(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var kl=new je("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return zn}}),bl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).componentDef=e,a.ngModule=i,a.componentType=e.type,a.selector=e.selectors.map(ha).join(","),a.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],a.isBoundToModule=!!i,a}return _createClass(n,[{key:"create",value:function(e,t,n,i){var a,r,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,a){var r=e.get(n,gl,a);return r!==gl||i===gl?r:t.get(n,i,a)}}}(e,i.injector):e,s=o.get(Us,qt),l=o.get(Ks,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Ft(e))return e.selectRootElement(t,n===ft.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Da(u,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),h=this.componentDef.onPush?576:528,f="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),p={components:[],scheduler:zn,clean:or,playerHandler:null,flags:0},m=Pa(0,-1,null,1,0,null,null,null,null,null),_=Sa(null,m,p,h,null,null,s,c,l,o);mn(_,null);try{var g=function(e,t,n,i,a,r){var o=n[1];n[19]=e;var s=Ma(o,null,0,3,null,null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(uo(s,l),null!==e&&(On(a,e,l),null!==s.classes&&Or(a,e,s.classes),null!==s.styles&&Er(a,e,s.styles)));var c=i.createRenderer(e,t),u=Sa(n,Ra(t),null,t.onPush?64:16,n[19],s,i,c,void 0);return o.firstCreatePass&&(ei($n(s,n),o,t.type),za(o,s),Wa(s,n.length,1)),tr(n,u),n[19]=u}(d,this.componentDef,_,s,c);if(d)if(n)On(c,d,["ng-version",Js.full]);else{var v=function(e){for(var t=[],n=[],i=1,a=2;i<e.length;){var r=e[i];if("string"==typeof r)2===a?""!==r&&t.push(r,e[++i]):8===a&&n.push(r);else{if(!sa(a))break;a=r}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=v.attrs,k=v.classes;y&&On(c,d,y),k&&k.length>0&&Or(c,d,k.join(" "))}r=Bt(_[1],0),t&&(r.projection=t.map((function(e){return Array.from(e)}))),a=function(e,t,n,i,a){var r=n[1],o=function(e,t,n){var i=tn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ja(e,i,1),Ga(e,t,n));var a=ri(t,e,t.length-1,i);ea(a,t);var r=Nt(i,t);return r&&ea(r,t),a}(r,n,t);i.components.push(o),e[8]=o,a&&a.forEach((function(e){return e(o,t)})),t.contentQueries&&t.contentQueries(1,o,n.length-1);var s=tn();if(r.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){wn(s.index-19);var l=n[1];Ha(l,t),Na(l,n,t.hostVars),Ba(t,o)}return o}(g,this.componentDef,_,p,[ws]),xa(m,_,null)}finally{kn()}var b=new wl(this.componentType,a,Vr(js,r,_),_,r);return n&&!f||(b.hostView._tViewNode.child=r),b}},{key:"inputs",get:function(){return yl(this.componentDef.inputs)}},{key:"outputs",get:function(){return yl(this.componentDef.outputs)}}]),n}(Hs),wl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s,l,c,u;return _classCallCheck(this,n),(s=t.call(this)).location=a,s._rootLView=r,s._tNode=o,s.destroyCbs=[],s.instance=i,s.hostView=s.changeDetectorRef=new qr(r),s.hostView._tViewNode=(l=r[1],c=r,null==(u=l.node)&&(l.node=u=Ya(0,null,2,-1,null,null)),c[6]=u),s.componentType=e,s}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new li(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Cl=void 0,Dl=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Cl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Cl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Sl={};function Ml(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=xl(t);if(n)return n;var i=t.split("-")[0];if(n=xl(i))return n;if("en"===i)return Dl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function xl(e){return e in Sl||(Sl[e]=Pe.ng&&Pe.ng.common&&Pe.ng.common.locales&&Pe.ng.common.locales[e]),Sl[e]}var Tl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function Al(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Ll=new Map,Il=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;_classCallCheck(this,n),(a=t.call(this))._parent=i,a._bootstrapComponents=[],a.injector=_assertThisInitialized(a),a.destroyCbs=[],a.componentFactoryResolver=new vl(_assertThisInitialized(a));var r=xt(e),o=e[He]||null;return o&&Al(o),a._bootstrapComponents=Wn(r.bootstrap),a._r3Injector=Jr(e,i,[{provide:it,useValue:_assertThisInitialized(a)},{provide:Bs,useValue:a.componentFactoryResolver}],De(e)),a._r3Injector._resolveInjectorDefTypes(),a.instance=a.get(e),a}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ro.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;return e===ro||e===it||e===ze?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(it),El=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==xt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(De(t)," vs ").concat(De(t.name)))})(n,Ll.get(n),t),Ll.set(n,t)}var i=t.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(t){return e(t)}))}(e),i}return _createClass(n,[{key:"create",value:function(e){return new Il(this.moduleType,e)}}]),n}(at);function Ol(e,t,n){var i=ln()+e,a=Xt();return a[i]===fa?vo(a,i,n?t.call(n):t()):yo(a,i)}function Rl(e,t,n,i){return ql(Xt(),ln(),e,t,n,i)}function Pl(e,t,n,i,a){return Vl(Xt(),ln(),e,t,n,i,a)}function Yl(e,t,n,i,a,r){return Hl(Xt(),ln(),e,t,n,i,a,r)}function Fl(e,t){var n=e[t];return n===fa?void 0:n}function ql(e,t,n,i,a,r){var o=t+n;return ko(e,o,a)?vo(e,o+1,r?i.call(r,a):i(a)):Fl(e,o+1)}function Vl(e,t,n,i,a,r,o){var s=t+n;return bo(e,s,a,r)?vo(e,s+2,o?i.call(o,a,r):i(a,r)):Fl(e,s+2)}function Hl(e,t,n,i,a,r,o,s){var l=t+n;return function(e,t,n,i,a){var r=bo(e,t,n,i);return ko(e,t+2,a)||r}(e,l,a,r,o)?vo(e,l+3,s?i.call(s,a,r,o):i(a,r,o)):Fl(e,l+3)}function Nl(e,t){var n,i=Zt(),a=e+19;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[a]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(a,n.onDestroy)):n=i.data[a];var r=n.factory||(n.factory=Mt(n.type)),o=$e(Mo),s=r();return $e(o),function(e,t,n,i){var a=n+19;a>=e.data.length&&(e.data[a]=null,e.blueprint[a]=null),t[a]=i}(i,Xt(),e,s),s}function Bl(e,t,n){var i=Xt(),a=jt(i,e);return Wl(i,Ul(i,e)?ql(i,ln(),t,a.transform,n,a):a.transform(n))}function jl(e,t,n,i){var a=Xt(),r=jt(a,e);return Wl(a,Ul(a,e)?Vl(a,ln(),t,r.transform,n,i,r):r.transform(n,i))}function zl(e,t,n,i,a){var r=Xt(),o=jt(r,e);return Wl(r,Ul(r,e)?Hl(r,ln(),t,o.transform,n,i,a,o):o.transform(n,i,a))}function Ul(e,t){return e[1].data[t+19].pure}function Wl(e,t){return mo.isWrapped(t)&&(t=mo.unwrap(t),e[$t.lFrame.bindingIndex]=fa),t}var Gl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var a,r=function(e){return null},o=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(r=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(o=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(r=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),i&&(o=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,a,r,o);return e instanceof h&&e.add(s),s}}]),n}(T);function Ql(){return this._results[fo()]()}var Kl=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new Gl,this.length=0;var t=fo(),n=e.prototype;n[t]||(n[t]=Ql)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var i=0;i<t.length;i++){var a=t[i];Array.isArray(a)?(n===t&&(n=t.slice(0,i)),e(a,n)):n!==t&&n.push(a)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),$l=function(){function e(t){_classCallCheck(this,e),this.queryList=t,this.matches=null}return _createClass(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Jl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],r=0;r<i;r++){var o=n.getByIndex(r);a.push(this.queries[o.indexInDeclarationView].clone())}return new e(a)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==pc(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Xl=function e(t,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=a},Zl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var a=null!==n?n.length:0,r=this.getByIndex(i).embeddedTView(t,a);r&&(r.indexInDeclarationView=i,null!==n?n.push(r):n=[r])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"track",value:function(e){this.queries.push(e)}},{key:"length",get:function(){return this.queries.length}}]),e}(),ec=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i<n.length;i++)this.matchTNodeWithReadOption(e,t,tc(t,n[i]));else{var a=this.metadata.predicate;a===fl?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ai(t,e,a,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===js||i===ml||i===fl&&0===t.type)this.addMatch(t.index,-2);else{var a=ai(t,e,i,!1,!1);null!==a&&this.addMatch(t.index,a)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function tc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function nc(e,t,n,i){return-1===n?function(e,t){return 3===e.type||4===e.type?Vr(js,e,t):0===e.type?Hr(fl,js,e,t):null}(t,e):-2===n?function(e,t,n){return n===js?Vr(js,t,e):n===fl?Hr(fl,js,t,e):n===ml?Nr(ml,js,t,e):void 0}(e,t,i):ri(e,e[1],n,t)}function ic(e,t,n,i){var a=t[5].queries[i];if(null===a.matches){for(var r=e.data,o=n.matches,s=[],l=0;l<o.length;l+=2){var c=o[l];s.push(c<0?null:nc(t,r[c],o[l+1],n.metadata.read))}a.matches=s}return a.matches}function ac(e){var t=Xt(),n=Zt(),i=hn();fn(i+1);var a=pc(n,i);if(e.dirty&&Wt(t)===a.metadata.isStatic){if(null===a.matches)e.reset([]);else{var r=a.crossesNgTemplate?function e(t,n,i,a){var r=t.queries.getByIndex(i),o=r.matches;if(null!==o)for(var s=ic(t,n,r,i),l=0;l<o.length;l+=2){var c=o[l];if(c>0)a.push(s[l/2]);else{for(var u=o[l+1],d=n[-c],h=9;h<d.length;h++){var f=d[h];f[17]===f[3]&&e(f[1],f,u,a)}if(null!==d[5])for(var p=d[5],m=0;m<p.length;m++){var _=p[m];e(_[1],_,u,a)}}}return a}(n,t,i,[]):ic(n,t,a,i);e.reset(r),e.notifyOnChanges()}return!0}return!1}function rc(e,t,n){sc(Zt(),Xt(),e,t,n,!0)}function oc(e,t,n){sc(Zt(),Xt(),e,t,n,!1)}function sc(e,t,n,i,a,r){e.firstCreatePass&&(fc(e,new Xl(n,i,r,a),-1),r&&(e.staticViewQueries=!0)),hc(e,t)}function lc(e,t,n,i){uc(Zt(),Xt(),t,n,i,!1,tn(),e)}function cc(e,t,n,i){uc(Zt(),Xt(),t,n,i,!0,tn(),e)}function uc(e,t,n,i,a,r,o,s){e.firstCreatePass&&(fc(e,new Xl(n,i,r,a),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s),r&&(e.staticContentQueries=!0)),hc(e,t)}function dc(){return e=Xt(),t=hn(),e[5].queries[t].queryList;var e,t}function hc(e,t){var n=new Kl;!function(e,t,n,i){var a=sr(t);a.push(n),e.firstCreatePass&&lr(e).push(i,a.length-1)}(e,t,n,n.destroy),null===t[5]&&(t[5]=new Jl),t[5].queries.push(new $l(n))}function fc(e,t,n){null===e.queries&&(e.queries=new Zl),e.queries.track(new ec(t,n))}function pc(e,t){return e.queries.getByIndex(t)}function mc(e,t){return Hr(fl,js,e,t)}var _c=new je("Application Initializer"),gc=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var a=this.appInits[i]();qo(a)&&t.push(a)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Xe(_c,8))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}(),vc=new je("AppId"),yc={provide:vc,useFactory:function(){return"".concat(kc()).concat(kc()).concat(kc())},deps:[]};function kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var bc=new je("Platform Initializer"),wc=new je("Platform ID"),Cc=new je("appBootstrapListener"),Dc=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}(),Sc=new je("LocaleId"),Mc=new je("DefaultCurrencyCode"),xc=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},Tc=function(e){return new El(e)},Ac=Tc,Lc=function(e){return Promise.resolve(Tc(e))},Ic=function(e){var t=Tc(e),n=Wn(xt(e).declarations).reduce((function(e,t){var n=St(t);return n&&e.push(new bl(n)),e}),[]);return new xc(t,n)},Ec=Ic,Oc=function(e){return Promise.resolve(Ic(e))},Rc=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=Ac,this.compileModuleAsync=Lc,this.compileModuleAndAllComponentsSync=Ec,this.compileModuleAndAllComponentsAsync=Oc}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}(),Pc=new je("compilerOptions"),Yc=Promise.resolve(0);function Fc(e){"undefined"==typeof Zone?Yc.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var qc=function(){function e(t){var n,i,a=t.enableLongStackTrace,r=void 0!==a&&a,o=t.shouldCoalesceEventChangeDetection,s=void 0!==o&&o;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Gl(!1),this.onMicrotaskEmpty=new Gl(!1),this.onStable=new Gl(!1),this.onError=new Gl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Pe.requestAnimationFrame,t=Pe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Pe,(function(){e.lastRequestAnimationFrameId=-1,Bc(e),Nc(e)})),Bc(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:i},onInvokeTask:function(e,t,a,r,o,s){try{return jc(n),e.invokeTask(a,r,o,s)}finally{i&&"eventTask"===r.type&&i(),zc(n)}},onInvoke:function(e,t,i,a,r,o,s){try{return jc(n),e.invoke(i,a,r,o,s)}finally{zc(n)}},onHasTask:function(e,t,i,a){e.hasTask(i,a),t===i&&("microTask"==a.change?(n._hasPendingMicrotasks=a.microTask,Bc(n),Nc(n)):"macroTask"==a.change&&(n.hasPendingMacrotasks=a.macroTask))},onHandleError:function(e,t,i,a){return e.handleError(i,a),n.runOutsideAngular((function(){return n.onError.emit(a)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var a=this._inner,r=a.scheduleEventTask("NgZoneEvent: "+i,e,Hc,Vc,Vc);try{return a.runTask(r,t,n)}finally{a.cancelTask(r)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Vc(){}var Hc={};function Nc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function Bc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function jc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zc(e){e._nesting--,Nc(e)}var Uc,Wc=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Gl,this.onMicrotaskEmpty=new Gl,this.onStable=new Gl,this.onError=new Gl}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Gc=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){qc.assertNotInAngularZone(),Fc((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Fc((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var i=this,a=-1;t&&t>0&&(a=setTimeout((function(){i._callbacks=i._callbacks.filter((function(e){return e.timeoutId!==a})),e(i._didWork,i.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:a,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Xe(qc))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}(),Qc=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Kc.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Kc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}(),Kc=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),$c=function(e,t,n){var i=e.get(Pc,[]).concat(t),a=new El(n);if(0===so.size)return Promise.resolve(a);var r,o,s=(r=i.map((function(e){return e.providers})),o=[],r.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===s.length)return Promise.resolve(a);var l=function(){var e=Pe.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),c=ro.create({providers:s}).get(l.ResourceLoader);return function(e){var t=[],n=new Map;function i(e){var t=n.get(e);if(!t){var i=function(e){return Promise.resolve(c.get(e))}(e);n.set(e,t=i.then(co))}return t}return so.forEach((function(e,n){var a=[];e.templateUrl&&a.push(i(e.templateUrl).then((function(t){e.template=t})));var r=e.styleUrls,o=e.styles||(e.styles=[]),s=e.styles.length;r&&r.forEach((function(t,n){o.push(""),a.push(i(t).then((function(i){o[s+n]=i,r.splice(r.indexOf(t),1),0==r.length&&(e.styleUrls=void 0)})))}));var l=Promise.all(a).then((function(){return function(e){lo.delete(e)}(n)}));t.push(l)})),so=new Map,Promise.all(t).then((function(){}))}().then((function(){return a}))},Jc=new je("AllowMultipleToken"),Xc=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Zc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),a=new je(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=eu();if(!r||r.injector.get(Jc,!1))if(e)e(n.concat(t).concat({provide:a,useValue:!0}));else{var o=n.concat(t).concat({provide:a,useValue:!0},{provide:Ur,useValue:"platform"});!function(e){if(Uc&&!Uc.destroyed&&!Uc.injector.get(Jc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Uc=e.get(tu);var t=e.get(bc,null);t&&t.forEach((function(e){return e()}))}(ro.create({providers:o,name:i}))}return function(e){var t=eu();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(a)}}function eu(){return Uc&&!Uc.destroyed?Uc:null}var tu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,a=this,r=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Wc:("zone.js"===n?void 0:n)||new qc({enableLongStackTrace:Si(),shouldCoalesceEventChangeDetection:i})),o=[{provide:qc,useValue:r}];return r.run((function(){var t=ro.create({providers:o,parent:a.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(fi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return ru(a._modules,n)})),r.runOutsideAngular((function(){return r.onError.subscribe({next:function(e){i.handleError(e)}})})),function(e,t,i){try{var r=((o=n.injector.get(gc)).runInitializers(),o.donePromise.then((function(){return Al(n.injector.get(Sc,"en-US")||"en-US"),a._moduleDoBootstrap(n),n})));return qo(r)?r.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):r}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var o}(i,r)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=nu({},n);return $c(this.injector,i,e).then((function(e){return t.bootstrapModuleFactory(e,i)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(De(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Xe(ro))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}();function nu(e,t){return Array.isArray(t)?t.reduce(nu,e):Object.assign(Object.assign({},e),t)}var iu,au=((iu=function(){function e(t,n,i,a,r,o){var s=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=a,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Si(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var l=new w((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),c=new w((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){qc.assertNotInAngularZone(),Fc((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){qc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=K(l,c.pipe(ie()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Hs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var a=n.isBoundToModule?void 0:this._injector.get(it),r=n.create(ro.NULL,[],t||n.selector,a);r.onDestroy((function(){i._unloadComponent(r)}));var o=r.injector.get(Gc,null);return o&&r.injector.get(Qc).registerApplication(r.location.nativeElement,o),this._loadComponent(r),Si()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}if(this._enforceNoNewChanges){var i,a=_createForOfIteratorHelper(this._views);try{for(a.s();!(i=a.n()).done;)i.value.checkNoChanges()}catch(r){a.e(r)}finally{a.f()}}}catch(o){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;ru(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Cc,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),ru(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||iu)(Xe(qc),Xe(Dc),Xe(ro),Xe(fi),Xe(Bs),Xe(gc))},iu.\u0275prov=fe({token:iu,factory:iu.\u0275fac}),iu);function ru(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ou=function e(){_classCallCheck(this,e)},su=function e(){_classCallCheck(this,e)},lu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},cu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||lu}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),a=i[0],r=i[1];return void 0===r&&(r="default"),n("crnd")(a).then((function(e){return e[r]})).then((function(e){return uu(e,a,r)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],a=t[1],r="NgFactory";return void 0===a&&(a="default",r=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(e){return e[a+r]})).then((function(e){return uu(e,i,a)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Xe(Rc),Xe(su,8))},e.\u0275prov=fe({token:e,factory:e.\u0275fac}),e}();function uu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var du=Zc(null,"core",[{provide:wc,useValue:"unknown"},{provide:tu,deps:[ro]},{provide:Qc,deps:[]},{provide:Dc,deps:[]}]),hu=[{provide:au,useClass:au,deps:[qc,Dc,ro,fi,Bs,gc]},{provide:kl,deps:[qc],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:gc,useClass:gc,deps:[[new se,_c]]},{provide:Rc,useClass:Rc,deps:[]},yc,{provide:ll,useFactory:function(){return dl},deps:[]},{provide:cl,useFactory:function(){return hl},deps:[]},{provide:Sc,useFactory:function(e){return Al(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new oe(Sc),new se,new ce]]},{provide:Mc,useValue:"USD"}],fu=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=bt({type:e}),e.\u0275inj=me({factory:function(t){return new(t||e)(Xe(au))},providers:hu}),e}(),pu={production:!0,disclaimer:"VRS Version: 2.7.4",groups:{cs:["svg-FMOVRS-ODA-CS"],students:["polyu_stud_ft_AS","polyu_stud_pt_AS","polyu_stud_ft_ASOP","polyu_stud_pt_ASOP","polyu_stud_ft_RO","polyu_stud_pt_RO"],staff:["polyu_staff_ft","polyu_staff_pt","polyu_EYEC_affiliate","polyu_PTEC_affiliate","polyu_RITA_affiliate","polyu_CPCE_staff","polyu_HKCC_staff","polyu_SPD_staff","polyu_CHRO_staff"]},roles:{fmoAdmin:"fmoadmin",deptAdmin:"deptadmin",hod:"ROLE_HOD",guestAccessCS:"ROLE_GA_CS",guestAccessUserStudent:"ROLE_GA_USER_STUDENT",guestAccessUserStaff:"ROLE_GA_USER_STAFF",guestAccessStudentApprover:"ROLE_GA_STUDENT_APPROVER",guestAccessStaffApprover:"ROLE_GA_STAFF_APPROVER",guestAccessTraffccAnalyst:"ROLE_GA_TRAFFIC_ANALYST",vehicleAccessAdmin:"ROLE_VA_ADMIN",vehicleAccessPremiumUser:"ROLE_VA_PREMIUM_USER",vehicleAccessUser:"ROLE_VA_USER",multipleAccessUser:"ROLE_MA_USER",managerFMORoleMgr:"ROLE_VRS_MG_FMO_ROLE_MGR",managerDeptRoleMgr:"ROLE_VRS_MG_DEPT_ADMIN_ROLE_MGR",systemRoleAdmin:"ROLE_VRS_SYSTEM_ROLE_ADMIN",departmentListAdmin:"ROLE_VRS_DEPARTMENT_LIST_ADMIN",multipleAccessSupport:"ROLE_VRS_MA_SUPPORT",multipleAccessBulkApprover:"ROLE_MA_BULK_APPROVER"},module:{guestAccess:{workflowEnable:!0,startDateOffset:0}}};function mu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return L(i)?(t.pop(),B(t,i)):Q(t)}function _u(e,t){return z(e,t,1)}function gu(e,t){return function(n){return n.lift(new vu(e,t))}}var vu=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new yu(e,this.predicate,this.thisArg))}}]),e}(),yu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).predicate=i,r.thisArg=a,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(m),ku=null;function bu(){return ku}var wu,Cu=new je("DocumentToken"),Du=((wu=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||wu)},wu.\u0275prov=fe({factory:Su,token:wu,providedIn:"platform"}),wu);function Su(){return Xe(Tu)}var Mu,xu=new je("Location Initialized"),Tu=((Mu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=bu().getLocation(),this._history=bu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return bu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){bu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){bu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){Au()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Au()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(Du)).\u0275fac=function(e){return new(e||Mu)(Xe(Cu))},Mu.\u0275prov=fe({factory:Lu,token:Mu,providedIn:"platform"}),Mu);function Au(){return!!window.history.pushState}function Lu(){return new Tu(Xe(Cu))}function Iu(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Eu(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ou(e){return e&&"?"!==e[0]?"?"+e:e}var Ru,Pu=((Ru=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ru)},Ru.\u0275prov=fe({factory:Yu,token:Ru,providedIn:"root"}),Ru);function Yu(e){var t=Xe(Cu).location;return new Nu(Xe(Du),t&&t.origin||"")}var Fu,qu,Vu,Hu=new je("appBaseHref"),Nu=((Vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;if(_classCallCheck(this,n),(a=t.call(this))._platformLocation=e,null==i&&(i=a._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return a._baseHref=i,_possibleConstructorReturn(a)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Iu(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ou(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var a=this.prepareExternalUrl(n+Ou(i));this._platformLocation.pushState(e,t,a)}},{key:"replaceState",value:function(e,t,n,i){var a=this.prepareExternalUrl(n+Ou(i));this._platformLocation.replaceState(e,t,a)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Pu)).\u0275fac=function(e){return new(e||Vu)(Xe(Du),Xe(Hu,8))},Vu.\u0275prov=fe({token:Vu,factory:Vu.\u0275fac}),Vu),Bu=((qu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._platformLocation=e,a._baseHref="",null!=i&&(a._baseHref=i),a}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Iu(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var a=this.prepareExternalUrl(n+Ou(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,t,a)}},{key:"replaceState",value:function(e,t,n,i){var a=this.prepareExternalUrl(n+Ou(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,a)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Pu)).\u0275fac=function(e){return new(e||qu)(Xe(Du),Xe(Hu,8))},qu.\u0275prov=fe({token:qu,factory:qu.\u0275fac}),qu),ju=((Fu=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new Gl,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Eu(Uu(a)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ou(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Uu(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ou(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ou(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Fu)(Xe(Pu),Xe(Du))},Fu.normalizeQueryParams=Ou,Fu.joinWithSlash=Iu,Fu.stripTrailingSlash=Eu,Fu.\u0275prov=fe({factory:zu,token:Fu,providedIn:"root"}),Fu);function zu(){return new ju(Xe(Pu),Xe(Du))}function Uu(e){return e.replace(/\/index.html$/,"")}var Wu=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Gu=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Qu=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Ku=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),$u=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Ju(e){return Ml(e)[Tl.FirstDayOfWeek]}function Xu(e,t){return id(Ml(e)[Tl.DateFormat],t)}function Zu(e,t){return id(Ml(e)[Tl.TimeFormat],t)}function ed(e,t){return id(Ml(e)[Tl.DateTimeFormat],t)}function td(e,t){var n=Ml(e),i=n[Tl.NumberSymbols][t];if(void 0===i){if(t===$u.CurrencyDecimal)return n[Tl.NumberSymbols][$u.Decimal];if(t===$u.CurrencyGroup)return n[Tl.NumberSymbols][$u.Group]}return i}function nd(e){if(!e[Tl.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[Tl.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function id(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function ad(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var rd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,od={},sd=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,ld=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),cd=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),ud=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function dd(e,t,n,i){var a=function(e){if(kd(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=_slicedToArray(e.split("-").map((function(e){return+e})),3),a=i[0],r=i[1],o=i[2];return new Date(a,r-1,o)}if(t=e.match(rd))return function(e){var t=new Date(0),n=0,i=0,a=e[8]?t.setUTCFullYear:t.setFullYear,r=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),a.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return r.call(t,o,s,l,c),t}(t)}var s=new Date(e);if(!kd(s))throw new Error('Unable to convert "'.concat(e,'" into a date'));return s}(e);t=function e(t,n){var i=function(e){return Ml(e)[Tl.LocaleId]}(t);if(od[i]=od[i]||{},od[i][n])return od[i][n];var a="";switch(n){case"shortDate":a=Xu(t,Ku.Short);break;case"mediumDate":a=Xu(t,Ku.Medium);break;case"longDate":a=Xu(t,Ku.Long);break;case"fullDate":a=Xu(t,Ku.Full);break;case"shortTime":a=Zu(t,Ku.Short);break;case"mediumTime":a=Zu(t,Ku.Medium);break;case"longTime":a=Zu(t,Ku.Long);break;case"fullTime":a=Zu(t,Ku.Full);break;case"short":var r=e(t,"shortTime"),o=e(t,"shortDate");a=hd(ed(t,Ku.Short),[r,o]);break;case"medium":var s=e(t,"mediumTime"),l=e(t,"mediumDate");a=hd(ed(t,Ku.Medium),[s,l]);break;case"long":var c=e(t,"longTime"),u=e(t,"longDate");a=hd(ed(t,Ku.Long),[c,u]);break;case"full":var d=e(t,"fullTime"),h=e(t,"fullDate");a=hd(ed(t,Ku.Full),[d,h])}return a&&(od[i][n]=a),a}(n,t)||t;for(var r,o=[];t;){if(!(r=sd.exec(t))){o.push(t);break}var s=(o=o.concat(r.slice(1))).pop();if(!s)break;t=s}var l=a.getTimezoneOffset();i&&(l=yd(i,l),a=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(yd(t,i)-i))}(a,i));var c="";return o.forEach((function(e){var t=function(e){if(vd[e])return vd[e];var t;switch(e){case"G":case"GG":case"GGG":t=md(ud.Eras,Qu.Abbreviated);break;case"GGGG":t=md(ud.Eras,Qu.Wide);break;case"GGGGG":t=md(ud.Eras,Qu.Narrow);break;case"y":t=pd(cd.FullYear,1,0,!1,!0);break;case"yy":t=pd(cd.FullYear,2,0,!0,!0);break;case"yyy":t=pd(cd.FullYear,3,0,!1,!0);break;case"yyyy":t=pd(cd.FullYear,4,0,!1,!0);break;case"M":case"L":t=pd(cd.Month,1,1);break;case"MM":case"LL":t=pd(cd.Month,2,1);break;case"MMM":t=md(ud.Months,Qu.Abbreviated);break;case"MMMM":t=md(ud.Months,Qu.Wide);break;case"MMMMM":t=md(ud.Months,Qu.Narrow);break;case"LLL":t=md(ud.Months,Qu.Abbreviated,Gu.Standalone);break;case"LLLL":t=md(ud.Months,Qu.Wide,Gu.Standalone);break;case"LLLLL":t=md(ud.Months,Qu.Narrow,Gu.Standalone);break;case"w":t=gd(1);break;case"ww":t=gd(2);break;case"W":t=gd(1,!0);break;case"d":t=pd(cd.Date,1);break;case"dd":t=pd(cd.Date,2);break;case"E":case"EE":case"EEE":t=md(ud.Days,Qu.Abbreviated);break;case"EEEE":t=md(ud.Days,Qu.Wide);break;case"EEEEE":t=md(ud.Days,Qu.Narrow);break;case"EEEEEE":t=md(ud.Days,Qu.Short);break;case"a":case"aa":case"aaa":t=md(ud.DayPeriods,Qu.Abbreviated);break;case"aaaa":t=md(ud.DayPeriods,Qu.Wide);break;case"aaaaa":t=md(ud.DayPeriods,Qu.Narrow);break;case"b":case"bb":case"bbb":t=md(ud.DayPeriods,Qu.Abbreviated,Gu.Standalone,!0);break;case"bbbb":t=md(ud.DayPeriods,Qu.Wide,Gu.Standalone,!0);break;case"bbbbb":t=md(ud.DayPeriods,Qu.Narrow,Gu.Standalone,!0);break;case"B":case"BB":case"BBB":t=md(ud.DayPeriods,Qu.Abbreviated,Gu.Format,!0);break;case"BBBB":t=md(ud.DayPeriods,Qu.Wide,Gu.Format,!0);break;case"BBBBB":t=md(ud.DayPeriods,Qu.Narrow,Gu.Format,!0);break;case"h":t=pd(cd.Hours,1,-12);break;case"hh":t=pd(cd.Hours,2,-12);break;case"H":t=pd(cd.Hours,1);break;case"HH":t=pd(cd.Hours,2);break;case"m":t=pd(cd.Minutes,1);break;case"mm":t=pd(cd.Minutes,2);break;case"s":t=pd(cd.Seconds,1);break;case"ss":t=pd(cd.Seconds,2);break;case"S":t=pd(cd.FractionalSeconds,1);break;case"SS":t=pd(cd.FractionalSeconds,2);break;case"SSS":t=pd(cd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=_d(ld.Short);break;case"ZZZZZ":t=_d(ld.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_d(ld.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=_d(ld.Long);break;default:return null}return vd[e]=t,t}(e);c+=t?t(a,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),c}function hd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function fd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,r="";(e<0||a&&e<=0)&&(a?e=1-e:(e=-e,r=n));for(var o=String(e);o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),r+o}function pd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(r,o){var s,l=function(e,t){switch(e){case cd.FullYear:return t.getFullYear();case cd.Month:return t.getMonth();case cd.Date:return t.getDate();case cd.Hours:return t.getHours();case cd.Minutes:return t.getMinutes();case cd.Seconds:return t.getSeconds();case cd.FractionalSeconds:return t.getMilliseconds();case cd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,r);if((n>0||l>-n)&&(l+=n),e===cd.Hours)0===l&&-12===n&&(l=12);else if(e===cd.FractionalSeconds)return s=t,fd(l,3).substr(0,s);var c=td(o,$u.MinusSign);return fd(l,t,c,i,a)}}function md(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gu.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,r){return function(e,t,n,i,a,r){switch(n){case ud.Months:return function(e,t,n){var i=Ml(e),a=id([i[Tl.MonthsFormat],i[Tl.MonthsStandalone]],t);return id(a,n)}(t,a,i)[e.getMonth()];case ud.Days:return function(e,t,n){var i=Ml(e),a=id([i[Tl.DaysFormat],i[Tl.DaysStandalone]],t);return id(a,n)}(t,a,i)[e.getDay()];case ud.DayPeriods:var o=e.getHours(),s=e.getMinutes();if(r){var l,c=function(e){var t=Ml(e);return nd(t),(t[Tl.ExtraData][2]||[]).map((function(e){return"string"==typeof e?ad(e):[ad(e[0]),ad(e[1])]}))}(t),u=function(e,t,n){var i=Ml(e);nd(i);var a=id([i[Tl.ExtraData][0],i[Tl.ExtraData][1]],t)||[];return id(a,n)||[]}(t,a,i);if(c.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],i=n.hours,a=n.minutes,r=e[1],c=r.hours,d=r.minutes;o>=i&&s>=a&&(o<c||o===c&&s<d)&&(l=u[t])}else{var h=e.hours,f=e.minutes;h===o&&f===s&&(l=u[t])}})),l)return l}return function(e,t,n){var i=Ml(e),a=id([i[Tl.DayPeriodsFormat],i[Tl.DayPeriodsStandalone]],t);return id(a,n)}(t,a,i)[o<12?0:1];case ud.Eras:return function(e,t){return id(Ml(e)[Tl.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(a,r,e,t,n,i)}}function _d(e){return function(t,n,i){var a=-1*i,r=td(n,$u.MinusSign),o=a>0?Math.floor(a/60):Math.ceil(a/60);switch(e){case ld.Short:return(a>=0?"+":"")+fd(o,2,r)+fd(Math.abs(a%60),2,r);case ld.ShortGMT:return"GMT"+(a>=0?"+":"")+fd(o,1,r);case ld.Long:return"GMT"+(a>=0?"+":"")+fd(o,2,r)+":"+fd(Math.abs(a%60),2,r);case ld.Extended:return 0===i?"Z":(a>=0?"+":"")+fd(o,2,r)+":"+fd(Math.abs(a%60),2,r);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function gd(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var a,r,o,s;if(t){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();a=1+Math.floor((c+l)/7)}else{var u=(r=n.getFullYear(),o=new Date(r,0,1).getDay(),new Date(r,0,1+(o<=4?4:11)-o)),d=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-u.getTime();a=1+Math.round(d/6048e5)}return fd(a,e,td(i,$u.MinusSign))}}var vd={};function yd(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kd(e){return e instanceof Date&&!isNaN(e.valueOf())}var bd,wd=function e(){_classCallCheck(this,e)},Cd=((bd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Ml(e)[Tl.PluralCase]}(t||this.locale)(e)){case Wu.Zero:return"zero";case Wu.One:return"one";case Wu.Two:return"two";case Wu.Few:return"few";case Wu.Many:return"many";default:return"other"}}}]),n}(wd)).\u0275fac=function(e){return new(e||bd)(Xe(Sc))},bd.\u0275prov=fe({token:bd,factory:bd.\u0275fac}),bd);function Dd(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var a=n.value,r=a.indexOf("="),o=_slicedToArray(-1==r?[a,""]:[a.slice(0,r),a.slice(r+1)],2),s=o[0],l=o[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(c){i.e(c)}finally{i.f()}return null}var Sd,Md,xd,Td=((Sd=function(){function e(t,n,i,a){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(De(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(_o(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||Sd)(Mo(ll),Mo(cl),Mo(js),Mo(Gs))},Sd.\u0275dir=Ct({type:Sd,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Sd),Ad=function(){function e(t,n,i,a){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=a}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Ld=((Md=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,i,a){if(null==e.previousIndex){var r=t._viewContainer.createEmbeddedView(t._template,new Ad(null,t._ngForOf,-1,-1),null===a?void 0:a),o=new Id(e,r);n.push(o)}else if(null==a)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,a);var l=new Id(e,s);n.push(l)}}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var a=0,r=this._viewContainer.length;a<r;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=r,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){Si()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Md)(Mo(ml),Mo(fl),Mo(ll))},Md.\u0275dir=Ct({type:Md,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Md),Id=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},Ed=((xd=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new Od,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Rd("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Rd("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||xd)(Mo(ml),Mo(fl))},xd.\u0275dir=Ct({type:xd,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),xd),Od=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function Rd(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(De(t),"'."))}var Pd,Yd,Fd,qd,Vd,Hd=function(){function e(t,n){_classCallCheck(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return _createClass(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Nd=((Vd=function(){function e(){_classCallCheck(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return _createClass(e,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}},{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}}]),e}()).\u0275fac=function(e){return new(e||Vd)},Vd.\u0275dir=Ct({type:Vd,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Vd),Bd=((qd=function(){function e(t,n,i){_classCallCheck(this,e),this.ngSwitch=i,i._addCase(),this._view=new Hd(t,n)}return _createClass(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||qd)(Mo(ml),Mo(fl),Mo(Nd,1))},qd.\u0275dir=Ct({type:qd,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),qd),jd=((Fd=function e(t,n,i){_classCallCheck(this,e),i._addDefault(new Hd(t,n))}).\u0275fac=function(e){return new(e||Fd)(Mo(ml),Mo(fl),Mo(Nd,1))},Fd.\u0275dir=Ct({type:Fd,selectors:[["","ngSwitchDefault",""]]}),Fd),zd=((Yd=function(){function e(t,n,i){_classCallCheck(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=_slicedToArray(e.split("."),2),i=n[0],a=n[1];null!=(t=null!=t&&a?"".concat(t).concat(a):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem((function(e){return t._setStyle(e.key,null)})),e.forEachAddedItem((function(e){return t._setStyle(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._setStyle(e.key,e.currentValue)}))}},{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}}]),e}()).\u0275fac=function(e){return new(e||Yd)(Mo(js),Mo(cl),Mo(Gs))},Yd.\u0275dir=Ct({type:Yd,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Yd),Ud=((Pd=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(-1===t.indexOf(r))return!0}}catch(o){a.e(o)}finally{a.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}()).\u0275fac=function(e){return new(e||Pd)(Mo(ml))},Pd.\u0275dir=Ct({type:Pd,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[As]}),Pd);function Wd(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(De(e),"'"))}var Gd,Qd,Kd,$d,Jd,Xd,Zd,eh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),th=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.then(t,(function(e){throw e}))}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),nh=new eh,ih=((Gd=function(){function e(t){_classCallCheck(this,e),this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):po(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,mo.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(function(n){return t._updateLatestValue(e,n)}))}},{key:"_selectStrategy",value:function(t){if(qo(t))return th;if(Vo(t))return nh;throw Wd(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||Gd)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue.Default,t=Br(!0);if(null!=t||e&ue.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},Gd.\u0275pipe=Dt({name:"async",type:Gd,pure:!1}),Gd),ah=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,rh=((Kd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Wd(e,t);return t.replace(ah,(function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}))}}]),e}()).\u0275fac=function(e){return new(e||Kd)},Kd.\u0275pipe=Dt({name:"titlecase",type:Kd,pure:!0}),Kd),oh=((Qd=function(){function e(t){_classCallCheck(this,e),this.locale=t}return _createClass(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return dd(t,n,a||this.locale,i)}catch(r){throw Wd(e,r.message)}}}]),e}()).\u0275fac=function(e){return new(e||Qd)(Mo(Sc))},Qd.\u0275pipe=Dt({name:"date",type:Qd,pure:!0}),Qd),sh=/#/g,lh=((Zd=function(){function e(t){_classCallCheck(this,e),this._localization=t}return _createClass(e,[{key:"transform",value:function(t,n,i){if(null==t)return"";if("object"!=typeof n||null===n)throw Wd(e,n);return n[function(e,t,n,i){var a="=".concat(e);if(t.indexOf(a)>-1)return a;if(a=n.getPluralCategory(e,i),t.indexOf(a)>-1)return a;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}(t,Object.keys(n),this._localization,i)].replace(sh,t.toString())}}]),e}()).\u0275fac=function(e){return new(e||Zd)(Mo(wd))},Zd.\u0275pipe=Dt({name:"i18nPlural",type:Zd,pure:!0}),Zd),ch=((Xd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,i){if(null==t)return t;if(!this.supports(t))throw Wd(e,t);return t.slice(n,i)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}()).\u0275fac=function(e){return new(e||Xd)},Xd.\u0275pipe=Dt({name:"slice",type:Xd,pure:!1}),Xd),uh=((Jd=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Jd}),Jd.\u0275inj=me({factory:function(e){return new(e||Jd)},providers:[{provide:wd,useClass:Cd}]}),Jd),dh=(($d=function e(){_classCallCheck(this,e)}).\u0275prov=fe({token:$d,providedIn:"root",factory:function(){return new hh(Xe(Cu),window,Xe(fi))}}),$d),hh=function(){function e(t,n,i){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],i-a[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}(),fh=function e(){_classCallCheck(this,e)},ph=function e(){_classCallCheck(this,e)},mh=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),a=i.toLowerCase(),r=e.slice(t+1).trim();n.maybeSetNormalizedName(i,a),n.headers.has(a)?n.headers.get(a).push(r):n.headers.set(a,[r])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var i=t[e],a=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(a,i),n.maybeSetNormalizedName(e,a))}))}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var a=e.value;if(a){var r=this.headers.get(t);if(!r)return;0===(r=r.filter((function(e){return-1===a.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,r)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return e(t.normalizedNames.get(n),t.headers.get(n))}))}}]),e}(),_h=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return gh(e)}},{key:"encodeValue",value:function(e){return gh(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function gh(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var vh=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new _h,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var i=e.indexOf("="),a=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),r=a[0],o=a[1],s=n.get(r)||[];s.push(o),n.set(r,s)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])}))):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],a=i.indexOf(t.value);-1!==a&&i.splice(a,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function yh(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function kh(e){return"undefined"!=typeof Blob&&e instanceof Blob}function bh(e){return"undefined"!=typeof FormData&&e instanceof FormData}var wh=function(){function e(t,n,i,a){var r;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==i?i:null,r=a):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new mh),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+o}}else this.params=new vh,this.urlWithParams=n}return _createClass(e,[{key:"serializeBody",value:function(){return null===this.body?null:yh(this.body)||kh(this.body)||bh(this.body)||"string"==typeof this.body?this.body:this.body instanceof vh?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||bh(this.body)?null:kh(this.body)?this.body.type||null:yh(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof vh?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,a=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),c)),new e(n,i,r,{params:c,headers:l,reportProgress:s,responseType:a,withCredentials:o})}}]),e}(),Ch=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),Dh=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new mh,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Sh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=Ch.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Dh),Mh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=Ch.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Dh),xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(Dh);function Th(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Ah,Lh,Ih,Eh,Oh,Rh,Ph,Yh,Fh,qh,Vh,Hh,Nh,Bh=((Ah=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof wh)n=e;else{var r=void 0;r=a.headers instanceof mh?a.headers:new mh(a.headers);var o=void 0;a.params&&(o=a.params instanceof vh?a.params:new vh({fromObject:a.params})),n=new wh(e,t,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=mu(n).pipe(_u((function(e){return i.handler.handle(e)})));if(e instanceof wh||"events"===a.observe)return s;var l=s.pipe(gu((function(e){return e instanceof Mh})));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(V((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(V((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(V((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return l.pipe(V((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new vh).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Th(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Th(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Th(n,t))}}]),e}()).\u0275fac=function(e){return new(e||Ah)(Xe(fh))},Ah.\u0275prov=fe({token:Ah,factory:Ah.\u0275fac}),Ah),jh=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),zh=new je("HTTP_INTERCEPTORS"),Uh=((Lh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Lh)},Lh.\u0275prov=fe({token:Lh,factory:Lh.\u0275fac}),Lh),Wh=/^\)\]\}',?\n/,Gh=function e(){_classCallCheck(this,e)},Qh=((Eh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||Eh)},Eh.\u0275prov=fe({token:Eh,factory:Eh.\u0275fac}),Eh),Kh=((Ih=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w((function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((function(e,t){return i.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var a=e.detectContentTypeHeader();null!==a&&i.setRequestHeader("Content-Type",a)}if(e.responseType){var r=e.responseType.toLowerCase();i.responseType="json"!==r?r:"text"}var o=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",a=new mh(i.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Sh({headers:a,status:t,statusText:n,url:r})},c=function(){var t=l(),a=t.headers,r=t.status,o=t.statusText,s=t.url,c=null;204!==r&&(c=void 0===i.response?i.responseText:i.response),0===r&&(r=c?200:0);var u=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof c){var d=c;c=c.replace(Wh,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=d,u&&(u=!1,c={error:h,text:c})}}u?(n.next(new Mh({body:c,headers:a,status:r,statusText:o,url:s||void 0})),n.complete()):n.error(new xh({error:c,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(e){var t=l().url,a=new xh({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(a)},d=!1,h=function(t){d||(n.next(l()),d=!0);var a={type:Ch.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(a.total=t.total),"text"===e.responseType&&i.responseText&&(a.partialText=i.responseText),n.next(a)},f=function(e){var t={type:Ch.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",u),e.reportProgress&&(i.addEventListener("progress",h),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:Ch.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||Ih)(Xe(Gh))},Ih.\u0275prov=fe({token:Ih,factory:Ih.\u0275fac}),Ih),$h=new je("XSRF_COOKIE_NAME"),Jh=new je("XSRF_HEADER_NAME"),Xh=function e(){_classCallCheck(this,e)},Zh=((Fh=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Dd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Fh)(Xe(Cu),Xe(wc),Xe($h))},Fh.\u0275prov=fe({token:Fh,factory:Fh.\u0275fac}),Fh),ef=((Yh=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Yh)(Xe(Xh),Xe(Jh))},Yh.\u0275prov=fe({token:Yh,factory:Yh.\u0275fac}),Yh),tf=((Ph=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(zh,[]);this.chain=t.reduceRight((function(e,t){return new jh(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ph)(Xe(ph),Xe(ro))},Ph.\u0275prov=fe({token:Ph,factory:Ph.\u0275fac}),Ph),nf=((Rh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:ef,useClass:Uh}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:$h,useValue:t.cookieName}:[],t.headerName?{provide:Jh,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=bt({type:Rh}),Rh.\u0275inj=me({factory:function(e){return new(e||Rh)},providers:[ef,{provide:zh,useExisting:ef,multi:!0},{provide:Xh,useClass:Zh},{provide:$h,useValue:"XSRF-TOKEN"},{provide:Jh,useValue:"X-XSRF-TOKEN"}]}),Rh),af=((Oh=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Oh}),Oh.\u0275inj=me({factory:function(e){return new(e||Oh)},providers:[Bh,{provide:fh,useClass:tf},Kh,{provide:ph,useExisting:Kh},Qh,{provide:Gh,useExisting:Qh}],imports:[[nf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Oh),rf=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=of||(of=document.querySelector("base"))?of.getAttribute("href"):null;return null==n?null:(t=n,qh||(qh=document.createElement("a")),qh.setAttribute("href",t),"/"===qh.pathname.charAt(0)?qh.pathname:"/"+qh.pathname)}},{key:"resetBaseElement",value:function(){of=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Dd(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,ku||(ku=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),of=null,sf=new je("TRANSITION_ID"),lf=[{provide:_c,useFactory:function(e,t,n){return function(){n.get(gc).donePromise.then((function(){var n=bu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[sf,Cu,ro],multi:!0}],cf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Pe.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Pe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Pe.getAllAngularRootElements=function(){return e.getAllRootElements()},Pe.frameworkStabilizers||(Pe.frameworkStabilizers=[]),Pe.frameworkStabilizers.push((function(e){var t=Pe.getAllAngularTestabilities(),n=t.length,i=!1,a=function(t){i=i||t,0==--n&&e(i)};t.forEach((function(e){e.whenStable(a)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?bu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Kc=t}}]),e}(),uf=new je("EventManagerPlugins"),df=((Vh=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=i})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var a=n[i];if(a.supports(e))return this._eventNameToPlugin.set(e,a),a}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}()).\u0275fac=function(e){return new(e||Vh)(Xe(uf),Xe(qc))},Vh.\u0275prov=fe({token:Vh,factory:Vh.\u0275fac}),Vh),hf=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=bu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),ff=((Nh=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Nh)},Nh.\u0275prov=fe({token:Nh,factory:Nh.\u0275fac}),Nh),pf=((Hh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return bu().remove(e)}))}}]),n}(ff)).\u0275fac=function(e){return new(e||Hh)(Xe(Cu))},Hh.\u0275prov=fe({token:Hh,factory:Hh.\u0275fac}),Hh),mf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_f=/%COMP%/g;function gf(e,t,n){for(var i=0;i<t.length;i++){var a=t[i];Array.isArray(a)?gf(e,a,n):(a=a.replace(_f,e),n.push(a))}return n}function vf(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var yf,kf,bf,wf,Cf,Df,Sf=((yf=function(){function e(t,n,i){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Mf(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ft.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new xf(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case ft.Native:case ft.ShadowDom:return new Tf(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=gf(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||yf)(Xe(df),Xe(pf),Xe(vc))},yf.\u0275prov=fe({token:yf,factory:yf.\u0275fac}),yf),Mf=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(mf[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var a=mf[i];a?e.setAttributeNS(a,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=mf[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&Ws.DashCase?e.style.setProperty(t,n,i&Ws.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Ws.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,vf(n)):this.eventManager.addEventListener(e,t,vf(n))}}]),e}(),xf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;_classCallCheck(this,n),(o=t.call(this,e)).component=a;var s,l=gf(r+"-"+a.id,a.styles,[]);return i.addStyles(l),o.contentAttr="_ngcontent-%COMP%".replace(_f,r+"-"+a.id),o.hostAttr=(s=r+"-"+a.id,"_nghost-%COMP%".replace(_f,s)),o}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(Mf),Tf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;_classCallCheck(this,n),(o=t.call(this,e)).sharedStylesHost=i,o.hostEl=a,o.component=r,o.shadowRoot=r.encapsulation===ft.ShadowDom?a.attachShadow({mode:"open"}):a.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=gf(r.id,r.styles,[]),l=0;l<s.length;l++){var c=document.createElement("style");c.textContent=s[l],o.shadowRoot.appendChild(c)}return o}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Mf),Af=((kf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(hf)).\u0275fac=function(e){return new(e||kf)(Xe(Cu))},kf.\u0275prov=fe({token:kf,factory:kf.\u0275fac}),kf),Lf=["alt","control","meta","shift"],If={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ef={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Of={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Rf=((Cf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var a=n.parseEventName(t),r=n.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return bu().onAndCancel(e,a.domEventName,r)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var a=n._normalizeKey(t.pop()),r="";if(Lf.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),r+=e+".")})),r+=a,0!=t.length||0===a.length)return null;var o={};return o.domEventName=i,o.fullKey=r,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ef.hasOwnProperty(t)&&(t=Ef[t]))}return If[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Lf.forEach((function(i){i!=n&&(0,Of[i])(e)&&(t+=i+".")})),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(a){n.getEventFullKey(a)===e&&i.runGuarded((function(){return t(a)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(hf)).\u0275fac=function(e){return new(e||Cf)(Xe(Cu))},Cf.\u0275prov=fe({token:Cf,factory:Cf.\u0275fac}),Cf),Pf=((wf=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||wf)},wf.\u0275prov=fe({factory:function(){return Xe(Yf)},token:wf,providedIn:"root"}),wf),Yf=((bf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Qi.NONE:return t;case Qi.HTML:return bi(t,"HTML")?ki(t):Wi(this._doc,String(t));case Qi.STYLE:return bi(t,"Style")?ki(t):function(e){if(!(e=String(e).trim()))return"";var t=e.match($i);return t&&Ai(t[1])===t[1]||e.match(Ki)&&function(e){for(var t=!0,n=!0,i=0;i<e.length;i++){var a=e.charAt(i);"'"===a&&n?t=!t:'"'===a&&t&&(n=!n)}return t&&n}(e)?e:(Si()&&console.warn("WARNING: sanitizing unsafe style value ".concat(e," (see http://g.co/ng/security#xss).")),"unsafe")}(t);case Qi.SCRIPT:if(bi(t,"Script"))return ki(t);throw new Error("unsafe value used in a script context");case Qi.URL:return wi(t),bi(t,"URL")?ki(t):Ai(String(t));case Qi.RESOURCE_URL:if(bi(t,"ResourceURL"))return ki(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new mi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new _i(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new gi(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new vi(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new yi(e)}}]),n}(Pf)).\u0275fac=function(e){return new(e||bf)(Xe(Cu))},bf.\u0275prov=fe({factory:function(){return e=Xe(ze),new Yf(e.get(Cu));var e},token:bf,providedIn:"root"}),bf),Ff=Zc(du,"browser",[{provide:wc,useValue:"browser"},{provide:bc,useValue:function(){rf.makeCurrent(),cf.init()},multi:!0},{provide:Cu,useFactory:function(){return function(e){Pt=e}(document),document},deps:[]}]),qf=[[],{provide:Ur,useValue:"root"},{provide:fi,useFactory:function(){return new fi},deps:[]},{provide:uf,useClass:Af,multi:!0,deps:[Cu,qc,wc]},{provide:uf,useClass:Rf,multi:!0,deps:[Cu]},[],{provide:Sf,useClass:Sf,deps:[df,pf,vc]},{provide:Us,useExisting:Sf},{provide:ff,useExisting:pf},{provide:pf,useClass:pf,deps:[Cu]},{provide:Gc,useClass:Gc,deps:[qc]},{provide:df,useClass:df,deps:[uf,qc]},[]],Vf=((Df=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:vc,useValue:t.appId},{provide:sf,useExisting:vc},lf]}}}]),e}()).\u0275mod=bt({type:Df}),Df.\u0275inj=me({factory:function(e){return new(e||Df)(Xe(Df,12))},providers:qf,imports:[uh,fu]}),Df);"undefined"!=typeof window&&window;var Hf=function e(){_classCallCheck(this,e)};function Nf(e,t){return{type:7,name:e,definitions:t,options:{}}}function Bf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Uf(e){return{type:6,styles:e,offset:null}}function Wf(e,t,n){return{type:0,name:e,styles:t,options:n}}function Gf(e){return{type:5,steps:e}}function Qf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Kf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Jf(e){Promise.resolve(null).then(e)}var Xf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Jf((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),Zf=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,a=0,r=0,o=this.players.length;0==o?Jf((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++i==o&&n._onFinish()})),e.onDestroy((function(){++a==o&&n._onDestroy()})),e.onStart((function(){++r==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function ep(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function tp(e){switch(e.length){case 0:return new Xf;case 1:return e[0];default:return new Zf(e)}}function np(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(i.forEach((function(e){var n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach((function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=a[n];break;case"*":s=r[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}u[i]=s})),i||s.push(u),c=u,l=n})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function ip(e,t,n,i){switch(t){case"start":e.onStart((function(){return i(n&&ap(n,"start",e))}));break;case"done":e.onDone((function(){return i(n&&ap(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return i(n&&ap(n,"destroy",e))}))}}function ap(e,t,n){var i=n.totalTime,a=rp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),r=e._data;return null!=r&&(a._data=r),a}function rp(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:a,totalTime:r,disabled:!!o}}function op(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function sp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var lp=function(e,t){return!1},cp=function(e,t){return!1},up=function(e,t,n){return[]},dp=ep();(dp||"undefined"!=typeof Element)&&(lp=function(e,t){return e.contains(t)},cp=function(){if(dp||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:cp}(),up=function(e,t,n){var i=[];if(n)i.push.apply(i,_toConsumableArray(e.querySelectorAll(t)));else{var a=e.querySelector(t);a&&i.push(a)}return i});var hp=null,fp=!1;function pp(e){hp||(hp=("undefined"!=typeof document?document.body:null)||{},fp=!!hp.style&&"WebkitAppearance"in hp.style);var t=!0;return hp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in hp.style)&&fp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in hp.style),t}var mp=cp,_p=lp,gp=up;function vp(e){var t={};return Object.keys(e).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]})),t}var yp,kp=((yp=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return pp(e)}},{key:"matchesElement",value:function(e,t){return mp(e,t)}},{key:"containsElement",value:function(e,t){return _p(e,t)}},{key:"query",value:function(e,t,n){return gp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new Xf(n,i)}}]),e}()).\u0275fac=function(e){return new(e||yp)},yp.\u0275prov=fe({token:yp,factory:yp.\u0275fac}),yp),bp=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new kp,e}();function wp(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cp(parseFloat(t[1]),t[2])}function Cp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Dp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,a=0,r="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Cp(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=Cp(parseFloat(s),o[4]));var l=o[5];l&&(r=l)}else i=e;if(!n){var c=!1,u=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),a<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:a,easing:r}}(e,t,n)}function Sp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Mp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Sp(e,n);return n}function xp(e,t,n){return n?t+":"+n+";":""}function Tp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=xp(0,i,e.style.getPropertyValue(i))}for(var a in e.style)e.style.hasOwnProperty(a)&&!a.startsWith("_")&&(t+=xp(0,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[a]));e.setAttribute("style",t)}function Ap(e,t,n){e.style&&(Object.keys(t).forEach((function(i){var a=Fp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[a]),e.style[a]=t[i]})),ep()&&Tp(e))}function Lp(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=Fp(t);e.style[n]=""})),ep()&&Tp(e))}function Ip(e){return Array.isArray(e)?1==e.length?e[0]:zf(e):e}var Ep=new RegExp("{{\\s*(.+?)\\s*}}","g");function Op(e){var t=[];if("string"==typeof e){for(var n;n=Ep.exec(e);)t.push(n[1]);Ep.lastIndex=0}return t}function Rp(e,t,n){var i=e.toString(),a=i.replace(Ep,(function(e,i){var a=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),a=""),a.toString()}));return a==i?e:a}function Pp(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Yp=/-+([a-z0-9])/g;function Fp(e){return e.replace(Yp,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function qp(e,t){return 0===e||0===t}function Vp(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var a=t[0],r=[];if(i.forEach((function(e){a.hasOwnProperty(e)||r.push(e),a[e]=n[e]})),r.length)for(var o=function(){var n=t[s];r.forEach((function(t){n[t]=Np(e,t)}))},s=1;s<t.length;s++)o()}return t}function Hp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function Np(e,t){return window.getComputedStyle(e)[t]}var Bp=new Set(["true","1"]),jp=new Set(["false","0"]);function zp(e,t){var n=Bp.has(e)||jp.has(e),i=Bp.has(t)||jp.has(t);return function(a,r){var o="*"==e||e==a,s="*"==t||t==r;return!o&&n&&"boolean"==typeof a&&(o=a?Bp.has(e):jp.has(e)),!s&&i&&"boolean"==typeof r&&(s=r?Bp.has(t):jp.has(t)),o&&s}}var Up=new RegExp("s*:selfs*,?","g");function Wp(e,t,n){return new Gp(e).build(t,n)}var Gp=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new Qp(t);return this._resetContextStyleTimingState(n),Hp(this,Ip(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,a=t.depCount=0,r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach((function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach((function(e){s.name=e,r.push(n.visitState(s,t))})),s.name=l}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,a+=c.depCount,o.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:r,transitions:o,queryCount:i,depCount:a,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var a=new Set,r=i||{};if(n.styles.forEach((function(e){if(Kp(e)){var t=e;Object.keys(t).forEach((function(e){Op(t[e]).forEach((function(e){r.hasOwnProperty(e)||a.add(e)}))}))}})),a.size){var o=Pp(a.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,a,r=Hp(this,Ip(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,a=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var a=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var r=a[1],o=a[2],s=a[3];t.push(zp(r,s)),"<"!=o[0]||"*"==r&&"*"==s||t.push(zp(s,r))}(e,a,i)})):a.push(n),a),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:$p(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return Hp(n,e,t)})),options:$p(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,a=0,r=e.steps.map((function(e){t.currentTime=i;var r=Hp(n,e,t);return a=Math.max(a,t.currentTime),r}));return t.currentTime=a,{type:3,steps:r,options:$p(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Jp(Dp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var a=Jp(0,0,"");return a.dynamic=!0,a.strValue=i,a}return Jp((n=n||Dp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var a=e.styles?e.styles:Uf({});if(5==a.type)n=this.visitKeyframes(a,t);else{var r=e.styles,o=!1;if(!r){o=!0;var s={};i.easing&&(s.easing=i.easing),r=Uf(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(r,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var i=!1,a=null;return n.forEach((function(e){if(Kp(e)){var t=e,n=t.easing;if(n&&(a=n,delete t.easing),!i)for(var r in t)if(t[r].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:a,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,a=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,c,u,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),f=!1),r=h.startTime),f&&(d[i]={startTime:r,endTime:a}),t.options&&(o=e[i],s=t.options,l=t.errors,c=s.params||{},(u=Op(o)).length&&u.forEach((function(e){c.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var a=0,r=[],o=!1,s=!1,l=0,c=e.steps.map((function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(Kp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Kp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=c&&(a++,u=i.offset=c),s=s||u<0||u>1,o=o||u<l,l=u,r.push(u),i}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,d=0;a>0&&a<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==a&&(d=1/(u-1));var h=u-1,f=t.currentTime,p=t.currentAnimateTimings,m=p.duration;return c.forEach((function(e,a){var o=d>0?a==h?1:d*a:r[a],s=o*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)})),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Hp(this,Ip(e.animation),t),options:$p(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:$p(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:$p(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var a=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(Up,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),r=a[0],o=a[1];t.currentQuerySelector=n.length?n+" "+r:r,op(t.collectedStyles,t.currentQuerySelector,{});var s=Hp(this,Ip(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:$p(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Dp(e.timings,t.errors,!0);return{type:12,animation:Hp(this,Ip(e.animation),t),timings:n,options:null}}}]),e}(),Qp=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Kp(e){return!Array.isArray(e)&&"object"==typeof e}function $p(e){var t;return e?(e=Sp(e)).params&&(e.params=(t=e.params)?Sp(t):null):e={},e}function Jp(e,t,n){return{duration:e,delay:t,easing:n}}function Xp(e,t,n,i,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var Zp=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),em=new RegExp(":enter","g"),tm=new RegExp(":leave","g");function nm(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new im).buildKeyframes(e,t,n,i,a,r,o,s,l,c)}var im=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,a,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Zp;var u=new rm(e,t,l,i,a,c,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),Hp(this,n,u);var d=u.timelines.filter((function(e){return e.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(e){return e.buildKeyframes()})):[Xp(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),a=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);a!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,a=null!=n.duration?wp(n.duration):null,r=null!=n.delay?wp(n.delay):null;return 0!==a&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,a,r);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Hp(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,a=t,r=e.options;if(r&&(r.params||r.delay)&&((a=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=am);var o=wp(r.delay);a.delayNextStep(o)}e.steps.length&&(e.steps.forEach((function(e){return Hp(n,e,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>i&&a.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],a=t.currentTimeline.currentTime,r=e.options&&e.options.delay?wp(e.options.delay):0;e.steps.forEach((function(o){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),Hp(n,o,s),a=Math.max(a,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(a),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Dp(t.params?Rp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var a=e.style;5==a.type?this.visitKeyframes(a,t):(t.incrementTime(n.duration),this.visitStyle(a,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var a=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(a):n.setStyles(e.styles,a,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,a=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach((function(e){r.forwardTime((e.offset||0)*a),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+a),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,a=e.options||{},r=a.delay?wp(a.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=am);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!a.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach((function(i,a){t.currentQueryIndex=a;var s=t.createSubContext(e.options,i);r&&s.delayNextStep(r),i===t.element&&(l=s.currentTimeline),Hp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,a=e.timings,r=Math.abs(a.duration),o=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;Hp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),am={},rm=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=am,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new om(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,a=this.options;null!=i.duration&&(a.duration=wp(i.duration)),null!=i.delay&&(a.delay=wp(i.delay));var r=i.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(e){t&&o.hasOwnProperty(e)||(o[e]=Rp(r[e],o,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,r=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=am,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},a=new sm(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(a),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,a,r){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(em,"."+this._enterClassName)).replace(tm,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),e}(),om=function(){function e(t,n,i,a){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var a=this;t&&(this._previousKeyframe.easing=t);var r=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){i[e]="*"})):Mp(e,!1,i)})),i}(e,this._globalTimelineStyles);Object.keys(o).forEach((function(e){var t=Rp(o[e],r,n);a._pendingStyles[e]=t,a._localTimelineStyles.hasOwnProperty(e)||(a._backFill[e]=a._globalTimelineStyles.hasOwnProperty(e)?a._globalTimelineStyles[e]:"*"),a._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var i=t._styleSummary[n],a=e._styleSummary[n];(!i||a.time>i.time)&&t._updateStyle(n,a.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=Mp(r,!0);Object.keys(s).forEach((function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)})),i||(s.offset=o/e.duration),a.push(s)}));var r=t.size?Pp(t.values()):[],o=n.size?Pp(n.values()):[];if(i){var s=a[0],l=Sp(s);s.offset=0,l.offset=1,a=[s,l]}return Xp(this.element,a,r,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),sm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=a,l.preStyleProps=r,l.postStyleProps=o,l._stretchStartingKeyframe=c,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,a=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],o=i+n,s=n/o,l=Mp(e[0],!1);l.offset=0,r.push(l);var c=Mp(e[0],!1);c.offset=lm(s),r.push(c);for(var u=e.length-1,d=1;d<=u;d++){var h=Mp(e[d],!1);h.offset=lm((n+h.offset*i)/o),r.push(h)}i=o,n=0,a="",e=r}return Xp(this.element,e,this.preStyleProps,this.postStyleProps,i,n,a,!0)}}]),n}(om);function lm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var cm=function e(){_classCallCheck(this,e)},um=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Fp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var a="",r=n.toString().trim();if(dm[t]&&0!==n&&"0"!==n)if("number"==typeof n)a="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return r+a}}]),n}(cm),dm=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function hm(e,t,n,i,a,r,o,s,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:a,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var fm={},pm=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,a){return e.some((function(e){return e(t,n,i,a)}))}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],a=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return a?a.buildStyles(t,n):r}},{key:"build",value:function(e,t,n,i,a,r,o,s,l,c){var u=[],d=this.ast.options&&this.ast.options.params||fm,h=this.buildStyles(n,o&&o.params||fm,u),f=s&&s.params||fm,p=this.buildStyles(i,f,u),m=new Set,_=new Map,g=new Map,v="void"===i,y={params:Object.assign(Object.assign({},d),f)},k=c?[]:nm(e,t,this.ast.animation,a,r,h,p,y,l,u),b=0;if(k.forEach((function(e){b=Math.max(e.duration+e.delay,b)})),u.length)return hm(t,this._triggerName,n,i,v,h,p,[],[],_,g,b,u);k.forEach((function(e){var n=e.element,i=op(_,n,{});e.preStyleProps.forEach((function(e){return i[e]=!0}));var a=op(g,n,{});e.postStyleProps.forEach((function(e){return a[e]=!0})),n!==t&&m.add(n)}));var w=Pp(m.values());return hm(t,this._triggerName,n,i,v,h,p,k,w,_,g,b)}}]),e}(),mm=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},i=Sp(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(i[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var a=e;Object.keys(a).forEach((function(e){var r=a[e];r.length>1&&(r=Rp(r,i,t)),n[e]=r}))}})),n}}]),e}(),_m=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){i.states[e.name]=new mm(e.style,e.options&&e.options.params||{})})),gm(this.states,"true","1"),gm(this.states,"false","0"),n.transitions.forEach((function(e){i.transitionFactories.push(new pm(t,e,i.states))})),this.fallbackTransition=new pm(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find((function(a){return a.match(e,t,n,i)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function gm(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var vm=new Zp,ym=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=Wp(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,a=np(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,a,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[e],s=new Map;if(o?(n=nm(this._driver,t,o,"ng-enter","ng-leave",{},{},a,vm,r)).forEach((function(e){var t=op(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),n=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=i._driver.computeStyle(t,n,"*")}))}));var l=tp(n.map((function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return i.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var a=rp(t,"","","");return ip(this._getPlayer(e),n,a,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var a=this._getPlayer(e);switch(n){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),km=[],bm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cm=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,a=t&&t.hasOwnProperty("value");if(this.value=null!=(i=a?t.value:t)?i:null,a){var r=Sp(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Dm=new Cm("void"),Sm=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Em(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var a,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(a=n)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=op(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var l=op(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Em(e,"ng-trigger"),Em(e,"ng-trigger-"+t),l[t]=Dm),function(){r._engine.afterFlush((function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),r._triggers[t]||delete l[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(t),o=new xm(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Em(e,"ng-trigger"),Em(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],c=new Cm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[t]=c,l||(l=Dm),"void"===c.value||l.value!==c.value){var u=op(this._engine.playersByElement,e,[]);u.forEach((function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()}));var d=r.matchTransition(l.value,c.value,e,c.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(Em(e,"ng-animate-queued"),o.onStart((function(){Om(e,"ng-animate-queued")}))),o.onDone((function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var a=n.indexOf(o);a>=0&&n.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var a=0;a<n.length;a++){var r=n[a];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(l.params,c.params)){var f=[],p=r.matchStyles(l.value,l.params,f),m=r.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush((function(){Lp(e,p),Ap(e,m)}))}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach((function(t,n){delete t[e]})),this._elementListeners.forEach((function(n,i){t._elementListeners.set(i,n.filter((function(t){return t.name!=e})))}))}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach((function(e){return e.destroy()})),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach((function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(e,t,!1,!0)})):n.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(e){return n.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var a=this,r=this._engine.statesByElement.get(e);if(r){var o=[];if(Object.keys(r).forEach((function(t){if(a._triggers[t]){var n=a.trigger(e,t,"void",i);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&tp(o).onDone((function(){return a._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var i=new Set;n.forEach((function(n){var a=n.name;if(!i.has(a)){i.add(a);var r=t._triggers[a].fallbackTransition,o=t._engine.statesByElement.get(e)[a]||Dm,s=new Cm("void"),l=new xm(t.id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:r,fromState:o,toState:s,player:l,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var a=!1;if(i.totalAnimations){var r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)a=!0;else for(var o=e;o=o.parentNode;)if(i.statesByElement.get(o)){a=!0;break}}if(this.prepareLeaveAnimationListeners(e),a)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==bm||(i.afterFlush((function(){return n.clearElementCache(e)})),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Em(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(i){var a=i.player;if(!a.destroyed){var r=i.element,o=t._elementListeners.get(r);o&&o.forEach((function(t){if(t.name==i.triggerName){var n=rp(r,i.triggerName,i.fromState.value,i.toState.value);n._data=e,ip(i.player,t.phase,n,t.callback)}})),a.markedForDestroy?t._engine.afterFlush((function(){a.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(e,n){var i=e.transition.ast.depCount,a=n.transition.ast.depCount;return 0==i||0==a?i-a:t._engine.driver.containsElement(e.element,n.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),Mm=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return _createClass(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new Sm(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,a=n;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,t)){this._namespaceList.splice(a+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),a=0;a<i.length;a++){var r=n[i[a]].namespaceId;if(r){var o=this._fetchNamespace(r);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Tm(t)){var a=this._fetchNamespace(e);if(a)return a.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Tm(t)){var a=t.__ng_removed;if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;var r=this.collectedLeaveElements.indexOf(t);r>=0&&this.collectedLeaveElements.splice(r,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Em(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Om(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Tm(t)){var a=e?this._fetchNamespace(e):null;if(a?a.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,a){return Tm(t)?this._fetchNamespace(e).listen(t,n,i,a):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,a){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,a)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return tp(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=bm,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)Em(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var a=[];try{n=this._flushAnimations(a,t)}finally{for(var r=0;r<a.length;r++)a[r]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(e){return e()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?tp(n).onDone((function(){s.forEach((function(e){return e()}))})):s.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Zp,a=[],r=new Map,o=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach((function(e){u.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)u.add(t[i])}));var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Im(h,this.collectedEnterElements),p=new Map,m=0;f.forEach((function(e,t){var n="ng-enter"+m++;p.set(t,n),e.forEach((function(e){return Em(e,n)}))}));for(var _=[],g=new Set,v=new Set,y=0;y<this.collectedLeaveElements.length;y++){var k=this.collectedLeaveElements[y],b=k.__ng_removed;b&&b.setForRemoval&&(_.push(k),g.add(k),b.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(e){return g.add(e)})):v.add(k))}var w=new Map,C=Im(h,Array.from(g));C.forEach((function(e,t){var n="ng-leave"+m++;w.set(t,n),e.forEach((function(e){return Em(e,n)}))})),e.push((function(){f.forEach((function(e,t){var n=p.get(t);e.forEach((function(e){return Om(e,n)}))})),C.forEach((function(e,t){var n=w.get(t);e.forEach((function(e){return Om(e,n)}))})),_.forEach((function(e){n.processLeaveNode(e)}))}));for(var D=[],S=[],M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach((function(e){var t=e.player,r=e.element;if(D.push(t),n.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,r),f=w.get(r),m=p.get(r),_=n._buildInstruction(e,i,m,f,h);if(!_.errors||!_.errors.length)return h||e.isFallbackTransition?(t.onStart((function(){return Lp(r,_.fromStyles)})),t.onDestroy((function(){return Ap(r,_.toStyles)})),void a.push(t)):(_.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),i.append(r,_.timelines),o.push({instruction:_,player:t,element:r}),_.queriedElements.forEach((function(e){return op(s,e,[]).push(t)})),_.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}})),void _.postStyleProps.forEach((function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))})));S.push(_)}));if(S.length){var x=[];S.forEach((function(e){x.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return x.push("- ".concat(e,"\n"))}))})),D.forEach((function(e){return e.destroy()})),this.reportError(x)}var T=new Map,A=new Map;o.forEach((function(e){var t=e.element;i.has(t)&&(A.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))})),a.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){op(T,t,[]).push(e),e.destroy()}))}));var L=_.filter((function(e){return Pm(e,l,c)})),I=new Map;Lm(I,this.driver,v,c,"*").forEach((function(e){Pm(e,l,c)&&L.push(e)}));var E=new Map;f.forEach((function(e,t){Lm(E,n.driver,new Set(e),l,"!")})),L.forEach((function(e){var t=I.get(e),n=E.get(e);I.set(e,Object.assign(Object.assign({},t),n))}));var O=[],R=[],P={};o.forEach((function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(u.has(t))return o.onDestroy((function(){return Ap(t,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var l=P;if(A.size>1){for(var c=t,d=[];c=c.parentNode;){var h=A.get(c);if(h){l=h;break}d.push(c)}d.forEach((function(e){return A.set(e,l)}))}var f=n._buildAnimation(o.namespaceId,s,T,r,E,I);if(o.setRealPlayer(f),l===P)O.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=tp(p)),a.push(o)}}else Lp(t,s.fromStyles),o.onDestroy((function(){return Ap(t,s.toStyles)})),R.push(o),u.has(t)&&a.push(o)})),R.forEach((function(e){var t=r.get(e.element);if(t&&t.length){var n=tp(t);e.setRealPlayer(n)}})),a.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var Y=0;Y<_.length;Y++){var F=_[Y],q=F.__ng_removed;if(Om(F,"ng-leave"),!q||!q.hasAnimation){var V=[];if(s.size){var H=s.get(F);H&&H.length&&V.push.apply(V,_toConsumableArray(H));for(var N=this.driver.query(F,".ng-animating",!0),B=0;B<N.length;B++){var j=s.get(N[B]);j&&j.length&&V.push.apply(V,_toConsumableArray(j))}}var z=V.filter((function(e){return!e.destroyed}));z.length?Rm(this,F,z):this.processLeaveNode(F)}}return _.length=0,O.forEach((function(e){n.players.push(e),e.onDone((function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)})),e.play()})),O}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,a){var r=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(r=o)}else{var s=this.playersByElement.get(e);if(s){var l=!a||"void"==a;s.forEach((function(e){e.queued||(l||e.triggerName==i)&&r.push(e)}))}}return(n||i)&&(r=r.filter((function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)}))),r}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,a=this,r=t.element,o=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=_createForOfIteratorHelper(t.timelines);try{var c=function(){var e=i.value.element,l=e!==r,c=op(n,e,[]);a._getPreviousPlayers(e,l,o,s,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)}))};for(l.s();!(i=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}Lp(r,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,a,r){var o=this,s=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map((function(t){var h=t.element;u.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Xf(t.duration,t.delay);var p,m,_=h!==l,g=(p=(n.get(h)||km).map((function(e){return e.getRealPlayer()})),m=[],function e(t,n){for(var i=0;i<t.length;i++){var a=t[i];a instanceof Zf?e(a.players,n):n.push(a)}}(p,m),m).filter((function(e){return!!e.element&&e.element===h})),v=a.get(h),y=r.get(h),k=np(0,o._normalizer,0,t.keyframes,v,y),b=o._buildPlayer(t,k,g);if(t.subTimeline&&i&&d.add(h),_){var w=new xm(e,s,h);w.setRealPlayer(b),c.push(w)}return b}));c.forEach((function(e){op(o.playersByQueriedElement,e.element,[]).push(e),e.onDone((function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var a=i.indexOf(n);i.splice(a,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&delete e[t]}return i}(o.playersByQueriedElement,e.element,e)}))})),u.forEach((function(e){return Em(e,"ng-animating")}));var f=tp(h);return f.onDestroy((function(){u.forEach((function(e){return Om(e,"ng-animating")})),Ap(l,t.toStyles)})),d.forEach((function(e){op(i,e,[]).push(f)})),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Xf(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),xm=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Xf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return ip(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){op(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Tm(e){return e&&1===e.nodeType}function Am(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Lm(e,t,n,i,a){var r=[];n.forEach((function(e){return r.push(Am(e))}));var o=[];i.forEach((function(n,i){var r={};n.forEach((function(e){var n=r[e]=t.computeStyle(i,e,a);n&&0!=n.length||(i.__ng_removed=wm,o.push(i))})),e.set(i,r)}));var s=0;return n.forEach((function(e){return Am(e,r[s++])})),o}function Im(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var i=new Set(t),a=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var r=a.get(t);if(r)return r;var o=t.parentNode;return r=n.has(o)?o:i.has(o)?1:e(o),a.set(t,r),r}(e);1!==t&&n.get(t).push(e)})),n}function Em(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Om(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Rm(e,t,n){tp(n).onDone((function(){return e.processLeaveNode(t)}))}function Pm(e,t,n){var i=n.get(e);if(!i)return!1;var a=t.get(e);return a?i.forEach((function(e){return a.add(e)})):t.set(e,i),n.delete(e),!0}var Ym=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Mm(t,n,i),this._timelineEngine=new ym(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return a.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,i,a){var r=e+"-"+i,o=this._triggerCache[r];if(!o){var s=[],l=Wp(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new _m(e,t)}(i,l),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,i,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var a=_slicedToArray(sp(n),2),r=a[0],o=a[1];this._timelineEngine.command(r,t,o,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,a){if("@"==n.charAt(0)){var r=_slicedToArray(sp(n),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,t,s,a)}return this._transitionEngine.listen(e,t,n,i,a)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Fm(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Vm(t[0]),t.length>1&&(i=Vm(t[t.length-1]))):t&&(n=Vm(t)),n||i?new qm(e,n,i):null}var qm=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=e.initialStylesByElement.get(t);a||e.initialStylesByElement.set(t,a={}),this._initialStyles=a}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ap(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ap(this._element,this._initialStyles),this._endStyles&&(Ap(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Lp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lp(this._element,this._endStyles),this._endStyles=null),Ap(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Vm(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var a=n[i];Hm(a)&&((t=t||{})[a]=e[a])}return t}function Hm(e){return"display"===e||"position"===e}var Nm=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this._element=t,this._name=n,this._duration=i,this._delay=a,this._easing=r,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return _createClass(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Gm(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),Wm(e,"",t),Um(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Bm(this._element,this._name,"paused")}},{key:"resume",value:function(){Bm(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=jm(this._element,this._name);this._position=e*this._duration,Wm(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Um(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Gm(e,"").split(","),(i=zm(n,t))>=0&&(n.splice(i,1),Wm(e,"",n.join(","))))}}]),e}();function Bm(e,t,n){Wm(e,"PlayState",n,jm(e,t))}function jm(e,t){var n=Gm(e,"");return n.indexOf(",")>0?zm(n.split(","),t):zm([n],t)}function zm(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Um(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Wm(e,t,n,i){var a="animation"+t;if(null!=i){var r=e.style[a];if(r.length){var o=r.split(",");o[i]=n,n=o.join(",")}}e.style[a]=n}function Gm(e,t){return e.style["animation"+t]}var Qm=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Nm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Np(e.element,i))}))}this.currentSnapshot=t}}]),e}(),Km=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).element=e,a._startingStyles={},a.__initialized=!1,a._styles=vp(i),a}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(Xf),$m=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return pp(e)}},{key:"matchesElement",value:function(e,t){return mp(e,t)}},{key:"containsElement",value:function(e,t){return _p(e,t)}},{key:"query",value:function(e,t,n){return gp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return vp(e)}));var i="@keyframes ".concat(t," {\n"),a="";n.forEach((function(e){a=" ";var t=parseFloat(e.offset);i+="".concat(a).concat(100*t,"% {\n"),a+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(a,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(a).concat(t,": ").concat(n,";\n"))}})),i+="".concat(a,"}\n")})),i+="}\n";var r=document.createElement("style");return r.innerHTML=i,r}},{key:"animate",value:function(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(e){return e instanceof Qm})),l={};qp(n,i)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=Vp(e,t,l));if(0==n)return new Km(e,c);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);var h=Fm(e,t),f=new Qm(e,t,u,n,i,a,c,h);return f.onDestroy((function(){var e;(e=d).parentNode.removeChild(e)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),Jm=function(){function e(t,n,i,a){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Np(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Xm=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Zm().toString()),this._cssKeyframesDriver=new $m}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return pp(e)}},{key:"matchesElement",value:function(e,t){return mp(e,t)}},{key:"containsElement",value:function(e,t){return _p(e,t)}},{key:"query",value:function(e,t,n){return gp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,a,r);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};a&&(s.easing=a);var l={},c=r.filter((function(e){return e instanceof Jm}));qp(n,i)&&c.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=Fm(e,t=Vp(e,t=t.map((function(e){return Mp(e,!1)})),l));return new Jm(e,t,s,u)}}]),e}();function Zm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var e_,t_=((e_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._nextAnimationId=0,a._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ft.None,styles:[],data:{animation:[]}}),a}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?zf(e):e;return a_(this._renderer,null,t,"register",[n]),new n_(t,this._renderer)}}]),n}(Hf)).\u0275fac=function(e){return new(e||e_)(Xe(Us),Xe(Cu))},e_.\u0275prov=fe({token:e_,factory:e_.\u0275fac}),e_),n_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._id=e,a._renderer=i,a}return _createClass(n,[{key:"create",value:function(e,t){return new i_(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),i_=function(){function e(t,n,i,a){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return a_(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function a_(e,t,n,i,a){return e.setProperty(t,"@@".concat(n,":").concat(i),a)}var r_,o_,s_,l_=((r_=function(){function e(t,n,i){_classCallCheck(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return _createClass(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var a=this._rendererCache.get(i);return a||(a=new c_("",i,this.engine),this._rendererCache.set(i,a)),a}var r=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach((function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(r,o,e,i.name,i)})),new u_(this,o,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(e){var t=_slicedToArray(e,2);(0,t[0])(t[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||r_)(Xe(Us),Xe(Ym),Xe(qc))},r_.\u0275prov=fe({token:r_,factory:r_.\u0275fac}),r_),c_=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return _createClass(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),u_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,i,a,r)).factory=e,o.namespaceId=i,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,a,r=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),c="";return"@"!=l.charAt(0)&&(a=(i=l).indexOf("."),l=(o=_slicedToArray([i.substring(0,a),i.substr(a+1)],2))[0],c=o[1]),this.engine.listen(this.namespaceId,s,l,c,(function(e){r.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}]),n}(c_),d_=((o_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){return _classCallCheck(this,n),t.call(this,e.body,i,a)}return n}(Ym)).\u0275fac=function(e){return new(e||o_)(Xe(Cu),Xe(bp),Xe(cm))},o_.\u0275prov=fe({token:o_,factory:o_.\u0275fac}),o_),h_=new je("AnimationModuleType"),f_=[{provide:bp,useFactory:function(){return"function"==typeof Zm()?new Xm:new $m}},{provide:h_,useValue:"BrowserAnimations"},{provide:Hf,useClass:t_},{provide:cm,useFactory:function(){return new um}},{provide:Ym,useClass:d_},{provide:Us,useFactory:function(e,t,n){return new l_(e,t,n)},deps:[Sf,Ym,qc]}],p_=((s_=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:s_}),s_.\u0275inj=me({factory:function(e){return new(e||s_)},providers:f_,imports:[Vf]}),s_);function m_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(l(i))return __(i,null);if(c(i)&&Object.getPrototypeOf(i)===Object.prototype){var a=Object.keys(i);return __(a.map((function(e){return i[e]})),a)}}if("function"==typeof t[t.length-1]){var r=t.pop();return __(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(V((function(e){return r.apply(void 0,_toConsumableArray(e))})))}return __(t,null)}function __(e,t){return new w((function(n){var i=e.length;if(0!==i)for(var a=new Array(i),r=0,o=0,s=function(s){var l=j(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,o++),a[s]=e},error:function(e){return n.error(e)},complete:function(){++r!==i&&c||(o===i&&n.next(t?t.reduce((function(e,t,n){return e[t]=a[n],e}),{}):a),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()}))}var g_,v_,y_,k_,b_=new je("NgValueAccessor"),w_={provide:b_,useExisting:xe((function(){return C_})),multi:!0},C_=((g_=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||g_)(Mo(Gs),Mo(js))},g_.\u0275dir=Ct({type:g_,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[Vs([w_])]}),g_),D_={provide:b_,useExisting:xe((function(){return M_})),multi:!0},S_=new je("CompositionEventMode"),M_=((k_=function(){function e(t,n,i){var a;_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(a=bu()?bu().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase())))}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||k_)(Mo(Gs),Mo(js),Mo(S_,8))},k_.\u0275dir=Ct({type:k_,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Ho("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[Vs([D_])]}),k_),x_=((y_=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}()).\u0275fac=function(e){return new(e||y_)},y_.\u0275dir=Ct({type:y_}),y_),T_=((v_=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(x_)).\u0275fac=function(e){return A_(e||v_)},v_.\u0275dir=Ct({type:v_,features:[Cs]}),v_),A_=ci(T_);function L_(){throw new Error("unimplemented")}var I_,E_,O_=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return _createClass(n,[{key:"validator",get:function(){return L_()}},{key:"asyncValidator",get:function(){return L_()}}]),n}(x_),R_=function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),P_=((E_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(R_)).\u0275fac=function(e){return new(e||E_)(Mo(O_,2))},E_.\u0275dir=Ct({type:E_,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&rs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Cs]}),E_),Y_=((I_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(R_)).\u0275fac=function(e){return new(e||I_)(Mo(T_,2))},I_.\u0275dir=Ct({type:I_,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&rs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Cs]}),I_);function F_(e){return null==e||0===e.length}var q_=new je("NgValidators"),V_=new je("NgAsyncValidators"),H_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,N_=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"min",value:function(e){return function(t){if(F_(t.value)||F_(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(F_(t.value)||F_(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return F_(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return F_(e.value)||H_.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(F_(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}},{key:"maxLength",value:function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(F_(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(B_);return 0==t.length?null:function(e){return z_(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(B_);return 0==t.length?null:function(e){return m_(function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(j_)).pipe(V(z_))}}}]),e}();function B_(e){return null!=e}function j_(e){var t=qo(e)?j(e):e;if(!Vo(t))throw new Error("Expected validator to return Promise or Observable.");return t}function z_(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function U_(e){return e.validate?function(t){return e.validate(t)}:e}function W_(e){return e.validate?function(t){return e.validate(t)}:e}var G_,Q_,K_,$_,J_,X_,Z_={provide:b_,useExisting:xe((function(){return eg})),multi:!0},eg=((G_=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||G_)(Mo(Gs),Mo(js))},G_.\u0275dir=Ct({type:G_,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Vs([Z_])]}),G_),tg={provide:b_,useExisting:xe((function(){return ig})),multi:!0},ng=((K_=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||K_)},K_.\u0275prov=fe({token:K_,factory:K_.\u0275fac}),K_),ig=((Q_=function(){function e(t,n,i,a){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(O_),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}]),e}()).\u0275fac=function(e){return new(e||Q_)(Mo(Gs),Mo(js),Mo(ng),Mo(ro))},Q_.\u0275dir=Ct({type:Q_,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Vs([tg])]}),Q_),ag={provide:b_,useExisting:xe((function(){return rg})),multi:!0},rg=(($_=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||$_)(Mo(Gs),Mo(js))},$_.\u0275dir=Ct({type:$_,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Vs([ag])]}),$_),og='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',sg='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',lg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ".concat(og))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '.concat(sg,'\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        \n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>'))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ".concat(og))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ".concat(sg))}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}},{key:"ngModelWarning",value:function(e){console.warn("\n    It looks like you're using ngModel on the same form field as ".concat(e,". \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/").concat("formControl"===e?"FormControlDirective":"FormControlName","#use-with-ngmodel\n    "))}}]),e}(),cg={provide:b_,useExisting:xe((function(){return ug})),multi:!0},ug=((J_=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=po}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(e)));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||J_)(Mo(Gs),Mo(js))},J_.\u0275dir=Ct({type:J_,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Vs([cg])]}),J_),dg={provide:b_,useExisting:xe((function(){return hg})),multi:!0},hg=((X_=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=po}return _createClass(e,[{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var a=n.selectedOptions,r=0;r<a.length;r++){var o=a.item(r),s=t._getOptionValue(o.value);i.push(s)}else for(var l=n.options,c=0;c<l.length;c++){var u=l.item(c);if(u.selected){var d=t._getOptionValue(u.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(e)));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||X_)(Mo(Gs),Mo(js))},X_.\u0275dir=Ct({type:X_,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ho("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Vs([dg])]}),X_);function fg(e,t){e||gg(t,"Cannot find control with"),t.valueAccessor||gg(t,"No value accessor for form control with"),e.validator=N_.compose([e.validator,t.validator]),e.asyncValidator=N_.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&pg(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&pg(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function pg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function mg(e,t){null==e&&gg(t,"Cannot find control with"),e.validator=N_.compose([e.validator,t.validator]),e.asyncValidator=N_.composeAsync([e.asyncValidator,t.asyncValidator])}function _g(e){return gg(e,"There is no FormControl instance attached to form control element with")}function gg(e,t){var n;throw n=e.path.length>1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function vg(e){return null!=e?N_.compose(e.map(U_)):null}function yg(e){return null!=e?N_.composeAsync(e.map(W_)):null}var kg=[C_,rg,eg,ug,hg,ig];function bg(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function wg(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Cg(e){var t=Sg(e)?e.validators:e;return Array.isArray(t)?vg(t):t||null}function Dg(e,t){var n=Sg(t)?t.asyncValidators:e;return Array.isArray(n)?yg(n):n||null}function Sg(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Mg,xg,Tg,Ag,Lg,Ig,Eg,Og,Rg,Pg,Yg=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Cg(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Dg(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=j_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach((function(e){i=i instanceof qg?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Vg&&i.at(e)||null})),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Gl,this.statusChanges=new Gl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Sg(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Fg=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Cg(a),Dg(r,a)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(a),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Yg),qg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,Cg(i),Dg(a,i))).controls=e,r._initObservables(),r._setUpdateStrategy(i),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Fg?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,n=!1;return this._forEachChild((function(i,a){n=n||t.contains(a)&&e(i)})),n}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(Yg),Vg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,Cg(i),Dg(a,i))).controls=e,r._initObservables(),r._setUpdateStrategy(i),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Fg?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Yg),Hg={provide:T_,useExisting:xe((function(){return Bg}))},Ng=Promise.resolve(null),Bg=((xg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this)).submitted=!1,a._directives=[],a.ngSubmit=new Gl,a.form=new qg({},vg(e),yg(i)),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Ng.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),fg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Ng.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),wg(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;Ng.then((function(){var n=t._findContainer(e.path),i=new qg({});mg(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Ng.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Ng.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,bg(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(T_)).\u0275fac=function(e){return new(e||xg)(Mo(q_,10),Mo(V_,10))},xg.\u0275dir=Ct({type:xg,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ho("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vs([Hg]),Cs]}),xg),jg=((Mg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Mg)},Mg.\u0275dir=Ct({type:Mg,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Mg),zg=new je("NgModelWithFormControlWarning"),Ug={provide:O_,useExisting:xe((function(){return Wg}))},Wg=((Tg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this))._ngModelWarningConfig=r,o.update=new Gl,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=i||[],o.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||gg(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,a=void 0;return t.forEach((function(t){var r;t.constructor===M_?n=t:(r=t,kg.some((function(e){return r.constructor===e}))?(i&&gg(e,"More than one built-in value accessor matches form control with"),i=t):(a&&gg(e,"More than one custom value accessor matches form control with"),a=t))})),a||i||n||(gg(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(o),a),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){var t,i;this._isControlChanged(e)&&(fg(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!po(t,n.currentValue)}(e,this.viewModel)&&(t=n,i=this._ngModelWarningConfig,Si()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(lg.ngModelWarning("formControl"),t._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){lg.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return vg(this._rawValidators)}},{key:"asyncValidator",get:function(){return yg(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(O_)).\u0275fac=function(e){return new(e||Tg)(Mo(q_,10),Mo(V_,10),Mo(b_,10),Mo(zg,8))},Tg.\u0275dir=Ct({type:Tg,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Vs([Ug]),Cs,As]}),Tg._ngModelWarningSentOnce=!1,Tg),Gg={provide:T_,useExisting:xe((function(){return Qg}))},Qg=((Ag=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._validators=e,a._asyncValidators=i,a.submitted=!1,a.directives=[],a.form=null,a.ngSubmit=new Gl,a}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return fg(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){wg(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);mg(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);mg(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,bg(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange((function(){return _g(t)})),t.valueAccessor.registerOnTouched((function(){return _g(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&fg(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=vg(this._validators);this.form.validator=N_.compose([this.form.validator,e]);var t=yg(this._asyncValidators);this.form.asyncValidator=N_.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form||lg.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(T_)).\u0275fac=function(e){return new(e||Ag)(Mo(q_,10),Mo(V_,10))},Ag.\u0275dir=Ct({type:Ag,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Ho("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vs([Gg]),Cs,As]}),Ag),Kg={provide:q_,useExisting:xe((function(){return Jg})),multi:!0},$g={provide:q_,useExisting:xe((function(){return Xg})),multi:!0},Jg=((Ig=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this.required?N_.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||Ig)},Ig.\u0275dir=Ct({type:Ig,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&wo("required",t.required?"":null)},inputs:{required:"required"},features:[Vs([Kg])]}),Ig),Xg=((Lg=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?N_.requiredTrue(e):null}}]),n}(Jg)).\u0275fac=function(e){return Zg(e||Lg)},Lg.\u0275dir=Ct({type:Lg,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&wo("required",t.required?"":null)},features:[Vs([$g]),Cs]}),Lg),Zg=ci(Xg),ev=((Pg=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Pg}),Pg.\u0275inj=me({factory:function(e){return new(e||Pg)}}),Pg),tv=((Rg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,a=null,r=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,a=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,a=null!=t.asyncValidator?t.asyncValidator:null)),new qg(n,{asyncValidators:a,updateOn:r,validators:i})}},{key:"control",value:function(e,t,n){return new Fg(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,a=e.map((function(e){return i._createControl(e)}));return new Vg(a,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n}},{key:"_createControl",value:function(e){return e instanceof Fg||e instanceof qg||e instanceof Vg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||Rg)},Rg.\u0275prov=fe({token:Rg,factory:Rg.\u0275fac}),Rg),nv=((Og=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Og}),Og.\u0275inj=me({factory:function(e){return new(e||Og)},providers:[ng],imports:[ev]}),Og),iv=((Eg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:zg,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=bt({type:Eg}),Eg.\u0275inj=me({factory:function(e){return new(e||Eg)},providers:[tv,ng],imports:[ev]}),Eg),av=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(T),rv=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),ov={};function sv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null,a=null;return L(t[t.length-1])&&(a=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),Q(t,a).lift(new lv(i))}var lv=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new cv(e,this.resultSelector))}}]),e}(),cv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).resultSelector=i,a.active=0,a.values=[],a.observables=[],a}return _createClass(n,[{key:"_next",value:function(e){this.values.push(ov),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(F(this,i,i,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,i,a){var r=this.values,o=this.toRespond?r[n]===ov?--this.toRespond:this.toRespond:0;r[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(q),uv=new w((function(e){return e.complete()}));function dv(e){return e?function(e){return new w((function(t){return e.schedule((function(){return t.complete()}))}))}(e):uv}function hv(e){return new w((function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?j(n):dv()).subscribe(t)}))}function fv(){return G(1)}var pv=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function mv(e){return function(t){return 0===e?dv():t.lift(new _v(e))}}var _v=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new pv}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new gv(e,this.total))}}]),e}(),gv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).total=i,a.ring=new Array,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,a=0;a<n;a++){var r=t++%n;e.next(i[r])}e.complete()}}]),n}(m);function vv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bv;return function(t){return t.lift(new yv(e))}}var yv=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new kv(e,this.errorFactory))}}]),e}(),kv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).errorFactory=i,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(m);function bv(){return new rv}function wv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Cv(e))}}var Cv=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Dv(e,this.defaultValue))}}]),e}(),Dv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).defaultValue=i,a.isEmpty=!0,a}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(m);function Sv(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gu((function(t,n){return e(t,n,i)})):v,mv(1),n?wv(t):vv((function(){return new rv})))}}function Mv(e){return function(t){var n=new xv(e),i=t.lift(n);return n.caught=i}}var xv=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Tv(e,this.selector,this.caught))}}]),e}(),Tv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).selector=i,r.caught=a,r}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(r){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var i=new I(this,void 0,void 0);this.add(i);var a=F(this,t,void 0,void 0,i);a!==i&&this.add(a)}}}]),n}(q);function Av(e){return function(t){return 0===e?dv():t.lift(new Lv(e))}}var Lv=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new pv}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Iv(e,this.total))}}]),e}(),Iv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).total=i,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(m);function Ev(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gu((function(t,n){return e(t,n,i)})):v,Av(1),n?wv(t):vv((function(){return new rv})))}}var Ov=function(){function e(t,n,i){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Rv(e,this.predicate,this.thisArg,this.source))}}]),e}(),Rv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(m);function Pv(e,t){return"function"==typeof t?function(n){return n.pipe(Pv((function(n,i){return j(e(n,i)).pipe(V((function(e,a){return t(n,e,i,a)})))})))}:function(t){return t.lift(new Yv(e))}}var Yv=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Fv(e,this.project))}}]),e}(),Fv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var a=new I(this,t,n),r=this.destination;r.add(a),this.innerSubscription=F(this,e,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,a){this.destination.next(t)}}]),n}(q);function qv(){return fv()(mu.apply(void 0,arguments))}function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return L(i)?(t.pop(),function(e){return qv(t,e,i)}):function(e){return qv(t,e)}}function Hv(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Nv(e,t,n))}}var Nv=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Bv(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=i,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(m);function jv(e,t){return arguments.length>=2?function(n){return y(Hv(e,t),mv(1),wv(t))(n)}:function(t){return y(Hv((function(t,n,i){return e(t,n,i+1)})),mv(1))(t)}}function zv(){}function Uv(e,t,n){return function(i){return i.lift(new Wv(e,t,n))}}var Wv=function(){function e(t,n,i){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Gv(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Gv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this,e))._tapNext=zv,s._tapError=zv,s._tapComplete=zv,s._tapError=r||zv,s._tapComplete=o||zv,i(a)?(s._context=_assertThisInitialized(s),s._tapNext=a):a&&(s._context=a,s._tapNext=a.next||zv,s._tapError=a.error||zv,s._tapComplete=a.complete||zv),s}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(m);function Qv(e){return function(t){return t.lift(new $v(e))}}var Kv,$v=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Jv(e,this.callback))}}]),e}(),Jv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).add(new h(i)),a}return n}(m),Xv=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},Zv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(a=t.call(this,e,i)).navigationTrigger=r,a.restoredState=o,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Xv),ey=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).urlAfterRedirects=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Xv),ty=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).reason=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Xv),ny=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).error=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Xv),iy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Xv),ay=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Xv),ry=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Xv),oy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Xv),sy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=a,o.state=r,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Xv),ly=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),cy=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),uy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),py=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),my=((Kv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Kv)},Kv.\u0275cmp=gt({type:Kv,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Oo(0,"router-outlet")},directives:function(){return[Mb]},encapsulation:2}),Kv),_y=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function gy(e){return new _y(e)}function vy(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yy(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var a={},r=0;r<i.length;r++){var o=i[r],s=e[r];if(o.startsWith(":"))a[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:a}}var ky=function e(t,n){_classCallCheck(this,e),this.routes=t,this.module=n};function by(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];wy(i,Cy(t,i))}}function wy(e,t){if(!e)throw new Error("\n      Invalid configuration of route '".concat(t,"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&by(e.children,t)}function Cy(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function Dy(e){var t=e.children&&e.children.map(Dy),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=my),n}function Sy(e,t){var n,i=Object.keys(e),a=Object.keys(t);if(!i||!a||i.length!=a.length)return!1;for(var r=0;r<i.length;r++)if(!My(e[n=i[r]],t[n]))return!1;return!0}function My(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every((function(e){return t.indexOf(e)>-1})):e===t}function xy(e){return Array.prototype.concat.apply([],e)}function Ty(e){return e.length>0?e[e.length-1]:null}function Ay(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ly(e){return Vo(e)?e:qo(e)?j(Promise.resolve(e)):mu(e)}function Iy(e,t,n){return n?function(e,t){return Sy(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Py(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return My(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,a){if(n.segments.length>a.length)return!!Py(n.segments.slice(0,a.length),a)&&!i.hasChildren();if(n.segments.length===a.length){if(!Py(n.segments,a))return!1;for(var r in i.children){if(!n.children[r])return!1;if(!e(n.children[r],i.children[r]))return!1}return!0}var o=a.slice(0,n.segments.length),s=a.slice(n.segments.length);return!!Py(n.segments,o)&&!!n.children.primary&&t(n.children.primary,i,s)}(t,n,n.segments)}(e.root,t.root)}var Ey=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"toString",value:function(){return Vy.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=gy(this.queryParams)),this._queryParamMap}}]),e}(),Oy=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,Ay(n,(function(e,t){return e.parent=i}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Hy(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Ry=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return Wy(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=gy(this.parameters)),this._parameterMap}}]),e}();function Py(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Yy(e,t){var n=[];return Ay(e.children,(function(e,i){"primary"===i&&(n=n.concat(t(e,i)))})),Ay(e.children,(function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))})),n}var Fy=function e(){_classCallCheck(this,e)},qy=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Jy(e);return new Ey(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"".concat("/".concat(function e(t,n){if(!t.hasChildren())return Hy(t);if(n){var i=t.children.primary?e(t.children.primary,!1):"",a=[];return Ay(t.children,(function(t,n){"primary"!==n&&a.push("".concat(n,":").concat(e(t,!1)))})),a.length>0?"".concat(i,"(").concat(a.join("//"),")"):i}var r=Yy(t,(function(n,i){return"primary"===i?[e(t.children.primary,!1)]:["".concat(i,":").concat(e(n,!1))]}));return"".concat(Hy(t),"/(").concat(r.join("//"),")")}(e.root,!0)),(n=e.queryParams,i=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.map((function(t){return"".concat(By(e),"=").concat(By(t))})).join("&"):"".concat(By(e),"=").concat(By(t))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Vy=new qy;function Hy(e){return e.segments.map((function(e){return Wy(e)})).join("/")}function Ny(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function By(e){return Ny(e).replace(/%3B/gi,";")}function jy(e){return Ny(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zy(e){return decodeURIComponent(e)}function Uy(e){return zy(e.replace(/\+/g,"%20"))}function Wy(e){return"".concat(jy(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(jy(e),"=").concat(jy(t[e]))})).join("")));var t}var Gy=/^[^\/()?;=#]+/;function Qy(e){var t=e.match(Gy);return t?t[0]:""}var Ky=/^[^=?&#]+/,$y=/^[^?&#]+/,Jy=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oy([],{}):new Oy([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Oy(e,t)),n}},{key:"parseSegment",value:function(){var e=Qy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Ry(zy(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Qy(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Qy(this.remaining);i&&(n=i,this.capture(n))}e[zy(t)]=zy(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ky);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match($y);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var a=Uy(t),r=Uy(n);if(e.hasOwnProperty(a)){var o=e[a];Array.isArray(o)||(o=[o],e[a]=o),o.push(r)}else e[a]=r}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Qy(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;n.indexOf(":")>-1?(a=n.substr(0,n.indexOf(":")),this.capture(a),this.capture(":")):e&&(a="primary");var r=this.parseChildren();t[a]=1===Object.keys(r).length?r.primary:new Oy([],r),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Xy=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Zy(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Zy(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=ek(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return ek(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Zy(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var a=Zy(e,n.value);if(a)return a}}catch(r){i.e(r)}finally{i.f()}return null}function ek(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var a=ek(e,n.value);if(a.length)return a.unshift(t),a}}catch(r){i.e(r)}finally{i.f()}return[]}var tk=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function nk(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var ik=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).snapshot=i,ck(_assertThisInitialized(a),e),a}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Xy);function ak(e,t){var n=function(e,t){var n=new sk([],{},{},"",{},"primary",t,null,e.root,-1,{});return new lk("",new tk(n,[]))}(e,t),i=new av([new Ry("",{})]),a=new av({}),r=new av({}),o=new av({}),s=new av(""),l=new rk(i,a,o,s,r,"primary",t,n.root);return l.snapshot=n.root,new ik(new tk(l,[]),n)}var rk=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=l}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(V((function(e){return gy(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V((function(e){return gy(e)})))),this._queryParamMap}}]),e}();function ok(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var a=n[i],r=n[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var sk=function(){function e(t,n,i,a,r,o,s,l,c,u,d){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=gy(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=gy(this.queryParams)),this._queryParamMap}}]),e}(),lk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i)).url=e,ck(_assertThisInitialized(a),i),a}return _createClass(n,[{key:"toString",value:function(){return uk(this._root)}}]),n}(Xy);function ck(e,t){t.value._routerState=e,t.children.forEach((function(t){return ck(e,t)}))}function uk(e){var t=e.children.length>0?" { ".concat(e.children.map(uk).join(", ")," } "):"";return"".concat(e.value).concat(t)}function dk(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Sy(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Sy(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Sy(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Sy(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function hk(e,t){var n,i;return Sy(e.params,t.params)&&Py(n=e.url,i=t.url)&&n.every((function(e,t){return Sy(e.parameters,i[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||hk(e.parent,t.parent))}function fk(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function pk(e,t,n,i,a){var r={};return i&&Ay(i,(function(e,t){r[t]=Array.isArray(e)?e.map((function(e){return"".concat(e)})):"".concat(e)})),new Ey(n.root===e?t:function e(t,n,i){var a={};return Ay(t.children,(function(t,r){a[r]=t===n?i:e(t,n,i)})),new Oy(t.segments,a)}(n.root,e,t),r,a)}var mk=function(){function e(t,n,i){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&fk(i[0]))throw new Error("Root segment cannot have matrix parameters");var a=i.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(a&&a!==Ty(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),_k=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function gk(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function vk(e,t,n){if(e||(e=new Oy([],{})),0===e.segments.length&&e.hasChildren())return yk(e,t,n);var i=function(e,t,n){for(var i=0,a=t,r={match:!1,pathIndex:0,commandIndex:0};a<e.segments.length;){if(i>=n.length)return r;var o=e.segments[a],s=gk(n[i]),l=i<n.length-1?n[i+1]:null;if(a>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Ck(s,l,o))return r;i+=2}else{if(!Ck(s,{},o))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(e,t,n),a=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var r=new Oy(e.segments.slice(0,i.pathIndex),{});return r.children.primary=new Oy(e.segments.slice(i.pathIndex),e.children),yk(r,0,a)}return i.match&&0===a.length?new Oy(e.segments,{}):i.match&&!e.hasChildren()?kk(e,t,n):i.match?yk(e,0,a):kk(e,t,n)}function yk(e,t,n){if(0===n.length)return new Oy(e.segments,{});var i=function(e){return"object"!=typeof e[0]||void 0===e[0].outlets?{primary:e}:e[0].outlets}(n),a={};return Ay(i,(function(n,i){null!==n&&(a[i]=vk(e.children[i],t,n))})),Ay(e.children,(function(e,t){void 0===i[t]&&(a[t]=e)})),new Oy(e.segments,a)}function kk(e,t,n){for(var i=e.segments.slice(0,t),a=0;a<n.length;){if("object"==typeof n[a]&&void 0!==n[a].outlets){var r=bk(n[a].outlets);return new Oy(i,r)}if(0===a&&fk(n[0]))i.push(new Ry(e.segments[t].path,n[0])),a++;else{var o=gk(n[a]),s=a<n.length-1?n[a+1]:null;o&&s&&fk(s)?(i.push(new Ry(o,wk(s))),a+=2):(i.push(new Ry(o,{})),a++)}}return new Oy(i,{})}function bk(e){var t={};return Ay(e,(function(e,n){null!==e&&(t[n]=kk(new Oy([],{}),0,e))})),t}function wk(e){var t={};return Ay(e,(function(e,n){return t[n]="".concat(e)})),t}function Ck(e,t,n){return e==n.path&&Sy(t,n.parameters)}var Dk=function(){function e(t,n,i,a){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=a}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),dk(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,a=nk(t);e.children.forEach((function(e){var t=e.value.outlet;i.deactivateRoutes(e,a[t],n),delete a[t]})),Ay(a,(function(e,t){i.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,a=t?t.value:null;if(i===a)if(i.component){var r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else a&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:a})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,i=t.getContext(e.value.outlet);if(i){var a=nk(e),r=e.value.component?i.children:t;Ay(a,(function(e,t){return n.deactivateRouteAndItsChildren(e,r)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,a=nk(t);e.children.forEach((function(e){i.activateRoutes(e,a[e.value.outlet],n),i.forwardEvent(new fy(e.value.snapshot))})),e.children.length&&this.forwardEvent(new dy(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,a=t?t.value:null;if(dk(i),i===a)if(i.component){var r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Sk(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=l?l.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=c,o.outlet&&o.outlet.activateWith(i,c),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function Sk(e){dk(e.value),e.children.forEach(Sk)}function Mk(e){return"function"==typeof e}function xk(e){return e instanceof Ey}var Tk=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Ak=function e(t){_classCallCheck(this,e),this.urlTree=t};function Lk(e){return new w((function(t){return t.error(new Tk(e))}))}function Ik(e){return new w((function(t){return t.error(new Ak(e))}))}function Ek(e){return new w((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var Ok=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=a,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(it)}return _createClass(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(V((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Mv((function(t){if(t instanceof Ak)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Tk)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(V((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(Mv((function(e){if(e instanceof Tk)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Oy([],{primary:e}):e;return new Ey(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(V((function(e){return new Oy([],e)}))):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,a){if(0===Object.keys(n).length)return mu({});var r=[],o=[],s={};return Ay(n,(function(n,a){var l,c,u=(l=a,c=n,i.expandSegmentGroup(e,t,c,l)).pipe(V((function(e){return s[a]=e})));"primary"===a?r.push(u):o.push(u)})),mu.apply(null,r.concat(o)).pipe(fv(),Sv(),V((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,i,a,r){var o=this;return mu.apply(void 0,_toConsumableArray(n)).pipe(V((function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,a,r).pipe(Mv((function(e){if(e instanceof Tk)return mu(null);throw e})))})),fv(),Ev((function(e){return!!e})),Mv((function(e,n){if(e instanceof rv||"EmptyError"===e.name){if(o.noLeftoversInUrl(t,i,a))return mu(new Oy([],{}));throw new Tk(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,a,r,o){return Fk(i)!==r?Lk(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,a,r):Lk(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,a,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var a=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ik(r):this.lineralizeSegments(n,r).pipe(z((function(n){var r=new Oy(n,{});return a.expandSegment(e,r,t,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,a,r){var o=this,s=Rk(t,i,a),l=s.matched,c=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!l)return Lk(t);var h=this.applyRedirectCommands(c,i.redirectTo,d);return i.redirectTo.startsWith("/")?Ik(h):this.lineralizeSegments(i,h).pipe(z((function(i){return o.expandSegment(e,t,n,i.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(V((function(e){return n._loadedConfig=e,new Oy(i,{})}))):mu(new Oy(i,{}));var r=Rk(t,n,i),o=r.matched,s=r.consumedSegments,l=r.lastChild;if(!o)return Lk(t);var c=i.slice(l);return this.getChildConfig(e,n,i).pipe(z((function(e){var n=e.module,i=e.routes,r=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some((function(n){return Yk(e,t,n)&&"primary"!==Fk(n)}))}(e,n,i)?{segmentGroup:Pk(new Oy(t,function(e,t){var n={};n.primary=t;var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;""===r.path&&"primary"!==Fk(r)&&(n[Fk(r)]=new Oy([],{}))}}catch(o){a.e(o)}finally{a.f()}return n}(i,new Oy(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return Yk(e,t,n)}))}(e,n,i)?{segmentGroup:Pk(new Oy(e.segments,function(e,t,n,i){var a,r={},o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;Yk(e,t,s)&&!i[Fk(s)]&&(r[Fk(s)]=new Oy([],{}))}}catch(l){o.e(l)}finally{o.f()}return Object.assign(Object.assign({},i),r)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,c,i),o=r.segmentGroup,l=r.slicedSegments;return 0===l.length&&o.hasChildren()?a.expandChildren(n,i,o).pipe(V((function(e){return new Oy(s,e)}))):0===i.length&&0===l.length?mu(new Oy(s,{})):a.expandSegment(n,o,i,l,"primary",!0).pipe(V((function(e){return new Oy(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?mu(new ky(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?mu(t._loadedConfig):function(e,t,n){var i,a=t.canLoad;return a&&0!==a.length?j(a).pipe(V((function(i){var a,r=e.get(i);if(function(e){return e&&Mk(e.canLoad)}(r))a=r.canLoad(t,n);else{if(!Mk(r))throw new Error("Invalid CanLoad guard");a=r(t,n)}return Ly(a)}))).pipe(fv(),(i=function(e){return!0===e},function(e){return e.lift(new Ov(i,void 0,e))})):mu(!0)}(e.injector,t,n).pipe(z((function(n){return n?i.configLoader.load(e.injector,t).pipe(V((function(e){return t._loadedConfig=e,e}))):function(e){return new w((function(t){return t.error(vy("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):mu(new ky([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return mu(n);if(i.numberOfChildren>1||!i.children.primary)return Ek(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var a=this.createSegmentGroup(e,t.root,n,i);return new Ey(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Ay(e,(function(e,i){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);n[i]=t[a]}else n[i]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var a=this,r=this.createSegments(e,t.segments,n,i),o={};return Ay(t.children,(function(t,r){o[r]=a.createSegmentGroup(e,t,n,i)})),new Oy(r,o)}},{key:"createSegments",value:function(e,t,n,i){var a=this;return t.map((function(t){return t.path.startsWith(":")?a.findPosParam(e,t,i):a.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.path===e.path)return t.splice(i),r;i++}}catch(o){a.e(o)}finally{a.f()}return e}}]),e}();function Rk(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||yy)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Pk(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Oy(e.segments.concat(t.segments),t.children)}return e}function Yk(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Fk(e){return e.outlet||"primary"}var qk=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},Vk=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function Hk(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Nk(e,t,n,i){var a=nk(e),r=e.value;Ay(a,(function(e,a){Nk(e,r.component?t?t.children.getContext(a):null:n?n.getContext(a):t,n,i)})),i.canDeactivateChecks.push(new Vk(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var Bk=Symbol("INITIAL_VALUE");function jk(){return Pv((function(e){return sv.apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(Av(1),Vv(Bk))})))).pipe(Hv((function(e,t){var n=!1;return t.reduce((function(e,i,a){if(e!==Bk)return e;if(i===Bk&&(n=!0),!n){if(!1===i)return i;if(a===t.length-1||xk(i))return i}return e}),e)}),Bk),gu((function(e){return e!==Bk})),V((function(e){return xk(e)?e:!0===e})),Av(1))}))}function zk(e,t){return null!==e&&t&&t(new hy(e)),mu(!0)}function Uk(e,t){return null!==e&&t&&t(new uy(e)),mu(!0)}function Wk(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?mu(i.map((function(i){return hv((function(){var a,r=Hk(i,t,n);if(function(e){return e&&Mk(e.canActivate)}(r))a=Ly(r.canActivate(t,e));else{if(!Mk(r))throw new Error("Invalid CanActivate guard");a=Ly(r(t,e))}return a.pipe(Ev())}))}))).pipe(jk()):mu(!0)}function Gk(e,t,n){var i=t[t.length-1],a=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return hv((function(){return mu(t.guards.map((function(a){var r,o=Hk(a,t.node,n);if(function(e){return e&&Mk(e.canActivateChild)}(o))r=Ly(o.canActivateChild(i,e));else{if(!Mk(o))throw new Error("Invalid CanActivateChild guard");r=Ly(o(i,e))}return r.pipe(Ev())}))).pipe(jk())}))}));return mu(a).pipe(jk())}var Qk=function e(){_classCallCheck(this,e)},Kk=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){try{var e=Xk(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new sk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new tk(n,t),a=new lk(this.url,i);return this.inheritParamsAndData(a._root),mu(a)}catch(r){return new w((function(e){return e.error(r)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ok(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,a=Yy(t,(function(t,n){return i.processSegmentGroup(e,t,n)}));return n={},a.forEach((function(e){var t=n[e.value.outlet];if(t){var i=t.url.map((function(e){return e.toString()})).join("/"),a=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(a,"'."))}n[e.value.outlet]=e.value})),a.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),a}},{key:"processSegment",value:function(e,t,n,i){var a,r=_createForOfIteratorHelper(e);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,t,n,i)}catch(s){if(!(s instanceof Qk))throw s}}}catch(l){r.e(l)}finally{r.f()}if(this.noLeftoversInUrl(t,n,i))return[];throw new Qk}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new Qk;if((e.outlet||"primary")!==i)throw new Qk;var a,r=[],o=[];if("**"===e.path){var s=n.length>0?Ty(n).parameters:{};a=new sk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tb(e),i,e.component,e,$k(t),Jk(t)+n.length,nb(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Qk;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||yy)(n,e,t);if(!i)throw new Qk;var a={};Ay(i.posParams,(function(e,t){a[t]=e.path}));var r=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(t,e,n);r=l.consumedSegments,o=n.slice(l.lastChild),a=new sk(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tb(e),i,e.component,e,$k(t),Jk(t)+r.length,nb(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=Xk(t,r,o,c,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(c,d);return[new tk(a,f)]}if(0===c.length&&0===h.length)return[new tk(a,[])];var p=this.processSegment(c,d,h,"primary");return[new tk(a,p)]}}]),e}();function $k(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Jk(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Xk(e,t,n,i,a){if(n.length>0&&function(e,t,n){return n.some((function(n){return Zk(e,t,n)&&"primary"!==eb(n)}))}(e,n,i)){var r=new Oy(t,function(e,t,n,i){var a={};a.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var r,o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==eb(s)){var l=new Oy([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,a[eb(s)]=l}}}catch(c){o.e(c)}finally{o.f()}return a}(e,t,i,new Oy(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Zk(e,t,n)}))}(e,n,i)){var o=new Oy(e.segments,function(e,t,n,i,a,r){var o,s={},l=_createForOfIteratorHelper(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(Zk(e,n,c)&&!a[eb(c)]){var u=new Oy([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===r?e.segments.length:t.length,s[eb(c)]=u}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},a),s)}(e,t,n,i,e.children,a));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new Oy(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Zk(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function eb(e){return e.outlet||"primary"}function tb(e){return e.data||{}}function nb(e){return e.resolve||{}}function ib(e,t,n,i){var a=Hk(e,t,i);return Ly(a.resolve?a.resolve(t,n):a(t,n))}function ab(e){return function(t){return t.pipe(Pv((function(t){var n=e(t);return n?j(n).pipe(V((function(){return t}))):j([t])})))}}var rb=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),ob=new je("ROUTES"),sb=function(){function e(t,n,i,a){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=a}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(V((function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var a=i.create(e);return new ky(xy(a.injector.get(ob)).map(Dy),a)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?j(this.loader.load(e)):Ly(e()).pipe(z((function(e){return e instanceof at?mu(e):j(t.compiler.compileModuleAsync(e))})))}}]),e}(),lb=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function cb(e){throw e}function ub(e,t,n){return t.parse("/")}function db(e,t){return mu(null)}var hb,fb,pb,mb=((pb=function(){function e(t,n,i,a,r,o,s,l){var c=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new T,this.errorHandler=cb,this.malformedUriErrorHandler=ub,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:db,afterPreactivation:db},this.urlHandlingStrategy=new lb,this.routeReuseStrategy=new rb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(it),this.console=r.get(Dc);var u=r.get(qc);this.isNgZoneEnabled=u instanceof qc,this.resetConfig(l),this.currentUrlTree=new Ey(new Oy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sb(o,s,(function(e){return c.triggerEvent(new ly(e))}),(function(e){return c.triggerEvent(new cy(e))})),this.routerState=ak(this.currentUrlTree,this.rootComponentType),this.transitions=new av({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(gu((function(e){return 0!==e.id})),V((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Pv((function(e){var i,a,r,o=!1,s=!1;return mu(e).pipe(Uv((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Pv((function(e){var i,a,r,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return mu(e).pipe(Pv((function(e){var i=t.transitions.getValue();return n.next(new Zv(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?uv:[e]})),Pv((function(e){return Promise.resolve(e)})),(i=t.ngModule.injector,a=t.configLoader,r=t.urlSerializer,o=t.config,function(e){return e.pipe(Pv((function(e){return function(e,t,n,i,a){return new Ok(e,t,n,i,a).apply()}(i,a,r,e.extractedUrl,o).pipe(V((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Uv((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,i,a,r){return function(i){return i.pipe(z((function(i){return function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Kk(e,t,n,i,a,r).recognize()}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),a,r).pipe(V((function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})})));var o})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Uv((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Uv((function(e){var i=new iy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,c=e.extractedUrl,u=e.source,d=e.restoredState,h=e.extras,f=new Zv(l,t.serializeUrl(c),u,d);n.next(f);var p=ak(c,t.rootComponentType).snapshot;return mu(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),uv})),ab((function(e){var n=e.targetSnapshot,i=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),Uv((function(e){var n=new ay(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),V((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,a=t.rootContexts,r=n._root,function e(t,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=nk(n);return t.children.forEach((function(t){!function(t,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,s=n?n.value:null,l=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Py(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Py(e.url,t.url)||!Sy(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hk(e,t)||!Sy(e.queryParams,t.queryParams);case"paramsChange":default:return!hk(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new qk(a)):(o.data=s.data,o._resolvedData=s._resolvedData),e(t,n,o.component?l?l.children:null:i,a,r),c&&r.canDeactivateChecks.push(new Vk(l&&l.outlet&&l.outlet.component||null,s))}else s&&Nk(n,l,i,r),r.canActivateChecks.push(new qk(a)),e(t,null,o.component?l?l.children:null:i,a,r)}(t,o[t.value.outlet],i,a.concat([t.value]),r),delete o[t.value.outlet]})),Ay(o,(function(e,t){return Nk(e,i.getContext(t),i,r)})),r}(r,i?i._root:null,a,[r.value]))});var n,i,a,r})),function(e,t){return function(n){return n.pipe(z((function(n){var i=n.targetSnapshot,a=n.currentSnapshot,r=n.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?mu(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return j(e).pipe(z((function(e){return function(e,t,n,i,a){var r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?mu(r.map((function(r){var o,s=Hk(r,t,a);if(function(e){return e&&Mk(e.canDeactivate)}(s))o=Ly(s.canDeactivate(e,t,n,i));else{if(!Mk(s))throw new Error("Invalid CanDeactivate guard");o=Ly(s(e,t,n,i))}return o.pipe(Ev())}))).pipe(jk()):mu(!0)}(e.component,e.route,n,t,i)})),Ev((function(e){return!0!==e}),!0))}(s,i,a,e).pipe(z((function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return j(t).pipe(_u((function(t){return j([Uk(t.route.parent,i),zk(t.route,i),Gk(e,t.path,n),Wk(e,t.route,n)]).pipe(fv(),Ev((function(e){return!0!==e}),!0))})),Ev((function(e){return!0!==e}),!0))}(i,o,e,t):mu(n)})),V((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Uv((function(e){if(xk(e.guardsResult)){var n=vy('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Uv((function(e){var n=new ry(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),gu((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new ty(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0})),ab((function(e){if(e.guards.canActivateChecks.length)return mu(e).pipe(Uv((function(e){var n=new oy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),(n=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(z((function(e){var t=e.targetSnapshot,a=e.guards.canActivateChecks;return a.length?j(a).pipe(_u((function(e){return function(e,t,n,i){return function(e,t,n,i){var a=Object.keys(e);if(0===a.length)return mu({});if(1===a.length){var r=a[0];return ib(e[r],t,n,i).pipe(V((function(e){return _defineProperty({},r,e)})))}var o={};return j(a).pipe(z((function(a){return ib(e[a],t,n,i).pipe(V((function(e){return o[a]=e,e})))}))).pipe(Sv(),V((function(){return o})))}(e._resolve,e,t,i).pipe(V((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ok(e,n).resolve),null})))}(e.route,t,n,i)})),jv((function(e,t){return e})),V((function(t){return e}))):mu(e)})))}),Uv((function(e){var n=new sy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})));var n,i})),ab((function(e){var n=e.targetSnapshot,i=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),V((function(e){var n=function(e,t,n){var i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){var a=i.value;a._futureSnapshot=n.value;var r=function(t,n,i){return n.children.map((function(n){var a,r=_createForOfIteratorHelper(i.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(t.shouldReuseRoute(o.value.snapshot,n.value))return e(t,n,o)}}catch(s){r.e(s)}finally{r.f()}return e(t,n)}))}(t,n,i);return new tk(a,r)}var o=t.retrieve(n.value);if(o){var s=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,s),s}var l,c=new rk(new av((l=n.value).url),new av(l.params),new av(l.queryParams),new av(l.fragment),new av(l.data),l.outlet,l.component,l),u=n.children.map((function(n){return e(t,n)}));return new tk(c,u)}(e,t._root,n?n._root:void 0);return new ik(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})})),Uv((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(i=t.rootContexts,a=t.routeReuseStrategy,r=function(e){return t.triggerEvent(e)},V((function(e){return new Dk(a,e.targetRouterState,e.currentRouterState,r).activate(i),e}))),Uv({next:function(){o=!0},complete:function(){o=!0}}),Qv((function(){if(!o&&!s){t.resetUrlToCurrentUrlTree();var i=new ty(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null})),Mv((function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var a=xk(i.url);a||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var r=new ty(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(r),a?setTimeout((function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})}),0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new ny(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var l;return uv})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var n=e.parseUrl(t.url),i="popstate"===t.type?"popstate":"hashchange",a=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(n,i,a,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){by(e),this.config=e.map(Dy),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,a=t.fragment,r=t.preserveQueryParams,o=t.queryParamsHandling,s=t.preserveFragment;Si()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,c=s?this.currentUrlTree.fragment:a,u=null;if(o)switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}else u=r?this.currentUrlTree.queryParams:i||null;return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,a){if(0===n.length)return pk(t.root,t.root,t,i,a);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new mk(!0,0,e);var t=0,n=!1,i=e.reduce((function(e,i,a){if("object"==typeof i&&null!=i){if(i.outlets){var r={};return Ay(i.outlets,(function(e,t){r[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:r}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===a?(i.split("/").forEach((function(i,a){0==a&&"."===i||(0==a&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))})),e):[].concat(_toConsumableArray(e),[i])}),[]);return new mk(n,t,i)}(n);if(r.toRoot())return pk(t.root,new Oy([],{}),t,i,a);var o=function(e,t,n){if(e.isAbsolute)return new _k(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new _k(n.snapshot._urlSegment,!0,0);var i=fk(e.commands[0])?0:1;return function(e,t,n){for(var i=e,a=t,r=n;r>a;){if(r-=a,!(i=i.parent))throw new Error("Invalid number of '../'");a=i.segments.length}return new _k(i,!1,a-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(r,t,e),s=o.processChildren?yk(o.segmentGroup,o.index,r.commands):vk(o.segmentGroup,o.index,r.commands);return pk(o.segmentGroup,s,t,i,a)}(l,this.currentUrlTree,e,u,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Si()&&this.isNgZoneEnabled&&!qc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=xk(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(xk(e))return Iy(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Iy(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var i=e[n];return null!=i&&(t[n]=i),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new ey(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,i,a){var r,o,s,l=this.getTransition();if(l&&"imperative"!==t&&"imperative"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"hashchange"==t&&"popstate"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"popstate"==t&&"hashchange"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);a?(r=a.resolve,o=a.reject,s=a.promise):s=new Promise((function(e,t){r=e,o=t}));var c=++this.navigationId;return this.setTransition({id:c,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:r,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,i){var a=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(a)||t?this.location.replaceState(a,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(a,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}()).\u0275fac=function(e){To()},pb.\u0275dir=Ct({type:pb}),pb),_b=((fb=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],null==i&&a.setAttribute(r.nativeElement,"tabindex","0")}return _createClass(e,[{key:"onClick",value:function(){var e={skipLocationChange:vb(this.skipLocationChange),replaceUrl:vb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Si()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:vb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:vb(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||fb)(Mo(mb),Mo(rk),xo("tabindex"),Mo(Gs),Mo(js))},fb.\u0275dir=Ct({type:fb,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Ho("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),fb),gb=((hb=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe((function(e){e instanceof ey&&a.updateTargetUrlAndHref()}))}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i){if(0!==e||t||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:vb(this.skipLocationChange),replaceUrl:vb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Si()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:vb(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:vb(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||hb)(Mo(mb),Mo(rk),Mo(Pu))},hb.\u0275dir=Ct({type:hb,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ho("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)})),2&e&&(ks("href",t.href,Xi),wo("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[As]}),hb);function vb(e){return""===e||!!e}var yb,kb,bb,wb,Cb=((yb=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this.router=t,this.element=n,this.renderer=i,this.link=a,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(e){e instanceof ey&&o.update()}))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.links.changes.subscribe((function(t){return e.update()})),this.linksWithHrefs.changes.subscribe((function(t){return e.update()})),this.update()}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach((function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((function(e){return!!e}))}}]),e}()).\u0275fac=function(e){return new(e||yb)(Mo(mb),Mo(js),Mo(Gs),Mo(_b,8),Mo(gb,8))},yb.\u0275dir=Ct({type:yb,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,_b,!0),lc(n,gb,!0)),2&e&&(ac(i=dc())&&(t.links=i),ac(i=dc())&&(t.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[As]}),yb),Db=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Sb,this.attachRef=null},Sb=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Db,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Mb=((kb=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Gl,this.deactivateEvents=new Gl,this.name=a||"primary",t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,a=new xb(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,a),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}()).\u0275fac=function(e){return new(e||kb)(Mo(Sb),Mo(ml),Mo(Bs),xo("name"),Mo(jr))},kb.\u0275dir=Ct({type:kb,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),kb),xb=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rk?this.route:e===Sb?this.childContexts:this.parent.get(e,t)}}]),e}(),Tb=function e(){_classCallCheck(this,e)},Ab=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return mu(null)}}]),e}(),Lb=((wb=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.router=t,this.injector=a,this.preloadingStrategy=r,this.loader=new sb(n,i,(function(e){return t.triggerEvent(new ly(e))}),(function(e){return t.triggerEvent(new cy(e))}))}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(gu((function(e){return e instanceof ey})),_u((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(it);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var o=r._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?i.push(this.preloadConfig(e,r)):r.children&&i.push(this.processRoutes(e,r.children))}}catch(s){a.e(s)}finally{a.f()}return j(i).pipe(G(),V((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(z((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}()).\u0275fac=function(e){return new(e||wb)(Xe(mb),Xe(ou),Xe(Rc),Xe(ro),Xe(Tb))},wb.\u0275prov=fe({token:wb,factory:wb.\u0275fac}),wb),Ib=((bb=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Zv?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ey&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof py&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new py(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){To()},bb.\u0275dir=Ct({type:bb}),bb),Eb=new je("ROUTER_CONFIGURATION"),Ob=new je("ROUTER_FORROOT_GUARD"),Rb=[ju,{provide:Fy,useClass:qy},{provide:mb,useFactory:function(e,t,n,i,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,u=new mb(null,e,t,n,i,a,r,xy(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=bu();u.events.subscribe((function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[Fy,Sb,ju,ro,ou,Rc,ob,Eb,[function(){return function e(){_classCallCheck(this,e)}}(),new se],[function(){return function e(){_classCallCheck(this,e)}}(),new se]]},Sb,{provide:rk,useFactory:function(e){return e.routerState.root},deps:[mb]},{provide:ou,useClass:cu},Lb,Ab,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Mv((function(){return mu(null)})))}}]),e}(),{provide:Eb,useValue:{enableTracing:!1}}];function Pb(){return new Xc("Router",mb)}var Yb,Fb=((Yb=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Rb,Nb(t),{provide:Ob,useFactory:Hb,deps:[[mb,new se,new ce]]},{provide:Eb,useValue:n||{}},{provide:Pu,useFactory:Vb,deps:[Du,[new oe(Hu),new se],Eb]},{provide:Ib,useFactory:qb,deps:[mb,dh,Eb]},{provide:Tb,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ab},{provide:Xc,multi:!0,useFactory:Pb},[jb,{provide:_c,multi:!0,useFactory:zb,deps:[jb]},{provide:Wb,useFactory:Ub,deps:[jb]},{provide:Cc,multi:!0,useExisting:Wb}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Nb(t)]}}}]),e}()).\u0275mod=bt({type:Yb}),Yb.\u0275inj=me({factory:function(e){return new(e||Yb)(Xe(Ob,8),Xe(mb,8))}}),Yb);function qb(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ib(e,t,n)}function Vb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Bu(e,t):new Nu(e,t)}function Hb(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Nb(e){return[{provide:oo,multi:!0,useValue:e},{provide:ob,multi:!0,useValue:e}]}var Bb,jb=((Bb=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new T}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(xu,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),i=e.injector.get(mb),a=e.injector.get(Eb);if(e.isLegacyDisabled(a)||e.isLegacyEnabled(a))t(!0);else if("disabled"===a.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return e.initNavigation?mu(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Eb),n=this.injector.get(Lb),i=this.injector.get(Ib),a=this.injector.get(mb),r=this.injector.get(au);e===r.components[0]&&(this.isLegacyEnabled(t)?a.initialNavigation():this.isLegacyDisabled(t)&&a.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),a.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||Bb)(Xe(ro))},Bb.\u0275prov=fe({token:Bb,factory:Bb.\u0275fac}),Bb);function zb(e){return e.appInitializer.bind(e)}function Ub(e){return e.bootstrapListener.bind(e)}var Wb=new je("Router Initializer");function Gb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var Qb=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).scheduler=e,a.work=i,a.pending=!1,a}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(a){n=!0,i=!!a&&a||new Error(a)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(h)),Kb=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),$b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kb.now;return _classCallCheck(this,n),(i=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():a()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Kb),Jb=new $b(Qb);function Xb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jb;return function(n){return n.lift(new ew(e,t))}}var Zb,ew=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new tw(e,this.dueTime,this.scheduler))}}]),e}(),tw=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).dueTime=i,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(nw,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(m);function nw(e){e.debouncedNext()}function iw(e){return null!=e&&"false"!=="".concat(e)}function aw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return rw(e)?Number(e):t}function rw(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function ow(e){return Array.isArray(e)?e:[e]}function sw(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function lw(e){return e instanceof js?e.nativeElement:e}try{Zb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(rre){Zb=!1}var cw,uw,dw,hw,fw,pw,mw=((dw=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Zb)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||dw)(Xe(wc,8))},dw.\u0275prov=fe({factory:function(){return new dw(Xe(wc,8))},token:dw,providedIn:"root"}),dw),_w=((uw=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:uw}),uw.\u0275inj=me({factory:function(e){return new(e||uw)}}),uw),gw=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vw(){if(cw)return cw;if("object"!=typeof document||!document)return cw=new Set(gw);var e=document.createElement("input");return cw=new Set(gw.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function yw(e){return function(){if(null==hw&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return hw=!0}}))}finally{hw=hw||!1}return hw}()?e:!!e.capture}function kw(){if("object"!=typeof document||!document)return 0;if(null==fw){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),fw=0,0===e.scrollLeft&&(e.scrollLeft=1,fw=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return fw}function bw(e){if(function(){if(null==pw){var e="undefined"!=typeof document?document.head:null;pw=!(!e||!e.createShadowRoot&&!e.attachShadow)}return pw}()){var t=e.getRootNode?e.getRootNode():null;if(t instanceof ShadowRoot)return t}return null}var ww,Cw,Dw,Sw,Mw=((Sw=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||Sw)},Sw.\u0275prov=fe({factory:function(){return new Sw},token:Sw,providedIn:"root"}),Sw),xw=((Dw=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,n){return e._cleanupObserver(n)}))}},{key:"observe",value:function(e){var t=this,n=lw(e);return new w((function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new T,n=this._mutationObserverFactory.create((function(e){return t.next(e)}));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||Dw)(Xe(Mw))},Dw.\u0275prov=fe({factory:function(){return new Dw(Xe(Mw))},token:Dw,providedIn:"root"}),Dw),Tw=((Cw=function(){function e(t,n,i){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Gl,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Xb(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=aw(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Cw)(Mo(xw),Mo(js),Mo(qc))},Cw.\u0275dir=Ct({type:Cw,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Cw),Aw=((ww=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:ww}),ww.\u0275inj=me({factory:function(e){return new(e||ww)},providers:[Mw]}),ww);function Lw(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Iw,Ew,Ow=0,Rw=new Map,Pw=null,Yw=((Iw=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Rw.set(t,{messageElement:t,referenceCount:0})):Rw.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Rw.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Pw&&0===Pw.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");Pw&&this._deleteMessagesContainer(),Rw.clear()}},{key:"_createMessageElement",value:function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),Pw.appendChild(t),Rw.set(e,{messageElement:t,referenceCount:0})}},{key:"_setMessageId",value:function(e){e.id||(e.id="cdk-describedby-message-".concat(Ow++))}},{key:"_deleteMessageElement",value:function(e){var t=Rw.get(e),n=t&&t.messageElement;Pw&&n&&Pw.removeChild(n),Rw.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!Pw){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode.removeChild(e),(Pw=this._document.createElement("div")).id="cdk-describedby-message-container",Pw.setAttribute("aria-hidden","true"),Pw.style.display="none",this._document.body.appendChild(Pw)}}},{key:"_deleteMessagesContainer",value:function(){Pw&&Pw.parentNode&&(Pw.parentNode.removeChild(Pw),Pw=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Lw(e,"aria-describedby").filter((function(e){return 0!=e.indexOf("cdk-describedby-message")}));e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,a,r,o=Rw.get(t);n=e,i="aria-describedby",a=o.messageElement.id,(r=Lw(n,i)).some((function(e){return e.trim()==a.trim()}))||(r.push(a.trim()),n.setAttribute(i,r.join(" "))),e.setAttribute("cdk-describedby-host",""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,a,r,o=Rw.get(t);o.referenceCount--,n=e,i="aria-describedby",a=o.messageElement.id,(r=Lw(n,i).filter((function(e){return e!=a.trim()}))).length?n.setAttribute(i,r.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=Lw(e,"aria-describedby"),i=Rw.get(t),a=i&&i.messageElement.id;return!!a&&-1!=n.indexOf(a)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||Iw)(Xe(Cu))},Iw.\u0275prov=fe({factory:function(){return new Iw(Xe(Cu))},token:Iw,providedIn:"root"}),Iw),Fw=function(){function e(t){var n=this;_classCallCheck(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new T,this.change=new T,t instanceof Kl&&t.changes.subscribe((function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}}))}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Uv((function(t){return e._pressedLetters.push(t)})),Xb(t),gu((function(){return e._pressedLetters.length>0})),V((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var a=(e._activeItemIndex+i)%n.length,r=n[a];if(!e._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(a);break}}e._pressedLetters=[]})),this}},{key:"setActiveItem",value:function(e){var t=this._activeItemIndex;this.updateActiveItem(e),this._activeItemIndex!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Gb(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Kl?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),qw=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Fw),Vw=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Fw),Hw=((Ew=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(rre){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Bw(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var a=e.nodeName.toLowerCase(),r=Bw(e);if(e.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Nw(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).\u0275fac=function(e){return new(e||Ew)(Xe(mw))},Ew.\u0275prov=fe({factory:function(){return new Ew(Xe(mw))},token:Ew,providedIn:"root"}),Ew);function Nw(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Bw(e){if(!Nw(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var jw,zw,Uw=function(){function e(t,n,i,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),Si()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Av(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Ww=((zw=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Uw(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||zw)(Xe(Hw),Xe(qc),Xe(Cu))},zw.\u0275prov=fe({factory:function(){return new zw(Xe(Hw),Xe(qc),Xe(Cu))},token:zw,providedIn:"root"}),zw),Gw=((jw=function(){function e(t,n,i){_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=iw(e)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(e){this._autoCapture=iw(e)}}]),e}()).\u0275fac=function(e){return new(e||jw)(Mo(js),Mo(Ww),Mo(Cu))},jw.\u0275dir=Ct({type:jw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),jw);"undefined"!=typeof Element&&Element;var Qw,Kw,$w=new je("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Jw=new je("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Xw=((Kw=function(){function e(t,n,i,a){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=_slicedToArray(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=r&&r.politeness?r.politeness:"polite"),null==i&&r&&(i=r.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(a._previousTimeout),a._previousTimeout=setTimeout((function(){a._liveElement.textContent=e,t(),"number"==typeof i&&(a._previousTimeout=setTimeout((function(){return a.clear()}),i))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||Kw)(Xe($w,8),Xe(qc),Xe(Cu),Xe(Jw,8))},Kw.\u0275prov=fe({factory:function(){return new Kw(Xe($w,8),Xe(qc),Xe(Cu),Xe(Jw,8))},token:Kw,providedIn:"root"}),Kw),Zw=((Qw=function(){function e(t,n,i,a){_classCallCheck(this,e),this._elementRef=t,this._liveAnnouncer=n,this._contentObserver=i,this._ngZone=a,this._politeness="off"}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}},{key:"politeness",get:function(){return this._politeness},set:function(e){var t=this;this._politeness="polite"===e||"assertive"===e?e:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular((function(){return t._contentObserver.observe(t._elementRef).subscribe((function(){var e=t._elementRef.nativeElement.textContent;e!==t._previousAnnouncedText&&(t._liveAnnouncer.announce(e,t._politeness),t._previousAnnouncedText=e)}))})))}}]),e}()).\u0275fac=function(e){return new(e||Qw)(Mo(js),Mo(Xw),Mo(xw),Mo(qc))},Qw.\u0275dir=Ct({type:Qw,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Qw);function eC(e){return 0===e.buttons}var tC,nC,iC,aC,rC,oC,sC=new je("cdk-focus-monitor-default-options"),lC=yw({passive:!0,capture:!0}),cC=((aC=function(){function e(t,n,i,a){var r=this;_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=function(){r._lastTouchTarget=null,r._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!r._lastTouchTarget){var t=eC(e)?"keyboard":"mouse";r._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=r._touchTimeoutId&&clearTimeout(r._touchTimeoutId),r._lastTouchTarget=e.composedPath?e.composedPath()[0]:e.target,r._touchTimeoutId=setTimeout((function(){return r._lastTouchTarget=null}),650)},this._windowFocusListener=function(){r._windowFocused=!0,r._windowFocusTimeoutId=setTimeout((function(){return r._windowFocused=!1}))},this._documentFocusAndBlurListener=function(e){for(var t="focus"===e.type?r._onFocus:r._onBlur,n=e.target;n;n=n.parentElement)t.call(r,e,n)},this._document=i,this._detectionMode=(null==a?void 0:a.detectionMode)||0}return _createClass(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return mu(null);var n=lw(e);if(this._elementInfo.has(n)){var i=this._elementInfo.get(n);return i.checkChildren=t,i.subject.asObservable()}var a={checkChildren:t,subject:new T};return this._elementInfo.set(n,a),this._incrementMonitoredElementCount(),a.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=lw(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(e,t,n){var i=lw(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===e.target)){var i=this._getFocusOrigin(e);this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_incrementMonitoredElementCount",value:function(){var e=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("focus",e._documentFocusAndBlurListener,lC),t.addEventListener("blur",e._documentFocusAndBlurListener,lC),t.addEventListener("keydown",e._documentKeydownListener,lC),t.addEventListener("mousedown",e._documentMousedownListener,lC),t.addEventListener("touchstart",e._documentTouchstartListener,lC),n.addEventListener("focus",e._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var e=this._getDocument(),t=this._getWindow();e.removeEventListener("focus",this._documentFocusAndBlurListener,lC),e.removeEventListener("blur",this._documentFocusAndBlurListener,lC),e.removeEventListener("keydown",this._documentKeydownListener,lC),e.removeEventListener("mousedown",this._documentMousedownListener,lC),e.removeEventListener("touchstart",this._documentTouchstartListener,lC),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||aC)(Xe(qc),Xe(mw),Xe(Cu,8),Xe(sC,8))},aC.\u0275prov=fe({factory:function(){return new aC(Xe(qc),Xe(mw),Xe(Cu,8),Xe(sC,8))},token:aC,providedIn:"root"}),aC),uC=((iC=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Gl,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return i.cdkFocusChange.emit(e)}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||iC)(Mo(js),Mo(cC))},iC.\u0275dir=Ct({type:iC,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),iC),dC=((nC=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||nC)(Xe(mw),Xe(Cu))},nC.\u0275prov=fe({factory:function(){return new nC(Xe(mw),Xe(Cu))},token:nC,providedIn:"root"}),nC),hC=((tC=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=bt({type:tC}),tC.\u0275inj=me({factory:function(e){return new(e||tC)(Xe(dC))},imports:[[_w,Aw]]}),tC),fC=new je("cdk-dir-doc",{providedIn:"root",factory:function(){return Ze(Cu)}}),pC=((oC=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new Gl,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||oC)(Xe(fC,8))},oC.\u0275prov=fe({factory:function(){return new oC(Xe(fC,8))},token:oC,providedIn:"root"}),oC),mC=((rC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:rC}),rC.\u0275inj=me({factory:function(e){return new(e||rC)}}),rC),_C=new $s("9.2.1"),gC=["*",[["mat-option"],["ng-container"]]],vC=["*","mat-option, ng-container"];function yC(e,t){if(1&e&&Oo(0,"mat-pseudo-checkbox",3),2&e){var n=Uo();Ao("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var kC,bC=["*"],wC=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),CC=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),DC=new $s("9.2.1"),SC=new je("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),MC=((kC=function(){function e(t,n,i){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Si()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&DC.full!==_C.full&&console.warn("The Angular Material version ("+DC.full+") does not match the Angular CDK version ("+_C.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=bt({type:kC}),kC.\u0275inj=me({factory:function(e){return new(e||kC)(Xe(dC),Xe(SC,8),Xe(Cu,8))},imports:[[mC],mC]}),kC);function xC(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._disabled=!1,e}return _createClass(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e)}}]),n}(e)}function TC(e,t){return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).color=t,e}return _createClass(i,[{key:"color",get:function(){return this._color},set:function(e){var n=e||t;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),n&&this._elementRef.nativeElement.classList.add("mat-".concat(n)),this._color=n)}}]),i}(e)}function AC(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._disableRipple=!1,e}return _createClass(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=iw(e)}}]),n}(e)}function LC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r)))._tabIndex=t,e}return _createClass(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:t}}]),i}(e)}function IC(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))).errorState=!1,e.stateChanges=new T,e}return _createClass(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}function EC(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new w((function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)})),e}return _createClass(n,[{key:"_markInitialized",value:function(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}var OC,RC=new je("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Ze(Sc)}}),PC=function(){function e(){_classCallCheck(this,e),this._localeChanges=new T}return _createClass(e,[{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next()}},{key:"compareDate",value:function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}},{key:"sameDate",value:function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}},{key:"clampDate",value:function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}},{key:"localeChanges",get:function(){return this._localeChanges}}]),e}(),YC=new je("mat-date-formats");try{OC="undefined"!=typeof Intl}catch(rre){OC=!1}var FC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},qC=NC(31,(function(e){return String(e+1)})),VC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},HC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function NC(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var BC,jC,zC,UC,WC,GC,QC,KC,$C,JC,XC,ZC=((jC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a,r;return _classCallCheck(this,n),(r=t.call(this)).useUtcForDisplay=!0,_get((a=_assertThisInitialized(r),_getPrototypeOf(n.prototype)),"setLocale",a).call(a,e),r.useUtcForDisplay=!i.TRIDENT,r._clampDate=i.TRIDENT||i.EDGE,r}return _createClass(n,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getDayOfWeek",value:function(e){return e.getDay()}},{key:"getMonthNames",value:function(e){var t=this;if(OC){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return NC(12,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))}))}return FC[e]}},{key:"getDateNames",value:function(){var e=this;if(OC){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return NC(31,(function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))}))}return qC}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(OC){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return NC(7,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))}))}return VC[e]}},{key:"getYearName",value:function(e){if(OC){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}},{key:"clone",value:function(e){return new Date(e.getTime())}},{key:"createDate",value:function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));var i=this._createDateWithOverflow(e,t,n);if(i.getMonth()!=t)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(t,'".'));return i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(OC){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(HC.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date(e,t,n);return e>=0&&e<100&&i.setFullYear(this.getYear(i)-1900),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(n)}}]),n}(PC)).\u0275fac=function(e){return new(e||jC)(Xe(RC,8),Xe(mw))},jC.\u0275prov=fe({token:jC,factory:jC.\u0275fac}),jC),eD=((BC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:BC}),BC.\u0275inj=me({factory:function(e){return new(e||BC)},providers:[{provide:PC,useClass:ZC}],imports:[[_w]]}),BC),tD={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nD=((WC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:WC}),WC.\u0275inj=me({factory:function(e){return new(e||WC)},providers:[{provide:YC,useValue:tD}],imports:[[eD]]}),WC),iD=((UC=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||UC)},UC.\u0275prov=fe({factory:function(){return new UC},token:UC,providedIn:"root"}),UC),aD=((zC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:zC}),zC.\u0275inj=me({factory:function(e){return new(e||zC)},imports:[[MC],MC]}),zC),rD=function(){function e(t,n,i){_classCallCheck(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),oD={enterDuration:450,exitDuration:400},sD=yw({passive:!0}),lD=["mousedown","touchstart"],cD=["mouseup","mouseleave","touchend","touchcancel"],uD=function(){function e(t,n,i,a){_classCallCheck(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=lw(i))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},oD),i.animation);i.centered&&(e=a.left+a.width/2,t=a.top+a.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),a=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+a*a)}(e,t,a),s=e-a.left,l=t-a.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(l-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new rD(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()}),c),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},oD),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=lw(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(lD))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(cD),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=eC(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()})))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){e.forEach((function(e){t._triggerElement.addEventListener(e,t,sD)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(lD.forEach((function(t){e._triggerElement.removeEventListener(t,e,sD)})),this._pointerUpEventsRegistered&&cD.forEach((function(t){e._triggerElement.removeEventListener(t,e,sD)})))}}]),e}(),dD=new je("mat-ripple-global-options"),hD=(($C=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new uD(this,n,t,i)}return _createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||$C)(Mo(js),Mo(qc),Mo(mw),Mo(dD,8),Mo(h_,8))},$C.\u0275dir=Ct({type:$C,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&rs("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),$C),fD=((KC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:KC}),KC.\u0275inj=me({factory:function(e){return new(e||KC)},imports:[[MC,_w],MC]}),KC),pD=((QC=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||QC)(Mo(h_,8))},QC.\u0275cmp=gt({type:QC,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&rs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),QC),mD=((GC=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:GC}),GC.\u0275inj=me({factory:function(e){return new(e||GC)}}),GC),_D=xC((function e(){_classCallCheck(this,e)})),gD=0,vD=((JC=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(gD++),e}return n}(_D)).\u0275fac=function(e){return yD(e||JC)},JC.\u0275cmp=gt({type:JC,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(wo("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),rs("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[Cs],ngContentSelectors:vC,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(Go(gC),Io(0,"label",0),_s(1),Qo(2),Eo(),Qo(3,1)),2&e&&(Ao("id",t._labelId),ma(1),vs("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),JC),yD=ci(vD),kD=0,bD=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},wD=new je("MAT_OPTION_PARENT_COMPONENT"),CD=((XC=function(){function e(t,n,i,a){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(kD++),this.onSelectionChange=new Gl,this._stateChanges=new T}return _createClass(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Gb(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new bD(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=iw(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||XC)(Mo(js),Mo(jr),Mo(wD,8),Mo(vD,8))},XC.\u0275cmp=gt({type:XC,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Ho("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(ks("id",t.id),wo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),rs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bC,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(Go(),Do(0,yC,1,2,"mat-pseudo-checkbox",0),Io(1,"span",1),Qo(2),Eo(),Oo(3,"div",2)),2&e&&(Ao("ngIf",t.multiple),ma(3),Ao("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Ed,hD,pD],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),XC);function DD(e,t,n){if(n.length){for(var i=t.toArray(),a=n.toArray(),r=0,o=0;o<e+1;o++)i[o].group&&i[o].group===a[r]&&r++;return r}return 0}var SD,MD=((SD=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:SD}),SD.\u0275inj=me({factory:function(e){return new(e||SD)},imports:[[fD,uh,mD]]}),SD),xD=new je("mat-label-global-options");function TD(e,t){return new w(t?function(n){return t.schedule(AD,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function AD(e){var t=e.error;e.subscriber.error(t)}function LD(e,t,n){return 0===n?[t]:(e.push(t),e)}function ID(){return jv(LD,[])}var ED,OD,RD,PD,YD,FD,qD,VD,HD=function e(){_classCallCheck(this,e),this.offset=null,this.row=null,this.keyword=null},ND=function e(){_classCallCheck(this,e),this.dataId=0,this.userId="0",this.cardRecords=[]},BD=function e(){_classCallCheck(this,e),this.dataId=0,this.visitor=new ND},jD=function e(){_classCallCheck(this,e),this.surname="",this.givenName="",this.chineseName=null,this.personalEmail="",this.phone=null,this.hkid=null,this.passport=null,this.mainlandId=null,this.businessCase="",this.accessDepartment="",this.accessLocation="",this.accessStartDate=new Date,this.accessEndDate=new Date,this.cardType="card",this.requester="",this.requesterEmail="",this.sponsor="",this.sponsorEmail="",this.sponsorDepartment="",this.chargingAccountCode=null,this.supportingDocument=0,this.consentDocument=0,this.reason=""},zD=function e(){_classCallCheck(this,e),this.libraryId="",this.serialNumber=""},UD=function e(){_classCallCheck(this,e),this.accessStartDate=null,this.accessEndDate=null,this.reason=null,this.cardRecordId=null},WD=function e(){_classCallCheck(this,e),this.invitationId=0,this.requestId=0,this.email=null,this.expiredAt=null,this.token=null,this.status=null,this.createdAt=null,this.input=null},GD=function e(){_classCallCheck(this,e),this.request=null,this.visitors=null},QD=function e(){_classCallCheck(this,e),this.requestId=null,this.visitors=null,this.accessLocation=null,this.accessDate=null,this.exitDate=null,this.purposeOfVisit=null,this.sponsorDepartment=null,this.sponsorNetID=null,this.sponsorEmail=null,this.sponsorName=null,this.sponsorPhone=null,this.createdAt=null,this.createdBy=null,this.updatedAt=null,this.updatedBy=null,this.version=null,this.status=null,this.approver=null,this.remark=null,this.visitorCount=null},KD=function e(){_classCallCheck(this,e),this.visitorId=null,this.requestId=null,this.lastName=null,this.firstName=null,this.mobile=null,this.email=null,this.accesscode=null,this.organization=null,this.cardNo=null,this.visitingStatus=null,this.checkin=null,this.checkout=null,this.checkinNotification=null,this.checkoutNotification=null,this.reminderSent=null,this.updatedAt=null,this.updatedBy=null,this.createdAt=null,this.createdBy=null,this.version=null,this.cardReturned=null},$D=function e(){_classCallCheck(this,e),this.requestId=null,this.fromPublicMedia=null,this.withMediaActivity=null,this.withApproval=null},JD=function e(){_classCallCheck(this,e),this.offset=null,this.row=null,this.keyword=null,this.netId=null,this.active=null,this.role=null,this.deptAbbrs=null},XD=function e(){_classCallCheck(this,e)},ZD=function e(){_classCallCheck(this,e),this.keyword=null,this.createdBy=null,this.offset=null,this.row=null,this.type=null,this.cs=null,this.date=null,this.status=null,this.ownerType=null,this.sponsorDepartment=null,this.supervisedDepartments=null,this.from=null,this.to=null,this.includeVisitorCount=null},eS=function e(){_classCallCheck(this,e),this.endTimeStart=null,this.endTimeEnd=null,this.status=null,this.mode=null,this.keyword=null,this.libraryId=null,this.offset=0,this.row=10},tS=function e(){_classCallCheck(this,e),this.cardStatus=null,this.keyword=null,this.offset=0,this.row=10},nS=function e(){_classCallCheck(this,e),this.dataId=null,this.requestId=null,this.cardId=null,this.eventType=null,this.keyword=null,this.netId=null,this.offset=0,this.row=10},iS=function e(){_classCallCheck(this,e),this.dataId=null,this.keyword=null,this.mode=null,this.offset=0,this.row=10},aS=function e(){_classCallCheck(this,e),this.keyword=null,this.from=null,this.to=null,this.type=null,this.minVisitorCount=null,this.offset=null,this.row=null},rS=function e(){_classCallCheck(this,e),this.accessCode=null,this.skipEmptyAccessCode=null,this.fromDate=null,this.toDate=null,this.row=null,this.offset=null},oS=function e(){_classCallCheck(this,e),this.offset=null,this.row=null,this.keyword=null,this.netId=null},sS=function e(){_classCallCheck(this,e)},lS=function e(){_classCallCheck(this,e),this.assignee=null,this.handler=null,this.timestamp=null,this.action=null},cS=function e(){_classCallCheck(this,e),this.requester=new lS,this.sponsor=new lS,this.approval1=new lS,this.approval2=new lS,this.approval3=new lS,this.approval4=new lS,this.fmohd=new lS,this.fmohd.assignee="vrs_fmohd",this.fmocss=new lS,this.fmocss.assignee="vrs_fmocss",this.fmotdp=new lS,this.fmotdp.assignee="vrs_fmotdp"},uS=function e(){_classCallCheck(this,e),this.requestId=0,this.stage="requester",this.requestInput=new jD,this.requestInputFmotdp=new zD,this.workflowConfig=new cS,this.comments=[],this.rejectReason=null,this.dataId=null,this.requestType=null},dS={UserType:[{description:"VRS FMO Admin",value:"fmoadmin",owners:["ROLE_VRS_MG_FMO_ROLE_MGR","ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-MA Department Admin",value:"deptadmin",owners:["ROLE_VRS_MG_DEPT_ADMIN_ROLE_MGR","ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-MA User",value:"ROLE_MA_USER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-VA User",value:"ROLE_VA_USER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-VA Premium User",value:"ROLE_VA_PREMIUM_USER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-VA Admin",value:"ROLE_VA_ADMIN",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-GA User (Student)",value:"ROLE_GA_USER_STUDENT",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-GA User (Staff)",value:"ROLE_GA_USER_STAFF",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-GA CS",value:"ROLE_GA_CS",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-GA Student Approver",value:"ROLE_GA_STUDENT_APPROVER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-GA Staff Approver",value:"ROLE_GA_STAFF_APPROVER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS Role Admin (VRS FMO Admin)",value:"ROLE_VRS_MG_FMO_ROLE_MGR",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS Role Admin (VRS-MA Dept Admin)",value:"ROLE_VRS_MG_DEPT_ADMIN_ROLE_MGR",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS Role Admin",value:"ROLE_VRS_SYSTEM_ROLE_ADMIN",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS Department List Admin",value:"ROLE_VRS_DEPARTMENT_LIST_ADMIN",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-MA Support",value:"ROLE_VRS_MA_SUPPORT",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]},{description:"VRS-MA Bulk Approver",value:"ROLE_MA_BULK_APPROVER",owners:["ROLE_VRS_SYSTEM_ROLE_ADMIN"]}]},hS=function e(){_classCallCheck(this,e),this.offset=null,this.row=null,this.userTypes=[]},fS=n("dgW9"),pS=((ED=function(){function e(t){_classCallCheck(this,e),this._http=t,this._ajaxHost="/vrs-ajax"}return _createClass(e,[{key:"listDepartments",value:function(){var e=this._http.get(this._ajaxHost+"/Department",{withCredentials:!0});return this.screenError(e)}},{key:"getCurrentUser",value:function(){var e=this._http.get(this._ajaxHost+"/Directory/CurrentUser",{withCredentials:!0});return this.screenError(e)}},{key:"searchUsers",value:function(e){var t=this._http.post(this._ajaxHost+"/Directory/Search",{searchString:e},{withCredentials:!0});return this.screenError(t)}},{key:"searchApprovers",value:function(e){var t=this._http.post(this._ajaxHost+"/Directory/Approver/Search",{searchString:e},{withCredentials:!0});return this.screenError(t)}},{key:"getUser",value:function(e){var t=this._http.post(this._ajaxHost+"/Directory/Get",{searchString:e},{withCredentials:!0});return this.screenError(t)}},{key:"addNewRequest",value:function(){var e=this._http.post(this._ajaxHost+"/request/new",{withCredentials:!0});return this.screenError(e)}},{key:"addMultipleAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/request/bulkcreate",e,{withCredentials:!0});return this.screenError(t)}},{key:"addRenewRequest",value:function(e){var t=this._http.post(this._ajaxHost+"/request/renew",e,{withCredentials:!0});return this.screenError(t)}},{key:"getRequest",value:function(e){var t=this._http.get(this._ajaxHost+"/request/"+e,{withCredentials:!0});return this.screenError(t)}},{key:"listRequest",value:function(e,t,n,i){var a=this._http.post(this._ajaxHost+"/request/list",{role:e,requestType:t,stages:n,keyword:i},{withCredentials:!0});return this.screenError(a)}},{key:"searchRequest",value:function(e){var t=this._http.post(this._ajaxHost+"/requestSearch",e,{withCredentials:!0});return this.screenError(t)}},{key:"listRequestHistory",value:function(e){var t=this._http.get(this._ajaxHost+"/visitor/"+e+"/request",{withCredentials:!0});return this.screenError(t)}},{key:"deleteRequest",value:function(e){var t=this._http.post(this._ajaxHost+"/request/delete",e,{withCredentials:!0});return this.screenError(t)}},{key:"startRequestAction",value:function(e){var t=this._http.post(this._ajaxHost+"/request/"+e+"/action/start",{withCredentials:!0});return this.screenError(t)}},{key:"executeRequestAction",value:function(e,t,n){return this._http.post(this._ajaxHost+"/request/"+e+"/action/execute?action="+t,{rejectReason:n},{withCredentials:!0})}},{key:"executeRequestsAction",value:function(e,t,n){var i=this._http.post(this._ajaxHost+"/requests/execute",{requestIds:e,action:t,rejectReason:n},{withCredentials:!0});return this.screenError(i)}},{key:"sendInvitationEmail",value:function(e,t){return this._http.post(this._ajaxHost+"/request/"+e+"/invite",t,{withCredentials:!0})}},{key:"getInvitation",value:function(e){return this._http.get(this._ajaxHost+"/invitation?token="+e,{withCredentials:!0})}},{key:"acceptInvitation",value:function(e,t){return this._http.post(this._ajaxHost+"/invitation/"+e+"/accept",t,{withCredentials:!0})}},{key:"listInvitation",value:function(){return this._http.get(this._ajaxHost+"/invitations",{withCredentials:!0})}},{key:"listRequestAction",value:function(e){var t=this._http.get(this._ajaxHost+"/request/"+e+"/action",{withCredentials:!0});return this.screenError(t)}},{key:"kycRequestInputByRequestId",value:function(e){var t=this._http.get(this._ajaxHost+"/request/"+e+"/kyc",{withCredentials:!0});return this.screenError(t)}},{key:"kycRequestInputByPersonalId",value:function(e,t,n){var i=this._http.post(this._ajaxHost+"/kyc/request",{surname:e,givenName:t,personalEmail:n},{withCredentials:!0});return this.screenError(i)}},{key:"saveRequestInputRequester",value:function(e,t){var n=this._http.post(this._ajaxHost+"/request/"+e+"/input/requester",t,{withCredentials:!0});return this.screenError(n)}},{key:"saveRequestInputFmotdp",value:function(e,t){var n=this._http.post(this._ajaxHost+"/request/"+e+"/input/fmotdp",t,{withCredentials:!0});return this.screenError(n)}},{key:"saveAttachment",value:function(e,t,n){var i=new FormData;i.append("attachment",n,n.name);var a=this._http.post(this._ajaxHost+"/request/"+e+"/attachment/"+t,i,{withCredentials:!0});return this.screenError(a)}},{key:"saveMultipleAccessAttachments",value:function(e,t){var n=new FormData;e.forEach((function(e){n.append("attachmentIds",e.toString())})),t.forEach((function(e){n.append("attachmentFiles",e,e.name)}));var i=this._http.post(this._ajaxHost+"/requestAttachments/bulkuploads",n,{withCredentials:!0});return this.screenError(i)}},{key:"getAttachmentInfo",value:function(e){var t=this._http.get(this._ajaxHost+"/requestAttachment/"+e+"/info",{withCredentials:!0});return this.screenError(t)}},{key:"getAttachment",value:function(e){return m_([this._http.get(this._ajaxHost+"/requestAttachment/"+e,{withCredentials:!0,responseType:"arraybuffer"}),this.getAttachmentInfo(e)]).pipe(Pv((function(e){var t=new Blob([e[0]]);return mu(new File([t],e[1].fileName))})))}},{key:"setRequestApprover",value:function(e,t){var n=this._http.post(this._ajaxHost+"/request/"+e+"/approver",t,{withCredentials:!0});return this.screenError(n)}},{key:"addRequestComment",value:function(e,t){return this._http.post(this._ajaxHost+"/request/"+e+"/comment",{applicationId:e,stage:null,comment:t,commenter:null},{withCredentials:!0})}},{key:"listData",value:function(e){var t="";"fmoadmin"===e?t="?role=fmoadmin":"deptadmin"===e&&(t="?role=deptadmin");var n=this._http.post(this._ajaxHost+"/visitor"+t,{},{withCredentials:!0});return this.screenError(n)}},{key:"getData",value:function(e){var t=this._http.get(this._ajaxHost+"/visitor/"+e,{withCredentials:!0});return this.screenError(t)}},{key:"searchVisitor",value:function(e){var t=this._http.post(this._ajaxHost+"/visitorSearch",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchEventHistory",value:function(e){var t=this._http.post(this._ajaxHost+"/events",e,{withCredentials:!0});return this.screenError(t)}},{key:"terminateVisitor",value:function(e){var t=this._http.post(this._ajaxHost+"/visitor/"+e+"/terminate",{withCredentials:!0});return this.screenError(t)}},{key:"listDataCardRecords",value:function(e){var t=this._http.get(this._ajaxHost+"/visitor/"+e+"/cardRecords",{withCredentials:!0});return this.screenError(t)}},{key:"getDataCardRecord",value:function(e){var t=this._http.get(this._ajaxHost+"/cardRecord/"+e,{withCredentials:!0});return this.screenError(t)}},{key:"revokeDataCard",value:function(e){var t=this._http.post(this._ajaxHost+"/visitor/"+e+"/revokeCard",{withCredentials:!0});return this.screenError(t)}},{key:"reissueDataCard",value:function(e,t,n){var i=this._http.post(this._ajaxHost+"/visitor/"+e+"/reissueCard",{libraryId:t,serialNumber:n},{withCredentials:!0});return this.screenError(i)}},{key:"searchCards",value:function(e){var t=this._http.post(this._ajaxHost+"/cards",e,{withCredentials:!0});return this.screenError(t)}},{key:"getDataMobileRecord",value:function(e){var t=this._http.get(this._ajaxHost+"/visitor/"+e+"/mobileRecord",{withCredentials:!0});return this.screenError(t)}},{key:"reissueDataMobile",value:function(e){var t=this._http.post(this._ajaxHost+"/visitor/"+e+"/mobileRecord/reissue",{withCredentials:!0});return this.screenError(t)}},{key:"getGuestAccessRequest",value:function(e,t){var n=this._http.post(this._ajaxHost+"/ShortVisiting/DisplayRequest",{requestId:e,createdBy:t},{withCredentials:!0});return this.screenError(n)}},{key:"searchGuestAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/ShortVisiting/ListRequest",{keyword:e.keyword,createdBy:e.createdBy,offset:e.offset,row:e.row,type:e.type,cs:e.cs,filterByDate:e.date,status:e.status,ownerType:e.ownerType,sponsorDepartment:e.sponsorDepartment,supervisedDepartments:e.supervisedDepartments,from:e.from,to:e.to,includeVisitorCount:e.includeVisitorCount},{withCredentials:!0});return this.screenError(t)}},{key:"downloadGuestAccessRequests",value:function(e){return this._http.post(this._ajaxHost+"/guestAccess/export",{keyword:e.keyword,createdBy:e.createdBy,offset:e.offset,row:e.row,type:e.type,cs:e.cs,filterByDate:e.date,status:e.status,ownerType:e.ownerType},{withCredentials:!0,responseType:"arraybuffer"}).pipe(Pv((function(e){var t=new Blob([e]);return mu(new File([t],"guestaccess_access.csv"))})))}},{key:"setGuestAccessRequestsDisclaimer",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/disclaimer",e,{withCredentials:!0});return this.screenError(t)}},{key:"gennerateDownloadGuestAccessRequestsLink",value:function(e){var t=[];e.keyword&&t.push("keyword="+encodeURIComponent(e.keyword)),e.createdBy&&t.push("createdBy="+encodeURIComponent(e.createdBy)),e.type&&t.push("type="+encodeURIComponent(e.type)),e.date&&t.push("filterByDate="+encodeURIComponent(e.date)),e.status&&t.push("status="+encodeURIComponent(e.status)),e.ownerType&&t.push("ownerType="+encodeURIComponent(e.ownerType)),t.push("offset="+e.offset.toString()),t.push("row="+e.row.toString());var n=t.join("&");return this._ajaxHost+"/guestAccess/export?"+n}},{key:"createGuestAccessRequest",value:function(e){var t=this._http.post(this._ajaxHost+"/ShortVisiting/AddRequest",e,{withCredentials:!0});return this.screenError(t)}},{key:"createGuestAccessRequestV2",value:function(e){var t=this._http.post(this._ajaxHost+"/ShortVisiting/AddRequestv2",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateGuestAccessRequest",value:function(e,t){var n=this._http.post(this._ajaxHost+"/ShortVisiting/UpdateRequest",t,{withCredentials:!0});return this.screenError(n)}},{key:"cancelGuestAccessRequest",value:function(e,t){var n=this._http.post(this._ajaxHost+"/ShortVisiting/CancelRequest",{requestId:e,updatedBy:t},{withCredentials:!0});return this.screenError(n)}},{key:"addGuestAccessVisitor",value:function(e){var t=this._http.post(this._ajaxHost+"/ShortVisiting/AddVisitor",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateGuestAccessVisitor",value:function(e){var t=this._http.post(this._ajaxHost+"/ShortVisiting/UpdateVisitor",e,{withCredentials:!0});return this.screenError(t)}},{key:"removeGuestAccessVisitor",value:function(e,t){var n=this._http.post(this._ajaxHost+"/ShortVisiting/CancelVisitor",{visitorId:e,updatedBy:t},{withCredentials:!0});return this.screenError(n)}},{key:"addGuestAccessBlackoutPeriod",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/blackout/add",e,{withCredentials:!0});return this.screenError(t)}},{key:"deleteGuestBlackoutPeriod",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/blackout/delete",e,{withCredentials:!0});return this.screenError(t)}},{key:"notifyGuestBlackoutPeriod",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/blackout/notify",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchGuestAccessBlackoutPeriod",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/blackout/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"approveGuestAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/pendingrequests/approve",{requestIds:e},{withCredentials:!0});return this.screenError(t)}},{key:"rejectGuestAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/pendingrequests/reject",{requestIds:e},{withCredentials:!0});return this.screenError(t)}},{key:"searchGuestAccessApprovers",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/approver/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"addGuestAccessApprover",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/approver/add",e,{withCredentials:!0});return this.screenError(t)}},{key:"deleteGuestAccessApprover",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/approver/delete",e,{withCredentials:!0});return this.screenError(t)}},{key:"getUserDetails",value:function(){var e=this._http.get(this._ajaxHost+"/ShortVisiting/UserInfo",{withCredentials:!0});return this.screenError(e)}},{key:"getGuestAccessConfig",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/configurations/fetch",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateGuestAccessConfig",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/configurations/update",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateGuestAccessConfigs",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/configurations/updateBatch",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchGuestAccessSponsors",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/sponsor/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchGuestAccessQRCode",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/qrcode/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateGuestAccessQRCodeAntipassback",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/qrcode/updateantipassback",e,{withCredentials:!0});return this.screenError(t)}},{key:"batchupdateGuestAccessQRCodeAntipassback",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/qrcode/batchupdateantipassback",e,{withCredentials:!0});return this.screenError(t)}},{key:"exportGuestAccessSponsors",value:function(e){for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(null!=e[a]&&""!==e[a]){var r=e[a];r instanceof Date&&(r=dd(r,"yyyy-MM-dd","en-HK")),t.push(a+"="+encodeURIComponent(r))}}var o=t.join("&");return this._ajaxHost+"/guestaccess/sponsor/export?"+o}},{key:"searchGuestAccessHodList",value:function(e){var t=this._http.post(this._ajaxHost+"/guestaccess/hod/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"exportGuestAccessHodList",value:function(e){for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];null!=e[a]&&""!==e[a]&&t.push(a+"="+encodeURIComponent(e[a]))}var r=t.join("&");return this._ajaxHost+"/guestaccess/hod/export?"+r}},{key:"getLocations",value:function(){for(var e=[],t=fS,n=0;n<t.length;n++){var i=new XD;i.locationId=t[n].locationId,i.locationCode=t[n].locationCode,i.locationKey=t[n].locationKey,i.locationName=t[n].locationName,e.push(i)}return mu(e)}},{key:"searchVehicleAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/tokens/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"listVehicleAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/tokens/list",e,{withCredentials:!0});return this.screenError(t)}},{key:"addVehicleAccessRequests",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/tokens/create",e,{withCredentials:!0});return this.screenError(t)}},{key:"downloadVehicleAccessRequests",value:function(e){return this._http.post(this._ajaxHost+"/vehicleaccess/tokens/download",e,{withCredentials:!0,responseType:"arraybuffer"}).pipe(Pv((function(e){var t=new Blob([e]);return mu(new File([t],"vehicle_access.csv"))})))}},{key:"listVehicleAccessConstraints",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/constraints/list",e,{withCredentials:!0});return this.screenError(t)}},{key:"addVehicleAccessConstraint",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/constraints/create",e,{withCredentials:!0});return this.screenError(t)}},{key:"updateVehicleAccessConstraint",value:function(e){var t=this._http.put(this._ajaxHost+"/vehicleaccess/constraints/update",e,{withCredentials:!0});return this.screenError(t)}},{key:"deleteVehicleAccessConstraint",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/constraints/"+e.toString()+"/delete",{withCredentials:!0});return this.screenError(t)}},{key:"getVechicleTrafficInfo",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/tokens/analyze",e,{withCredentials:!0});return this.screenError(t)}},{key:"setVehicleAccessRequestsDisclaimer",value:function(e){var t=this._http.post(this._ajaxHost+"/vehicleaccess/disclaimer",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchRoles",value:function(e){var t=this._http.post(this._ajaxHost+"/management/roles/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"addRole",value:function(e){var t=this._http.post(this._ajaxHost+"/management/roles/add",e,{withCredentials:!0});return this.screenError(t)}},{key:"deleteRole",value:function(e){var t=this._http.post(this._ajaxHost+"/management/roles/delete",e,{withCredentials:!0});return this.screenError(t)}},{key:"searchDepartments",value:function(e){var t=this._http.post(this._ajaxHost+"/management/departments/search",e,{withCredentials:!0});return this.screenError(t)}},{key:"addDepartment",value:function(e){var t=this._http.post(this._ajaxHost+"/management/departments/add",e,{withCredentials:!0});return this.screenError(t)}},{key:"deleteDepartment",value:function(e){var t=this._http.post(this._ajaxHost+"/management/departments/delete",e,{withCredentials:!0});return this.screenError(t)}},{key:"ping",value:function(){var e=this._http.post(this._ajaxHost+"/system/ping",{withCredentials:!0});return this.screenError(e)}},{key:"screenError",value:function(e){return e.pipe(V((function(e){if(e.success)return e.data;throw{error:e}})))}}]),e}()).\u0275fac=function(e){return new(e||ED)(Xe(Bh))},ED.\u0275prov=fe({token:ED,factory:ED.\u0275fac,providedIn:"root"}),ED),mS=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"ToUTCDate",value:function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}}]),e}(),_S=((OD=function(){function e(t){_classCallCheck(this,e),this._ajax=t,this._userInfoDb={},this._userInfoSubjectDb={}}return _createClass(e,[{key:"initApplication",value:function(){var e=this;return m_([this._ajax.getCurrentUser().pipe(Uv((function(t){e._currentUser=t}))),this._ajax.listDepartments().pipe(Uv((function(t){e._departments=t})))]).pipe(Pv((function(){return e._currentUser&&e._departments?e._ajax.getUserDetails().pipe(Uv((function(t){e._currentUserDetails=t}))):mu(null)})))}},{key:"listData",value:function(e){return this._ajax.listData(e)}},{key:"searchVisitor",value:function(e){return this._ajax.searchVisitor(e)}},{key:"searchEventHistory",value:function(e){return this._ajax.searchEventHistory(e)}},{key:"listDataCardRecords",value:function(e){return this._ajax.listDataCardRecords(e)}},{key:"searchCards",value:function(e){return this._ajax.searchCards(e)}},{key:"getDataCardRecord",value:function(e){return this._ajax.getDataCardRecord(e)}},{key:"getDataMobileRecord",value:function(e){return this._ajax.getDataMobileRecord(e)}},{key:"revokeDataCard",value:function(e){return this._ajax.revokeDataCard(e)}},{key:"reissueDataCard",value:function(e,t,n){return this._ajax.reissueDataCard(e,t,n)}},{key:"reissueDataMobile",value:function(e){return this._ajax.reissueDataMobile(e)}},{key:"getData",value:function(e){return this._ajax.getData(e)}},{key:"listRequest",value:function(e,t,n,i){return this._ajax.listRequest(e,t,n,i)}},{key:"searchRequest",value:function(e){return this._ajax.searchRequest(e)}},{key:"listRequestHistory",value:function(e){return this._ajax.listRequestHistory(e)}},{key:"deleteRequest",value:function(e){return this._ajax.deleteRequest(e)}},{key:"getRequest",value:function(e){if(0===e){var t=new uS;return t.requestId=0,t.stage="requester",t.workflowConfig.requester.assignee=this.currentUser.netid,t.requestInput.requester=this.currentUser.netid,t.requestInput.requesterEmail=this.currentUser.email,mu(t)}return this._ajax.getRequest(e)}},{key:"kycReqeustByRequestId",value:function(e){return 0===e?mu([]):this._ajax.kycRequestInputByRequestId(e)}},{key:"kycReqeustByPersonalId",value:function(e,t,n){return this._ajax.kycRequestInputByPersonalId(e,t,n)}},{key:"listRequestAction",value:function(e){return 0===e?mu(["Submit"]):this._ajax.listRequestAction(e)}},{key:"saveRequest",value:function(e,t,n,i,a){var r=this;if(0===e){var o=null;return n?this._ajax.addNewRequest().pipe(Uv((function(e){return o=e})),Pv((function(){return r._ajax.saveRequestInputRequester(o.requestId,t)})),Pv((function(){return r._ajax.saveAttachment(o.requestId,o.requestInput.supportingDocument,n)})),Pv((function(){return r._ajax.saveAttachment(o.requestId,o.requestInput.consentDocument,i)})),Pv((function(){return r._ajax.setRequestApprover(o.requestId,a)})),Pv((function(){return r._ajax.startRequestAction(o.requestId)})),Pv((function(){return r._ajax.getRequest(o.requestId)}))):this._ajax.addNewRequest().pipe(Uv((function(e){return o=e})),Pv((function(){return r._ajax.saveRequestInputRequester(o.requestId,t)})),Pv((function(){return r._ajax.saveAttachment(o.requestId,o.requestInput.consentDocument,i)})),Pv((function(){return r._ajax.setRequestApprover(o.requestId,a)})),Pv((function(){return r._ajax.startRequestAction(o.requestId)})),Pv((function(){return r._ajax.getRequest(o.requestId)})))}return this._ajax.getRequest(e)}},{key:"saveRequests",value:function(e){return this._ajax.addMultipleAccessRequests(e)}},{key:"saveEmailRequest",value:function(e,t,n,i,a){var r=this;if(0===e){var o=null;return i?this._ajax.addNewRequest().pipe(Uv((function(e){return o=e})),Pv((function(){return r._ajax.saveRequestInputRequester(o.requestId,n)})),Pv((function(){return r._ajax.saveAttachment(o.requestId,o.requestInput.supportingDocument,i)})),Pv((function(){return r._ajax.setRequestApprover(o.requestId,a)})),Pv((function(){return r._ajax.sendInvitationEmail(o.requestId,t)})),Pv((function(){return r._ajax.getRequest(o.requestId)}))):this._ajax.addNewRequest().pipe(Uv((function(e){return o=e})),Pv((function(){return r._ajax.saveRequestInputRequester(o.requestId,n)})),Pv((function(){return r._ajax.setRequestApprover(o.requestId,a)})),Pv((function(){return r._ajax.sendInvitationEmail(o.requestId,t)})),Pv((function(){return r._ajax.getRequest(o.requestId)})))}return this._ajax.getRequest(e)}},{key:"submitRenewRequest",value:function(e){var t=this,n=null;return this._ajax.addRenewRequest(e).pipe(Pv((function(e){return n=e,t._ajax.startRequestAction(e.requestId)})),Pv((function(){return mu(n)})))}},{key:"getInvitation",value:function(e){return this._ajax.getInvitation(e)}},{key:"acceptInvitation",value:function(e,t){return this._ajax.acceptInvitation(e,t)}},{key:"listInvitation",value:function(){return this._ajax.listInvitation()}},{key:"rejectRequest",value:function(e,t){return e&&0!==e?t&&""!==t?this._ajax.executeRequestAction(e,"reject",t):TD(["Missing reject reason."]):TD(["Missing request id."])}},{key:"rejectRequests",value:function(e,t){return e&&0!==e.length?t&&""!==t?this._ajax.executeRequestsAction(e,"reject",t):TD(["Missing reject reason."]):TD(["Missing request id."])}},{key:"processRequest",value:function(e,t,n,i,a){var r=this;return e&&0!==e?n?"fmotdp"===t?n?this._ajax.setRequestApprover(e,a).pipe(Pv((function(){return r._ajax.saveRequestInputFmotdp(e,i)})),Pv((function(){return r._ajax.executeRequestAction(e,n,null)}))):TD(["Missing input."]):this._ajax.setRequestApprover(e,a).pipe(Pv((function(){return r._ajax.executeRequestAction(e,n,null)}))):TD(["Missing workflow action."]):TD(["Missing request id."])}},{key:"processRequests",value:function(e,t){return e&&0!==e.length?t?this._ajax.executeRequestsAction(e,t,null):TD(["Missing workflow action."]):TD(["Missing request id."])}},{key:"appendWorkflowComment",value:function(e,t){return this._ajax.addRequestComment(e,t)}},{key:"saveAttachment",value:function(e,t,n){return this._ajax.saveAttachment(e,t,n)}},{key:"saveAttachments",value:function(e,t){return this._ajax.saveMultipleAccessAttachments(e,t)}},{key:"getAttachmentInfo",value:function(e){return this._ajax.getAttachmentInfo(e)}},{key:"getAttachment",value:function(e){return this._ajax.getAttachment(e)}},{key:"getUser",value:function(e){var t=this;if(!e)return null;if(this._userInfoDb[e])return mu(this._userInfoDb[e]);if(!this._userInfoSubjectDb[e]){var n=new T;this._userInfoSubjectDb[e]=n,this._ajax.getUser(e).subscribe({next:function(i){t._userInfoDb[e]=i,n.next(i)}})}return this._userInfoSubjectDb[e]}},{key:"searchUsers",value:function(e){return this._ajax.searchUsers(e)}},{key:"searchApprover",value:function(e){return this._ajax.searchApprovers(e)}},{key:"terminateVisitor",value:function(e){return this._ajax.terminateVisitor(e)}},{key:"createGuestAccessRequest",value:function(e){var t=this,n=null,i=e.visitors;return e.visitors=[],e.requestId=0,this._ajax.createGuestAccessRequest(e).pipe(Uv((function(e){return n=e.requestId})),Pv((function(){if(i&&i.length>0){var e,a=[],r=_createForOfIteratorHelper(i);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.visitorId=0,o.requestId=n,o.checkin=0,o.checkout=0,o.accesscode="000000",o.reminderSent=!1,o.version=0,o.cardReturned=!1,a.push(o)}}catch(s){r.e(s)}finally{r.f()}return j(a).pipe(_u((function(e){return t._ajax.addGuestAccessVisitor(e)})),ID())}return mu(null)})),Pv((function(){return e.visitors=i,e.requestId=n,mu(e)})))}},{key:"createGuestAccessRequestV2",value:function(e){var t=new GD;t.request=e,t.visitors=e.visitors,t.request.requestId=0;var n,i=_createForOfIteratorHelper(t.visitors);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.visitorId=0,a.requestId=0,a.checkin=0,a.checkout=0,a.accesscode="000000",a.reminderSent=!1,a.version=0,a.cardReturned=!1}}catch(r){i.e(r)}finally{i.f()}return this._ajax.createGuestAccessRequestV2(t)}},{key:"updateGuestAccessRequest",value:function(e,t,n,i,a,r){var o=this;return(t?this._ajax.updateGuestAccessRequest(e,t):mu(null)).pipe(z((function(){var t=[];if(n){var s,l=_createForOfIteratorHelper(n);try{for(l.s();!(s=l.n()).done;){var c=s.value;c.requestId=e,c.visitorId=0,c.checkin=0,c.checkout=0,c.accesscode="000000",c.version=0,c.reminderSent=!1,c.cardReturned=!1,t.push(o._ajax.addGuestAccessVisitor(c).pipe((function(e){return e})))}}catch(_){l.e(_)}finally{l.f()}}if(i){var u,d=_createForOfIteratorHelper(i);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.requestId=e,t.push(o._ajax.updateGuestAccessVisitor(h).pipe((function(e){return e})))}}catch(_){d.e(_)}finally{d.f()}}if(a){var f,p=_createForOfIteratorHelper(a);try{for(p.s();!(f=p.n()).done;){var m=f.value;t.push(o._ajax.removeGuestAccessVisitor(m.visitorId,r).pipe((function(e){return e})))}}catch(_){p.e(_)}finally{p.f()}}return t.length>0?j(t).pipe(_u((function(e){return e})),ID()):mu(null)})),Pv((function(){return mu(t)})))}},{key:"getGuestAccessRequest",value:function(e,t){return this._ajax.getGuestAccessRequest(e,t).pipe(Uv((function(e){if(e.visitors){var t,n=_createForOfIteratorHelper(e.visitors);try{for(n.s();!(t=n.n()).done;)t.value.requestId=e.requestId}catch(i){n.e(i)}finally{n.f()}}})))}},{key:"searchGuestAccessRequests",value:function(e){return this._ajax.searchGuestAccessRequests(e)}},{key:"downloadGuestAccessRequests",value:function(e){return this._ajax.downloadGuestAccessRequests(e)}},{key:"setGuestAccessRequestsDisclaimer",value:function(e){return this._ajax.setGuestAccessRequestsDisclaimer(e)}},{key:"gennerateDownloadGuestAccessRequestsLink",value:function(e){return this._ajax.gennerateDownloadGuestAccessRequestsLink(e)}},{key:"cancelGuestAccessRequest",value:function(e,t){return this._ajax.cancelGuestAccessRequest(e,t)}},{key:"searchGuestAccessSponsors",value:function(e){var t=new aS;return t.from=e.from?mS.ToUTCDate(e.from):e.from,t.to=e.to?mS.ToUTCDate(e.to):e.to,t.keyword=e.keyword,t.minVisitorCount=e.minVisitorCount,t.offset=e.offset,t.row=e.row,t.type=e.type,this._ajax.searchGuestAccessSponsors(t)}},{key:"exportGuestAccessSponsors",value:function(e){var t=new aS;return t.from=e.from?mS.ToUTCDate(e.from):e.from,t.to=e.to?mS.ToUTCDate(e.to):e.to,t.keyword=e.keyword,t.minVisitorCount=e.minVisitorCount,t.offset=e.offset,t.row=e.row,t.type=e.type,this._ajax.exportGuestAccessSponsors(t)}},{key:"searchGuestAccessHodList",value:function(e){return this._ajax.searchGuestAccessHodList(e)}},{key:"exportGuestAccessHod",value:function(e){return this._ajax.exportGuestAccessHodList(e)}},{key:"searchGuestAccessApprovers",value:function(e){return this._ajax.searchGuestAccessApprovers(e)}},{key:"addGuestAccessApprovers",value:function(e){return this._ajax.addGuestAccessApprover(e)}},{key:"deleteGuestAccessApprovers",value:function(e){return this._ajax.deleteGuestAccessApprover(e)}},{key:"searchGuestAccessQRCode",value:function(e){return this._ajax.searchGuestAccessQRCode(e)}},{key:"updateGuestAccessQRCodeAntipassback",value:function(e){return this._ajax.updateGuestAccessQRCodeAntipassback(e)}},{key:"batchupdateGuestAccessQRCodeAntipassback",value:function(e){return this._ajax.batchupdateGuestAccessQRCodeAntipassback(e)}},{key:"searchVehicleAccessRequests",value:function(e){return this._ajax.searchVehicleAccessRequests(e).pipe(Uv((function(e){e.data.forEach((function(e){e.accessStart=new Date(e.accessStart),e.accessEnd=new Date(e.accessEnd)}))})))}},{key:"listVehicleAccessRequests",value:function(e){return this._ajax.listVehicleAccessRequests(e).pipe(Uv((function(e){e.forEach((function(e){e.accessStart=new Date(e.accessStart),e.accessEnd=new Date(e.accessEnd)}))})))}},{key:"addVehicleAccessRequests",value:function(e){return this._ajax.addVehicleAccessRequests(e).pipe(Uv((function(e){e.tokens.forEach((function(e){e.accessStart=new Date(e.accessStart),e.accessEnd=new Date(e.accessEnd)}))})))}},{key:"downloadVehicleAccessRequests",value:function(e){return this._ajax.downloadVehicleAccessRequests(e)}},{key:"listVehicleAccessConstraints",value:function(e){return this._ajax.listVehicleAccessConstraints(e)}},{key:"addVehicleAccessConstraint",value:function(e){return this._ajax.addVehicleAccessConstraint(e)}},{key:"updateVehicleAccessConstraint",value:function(e){return this._ajax.updateVehicleAccessConstraint(e)}},{key:"deleteVehicleAccessConstraint",value:function(e){return this._ajax.deleteVehicleAccessConstraint(e)}},{key:"getVechicleTrafficInfo",value:function(e){return this._ajax.getVechicleTrafficInfo(e)}},{key:"setVehicleAccessRequestsDisclaimer",value:function(e){return this._ajax.setVehicleAccessRequestsDisclaimer(e)}},{key:"addGuestAccessBlackoutPeriod",value:function(e){return this._ajax.addGuestAccessBlackoutPeriod(e)}},{key:"deleteGuestBlackoutPeriod",value:function(e){return this._ajax.deleteGuestBlackoutPeriod(e)}},{key:"notifyGuestBlackoutPeriod",value:function(e){return this._ajax.notifyGuestBlackoutPeriod(e)}},{key:"searchGuestAccessBlackoutPeriod",value:function(e){return this._ajax.searchGuestAccessBlackoutPeriod(e)}},{key:"approveGuestAccessRequests",value:function(e){return this._ajax.approveGuestAccessRequests(e)}},{key:"rejectGuestAccessRequests",value:function(e){return this._ajax.rejectGuestAccessRequests(e)}},{key:"searchRoles",value:function(e){return this._ajax.searchRoles(e)}},{key:"addRole",value:function(e){return this._ajax.addRole(e)}},{key:"deleteRole",value:function(e){return this._ajax.deleteRole(e)}},{key:"searchDepartments",value:function(e){return this._ajax.searchDepartments(e)}},{key:"addDepartment",value:function(e){return this._ajax.addDepartment(e)}},{key:"deleteDepartment",value:function(e){return this._ajax.deleteDepartment(e)}},{key:"ping",value:function(){return this._ajax.ping()}},{key:"getUserDetails",value:function(){return this._ajax.getUserDetails()}},{key:"getGuestAccessConfig",value:function(e){return this._ajax.getGuestAccessConfig(e)}},{key:"updateGuestAccessConfig",value:function(e){return this._ajax.updateGuestAccessConfig(e)}},{key:"updateGuestAccessConfigs",value:function(e){return this._ajax.updateGuestAccessConfigs(e)}},{key:"getLocations",value:function(){return this._ajax.getLocations()}},{key:"isCurrrentUserInUserGroup",value:function(e){if(this._currentUserDetails&&this._currentUserDetails.memberOf&&e&&e.length>0){var t,n=_createForOfIteratorHelper(this._currentUserDetails.memberOf);try{for(n.s();!(t=n.n()).done;){var i,a=t.value,r="",o=_createForOfIteratorHelper(a.split(","));try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.indexOf("CN=")>=0){r=s.substring(3);break}}}catch(u){o.e(u)}finally{o.f()}var l,c=_createForOfIteratorHelper(e);try{for(c.s();!(l=c.n()).done;)if(r===l.value)return mu(!0)}catch(u){c.e(u)}finally{c.f()}}}catch(u){n.e(u)}finally{n.f()}return mu(!1)}return mu(!0)}},{key:"departments",get:function(){return this._departments}},{key:"currentUser",get:function(){return this._currentUser}},{key:"currentUserDetails",get:function(){return this._currentUserDetails}}]),e}()).\u0275fac=function(e){return new(e||OD)(Xe(pS))},OD.\u0275prov=fe({token:OD,factory:OD.\u0275fac,providedIn:"root"}),OD),gS=["mat-button",""],vS=["*"],yS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],kS=TC(xC(AC((function e(t){_classCallCheck(this,e),this._elementRef=t})))),bS=((YD=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;_classCallCheck(this,n),(r=t.call(this,e))._focusMonitor=i,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(yS);try{for(s.s();!(o=s.n()).done;){var l=o.value;r._hasHostAttributes(l)&&r._getHostElement().classList.add(l)}}catch(c){s.e(c)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some((function(t){return e._getHostElement().hasAttribute(t)}))}}]),n}(kS)).\u0275fac=function(e){return new(e||YD)(Mo(js),Mo(cC),Mo(h_,8))},YD.\u0275cmp=gt({type:YD,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&oc(hD,!0),2&e&&ac(n=dc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(e,t){2&e&&(wo("disabled",t.disabled||null),rs("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Cs],attrs:gS,ngContentSelectors:vS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Go(),Io(0,"span",0),Qo(1),Eo(),Oo(2,"div",1),Oo(3,"div",2)),2&e&&(ma(2),rs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Ao("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[hD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),YD),wS=((PD=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){return _classCallCheck(this,n),t.call(this,i,e,a)}return _createClass(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(bS)).\u0275fac=function(e){return new(e||PD)(Mo(cC),Mo(js),Mo(h_,8))},PD.\u0275cmp=gt({type:PD,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){1&e&&Ho("click",(function(e){return t._haltDisabledEvents(e)})),2&e&&(wo("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),rs("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Cs],attrs:gS,ngContentSelectors:vS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Go(),Io(0,"span",0),Qo(1),Eo(),Oo(2,"div",1),Oo(3,"div",2)),2&e&&(ma(2),rs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Ao("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[hD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),PD),CS=((RD=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:RD}),RD.\u0275inj=me({factory:function(e){return new(e||RD)},imports:[[fD,MC],MC]}),RD),DS=["*",[["mat-toolbar-row"]]],SS=["*","mat-toolbar-row"],MS=TC((function e(t){_classCallCheck(this,e),this._elementRef=t})),xS=((VD=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||VD)},VD.\u0275dir=Ct({type:VD,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),VD),TS=((qD=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._document=a,r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;Si()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))})).filter((function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)})).some((function(e){return!(!e.textContent||!e.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}]),n}(MS)).\u0275fac=function(e){return new(e||qD)(Mo(js),Mo(mw),Mo(Cu))},qD.\u0275cmp=gt({type:qD,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,xS,!0),2&e&&ac(i=dc())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&rs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Cs],ngContentSelectors:SS,decls:2,vars:0,template:function(e,t){1&e&&(Go(DS),Qo(0),Qo(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),qD),AS=((FD=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:FD}),FD.\u0275inj=me({factory:function(e){return new(e||FD)},imports:[[MC],MC]}),FD),LS=["logoutForm"];function IS(e,t){1&e&&(Io(0,"button",2),Io(1,"b"),_s(2,"Multiple Access"),Eo(),Eo()),2&e&&Ao("routerLink","/ma")}function ES(e,t){1&e&&(Io(0,"button",2),Io(1,"b"),_s(2,"Guest Access"),Eo(),Eo()),2&e&&Ao("routerLink","/requester/request")}function OS(e,t){1&e&&(Io(0,"a",13),Io(1,"b"),_s(2,"FAQ"),Eo(),Eo())}function RS(e,t){if(1&e){var n=Fo();Io(0,"div",14),Io(1,"span",15),_s(2),Eo(),Oo(3,"br"),Io(4,"button",16),Ho("click",(function(){return en(n),Uo().logout()})),_s(5,"Logout"),Eo(),Oo(6,"form",17,18),Eo()}if(2&e){var i=Uo();ma(2),gs(i.currentUser.displayName)}}function PS(e,t){if(1&e&&(Io(0,"div",19),Io(1,"form",20),Oo(2,"input",21),Io(3,"button",22),_s(4,"Login"),Eo(),Eo(),Eo()),2&e){var n=Uo();Ao("hidden",!n.logInVisible),ma(2),Ko("value",n.location)}}var YS,FS=((YS=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._location=n,this._changeDetectorRef=i,this.logInVisible=!0,this.showMA=!1,this.showGA=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUser=this._applicationService.currentUser,this.location=this._location.prepareExternalUrl(this._location.path()),this._location.subscribe((function(){e.location=e._location.prepareExternalUrl(e._location.path())})),this.checkAccessRight()}},{key:"setLogInVisible",value:function(e){this.logInVisible=e,this._changeDetectorRef.detectChanges()}},{key:"logout",value:function(){this.formElement.nativeElement.submit()}},{key:"checkAccessRight",value:function(){var e=this,t=this._applicationService,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){if(t.currentUserDetails&&t.currentUserDetails.memberOf&&t.currentUserDetails.memberOf.length>0){var i,a=pu.groups.students,r=pu.groups.staff,o=!1,s=_createForOfIteratorHelper(t.currentUserDetails.memberOf);try{for(s.s();!(i=s.n()).done;){var l,c=i.value,u="",d=_createForOfIteratorHelper(c.split(","));try{for(d.s();!(l=d.n()).done;){var h=l.value;if(h.indexOf("CN=")>=0){u=h.substring(3);break}}}catch(g){d.e(g)}finally{d.f()}var f,p=_createForOfIteratorHelper(a);try{for(p.s();!(f=p.n()).done&&u!==f.value;);}catch(g){p.e(g)}finally{p.f()}var m,_=_createForOfIteratorHelper(r);try{for(_.s();!(m=_.n()).done;)if(u===m.value){o=!0;break}}catch(g){_.e(g)}finally{_.f()}}}catch(g){s.e(g)}finally{s.f()}o?(e.showGA=!0,e.showMA=!0):(e.showGA=!0,e.showMA=!1)}},error:function(e){}})}}]),e}()).\u0275fac=function(e){return new(e||YS)(Mo(_S),Mo(ju),Mo(jr))},YS.\u0275cmp=gt({type:YS,selectors:[["app-banner"]],viewQuery:function(e,t){var n;1&e&&oc(LS,!0),2&e&&ac(n=dc())&&(t.formElement=n.first)},decls:19,vars:7,consts:[[1,"polyu-navigation",3,"hidden"],[1,"polyu-navigation-group"],["mat-button","",3,"routerLink"],["mat-button","",3,"routerLink",4,"ngIf"],["mat-button","","href","http://www.google.com","target","_blank",4,"ngIf"],[1,"polyu-toolbar"],[1,"tool-bar-row","polyu-toolbar-body"],[1,"polyu-toolbar-logo"],["src","assets/img/polyu-logo-name.png","width","300px","height","58px"],["src","assets/img/fmo-logo-name.png","width","500px","height","60px"],[3,"ngIf","ngIfElse"],["guest",""],[1,"polyu-title"],["mat-button","","href","http://www.google.com","target","_blank"],[1,"polyu-toolbar-userinfo"],[1,"polyu-toolbar-userinfo-name"],["mat-button","","type","submit",3,"click"],["ngNoForm","","action","/vrs-ajax/Logout","target","_self","method","POST"],["logoutForm",""],[1,"polyu-toolbar-userinfo",3,"hidden"],["ngNoForm","","action","/vrs-ajax/Login","target","_self","method","POST"],["type","hidden","name","returnUrl",3,"value"],["mat-button","","type","submit"]],template:function(e,t){if(1&e&&(Io(0,"div",0),Io(1,"div",1),Io(2,"button",2),Io(3,"b"),_s(4,"Home"),Eo(),Eo(),Do(5,IS,3,1,"button",3),Do(6,ES,3,1,"button",3),Do(7,OS,3,0,"a",4),Eo(),Eo(),Io(8,"mat-toolbar",5),Io(9,"mat-toolbar-row",6),Io(10,"div",7),Oo(11,"img",8),Oo(12,"img",9),Eo(),Do(13,RS,8,1,"ng-template",10),Do(14,PS,5,2,"ng-template",null,11,mc),Eo(),Eo(),Io(16,"div",12),Io(17,"a"),_s(18,"Visitor Registration System"),Eo(),Eo()),2&e){var n=So(15);Ao("hidden",!0),ma(2),Ao("routerLink","/"),ma(3),Ao("ngIf",t.showMA),ma(1),Ao("ngIf",t.showGA),ma(1),Ao("ngIf",!1),ma(6),Ao("ngIf",t.currentUser)("ngIfElse",n)}},directives:[bS,_b,Ed,TS,xS,wS],styles:["mat-toolbar[_ngcontent-%COMP%]{overflow:hidden}.polyu-navigation[_ngcontent-%COMP%]{background-color:#a02337}.polyu-navigation[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .polyu-navigation[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff}.polyu-navigation[_ngcontent-%COMP%]   .polyu-navigation-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-toolbar[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 3px 0 #c2c2c2}.polyu-toolbar-body[_ngcontent-%COMP%]{margin:5px;min-height:7rem;justify-content:space-between}.polyu-toolbar-logo[_ngcontent-%COMP%]{overflow:hidden}.polyu-toolbar-userinfo[_ngcontent-%COMP%]{flex-direction:column;line-height:normal;text-align:right}.polyu-toolbar-userinfo-name[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}.polyu-toolbar-userinfo-netid[_ngcontent-%COMP%]{font-size:.9rem}.polyu-title[_ngcontent-%COMP%]{font:400 56px/56px HelveticalNeueLight,HelveticaNeue-Light,Helvetica Neue Light,Helvetica NeueArial,Calibri,san-serif,Roboto;letter-spacing:normal;margin:auto;padding:1rem 0;text-align:center;align-items:center}.polyu-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .polyu-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:#000;text-decoration:none}"]}),YS);function qS(e,t,n,a){return i(n)&&(a=n,n=void 0),a?qS(e,t,n).pipe(V((function(e){return l(e)?a.apply(void 0,_toConsumableArray(e)):a(e)}))):new w((function(i){!function e(t,n,i,a,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,i,r),o=function(){return s.removeEventListener(n,i,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,i),o=function(){return l.off(n,i)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var c=t;t.addListener(n,i),o=function(){return c.removeListener(n,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,d=t.length;u<d;u++)e(t[u],n,i,a,r)}a.add(o)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)}))}var VS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).scheduler=e,a.work=i,a}return _createClass(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(Qb),HS=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,a=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<a&&(e=n.shift()));if(this.active=!1,t){for(;++i<a&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}($b))(VS);function NS(e,t){return function(n){return n.lift(new BS(e,t))}}var BS=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new jS(e,this.compare,this.keySelector))}}]),e}(),jS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).keySelector=a,r.hasKey=!1,"function"==typeof i&&(r.compare=i),r}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(a){return this.destination.error(a)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(a){return this.destination.error(a)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(m),zS=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new US(e,this.durationSelector))}}]),e}(),US=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).durationSelector=i,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=F(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,n,i){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(q);function WS(e){return!l(e)&&e-parseFloat(e)+1>=0}function GS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return WS(t)?i=Number(t)<1?1:Number(t):L(t)&&(n=t),L(n)||(n=Jb),new w((function(t){var a=WS(e)?e:+e-n.now();return n.schedule(QS,a,{index:0,period:i,subscriber:t})}))}function QS(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function KS(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jb;return t=function(){return GS(e,n)},function(e){return e.lift(new zS(t))}}function $S(e){return function(t){return t.lift(new JS(e))}}var JS=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new XS(e),i=F(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),XS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(q);function ZS(){return function(e){return e.lift(new tM)}}var eM,tM=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new nM(e))}}]),e}(),nM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).hasPrev=!1,i}return _createClass(n,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}]),n}(m),iM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).scheduler=e,a.work=i,a}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(Qb),aM=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}($b))(iM),rM=((eM=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return mu(this.value);case"E":return TD(this.error);case"C":return dv()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new eM("C"),eM.undefinedValueNotification=new eM("N",void 0),eM),oM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(a=t.call(this,e)).scheduler=i,a.delay=r,a}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new sM(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(rM.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(rM.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(rM.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(m),sM=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},lM=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new cM(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=i.length;if(this.closed)throw new S;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new M(this,e)),a&&e.add(e=new oM(e,a)),n)for(var o=0;o<r&&!e.closed;o++)e.next(i[o]);else for(var s=0;s<r&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||aM).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,a=i.length,r=0;r<a&&!(e-i[r].time<n);)r++;return a>t&&(r=Math.max(r,a-t)),r>0&&i.splice(0,r),i}}]),n}(T),cM=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n};function uM(e){return e&&"function"==typeof e.connect}var dM,hM,fM,pM,mM,_M=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new T,i&&i.length&&(n?i.forEach((function(e){return t._markSelected(e)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._markSelected(t)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._unmarkSelected(t)})),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach((function(t){return e._unmarkSelected(t)}))}},{key:"_verifyValueAssignment",value:function(e){if(e.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),gM=((mM=function(){function e(){_classCallCheck(this,e),this._listeners=[]}return _createClass(e,[{key:"notify",value:function(e,t){var n,i=_createForOfIteratorHelper(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(e,t)}catch(a){i.e(a)}finally{i.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter((function(t){return e!==t}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}()).\u0275fac=function(e){return new(e||mM)},mM.\u0275prov=fe({factory:function(){return new mM},token:mM,providedIn:"root"}),mM),vM=((pM=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new T,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new w((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(KS(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):mu()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(gu((function(e){return!e||n.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach((function(i,a){t._scrollableContainsElement(a,e)&&n.push(a)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return qS(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||pM)(Xe(qc),Xe(mw),Xe(Cu,8))},pM.\u0275prov=fe({factory:function(){return new pM(Xe(qc),Xe(mw),Xe(Cu,8))},token:pM,providedIn:"root"}),pM),yM=((fM=function(){function e(t,n,i,a){var r=this;_classCallCheck(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new T,this._elementScrolled=new w((function(e){return r.ngZone.runOutsideAngular((function(){return qS(r.elementRef.nativeElement,"scroll").pipe($S(r._destroyed)).subscribe(e)}))}))}return _createClass(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=kw()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==kw()?e.left=e.right:1==kw()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==kw()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==kw()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||fM)(Mo(js),Mo(vM),Mo(qc),Mo(pC,8))},fM.\u0275dir=Ct({type:fM,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),fM),kM=((hM=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this._platform=t,this._document=i,n.runOutsideAngular((function(){var e=a._getWindow();a._change=t.isBrowser?K(qS(e,"resize"),qS(e,"orientationchange")):mu(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(KS(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||hM)(Xe(mw),Xe(qc),Xe(Cu,8))},hM.\u0275prov=fe({factory:function(){return new hM(Xe(mw),Xe(qc),Xe(Cu,8))},token:hM,providedIn:"root"}),hM),bM=((dM=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:dM}),dM.\u0275inj=me({factory:function(e){return new(e||dM)},imports:[[mC,_w],mC]}),dM);function wM(){throw Error("Host already has a portal attached")}var CM,DM,SM,MM,xM=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&wM(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),TM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=a,o.componentFactoryResolver=r,o}return n}(xM),AM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this)).templateRef=e,r.viewContainerRef=i,r.context=a,r}return _createClass(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(xM),LM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof js?e.nativeElement:e,i}return n}(xM),IM=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&wM(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof TM?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof AM?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof LM?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),EM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s,l;return _classCallCheck(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=r,l.attachDomPortal=function(e){if(!l._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),_get((s=_assertThisInitialized(l),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,(function(){i.parentNode&&i.parentNode.replaceChild(t,i)}))},l._document=o,l}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.detectChanges(),i.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=n.indexOf(i);-1!==e&&n.remove(e)})),i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(IM),OM=((SM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(AM)).\u0275fac=function(e){return new(e||SM)(Mo(fl),Mo(ml))},SM.\u0275dir=Ct({type:SM,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Cs]}),SM),RM=((DM=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r,o;return _classCallCheck(this,n),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=i,o._isInitialized=!1,o.attached=new Gl,o.attachDomPortal=function(e){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(o)),t.parentNode.insertBefore(i,t),o._getRootNode().appendChild(t),_get((r=_assertThisInitialized(o),_getPrototypeOf(n.prototype)),"setDisposeFn",r).call(r,(function(){i.parentNode&&i.parentNode.replaceChild(t,i)}))},o._document=a,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(IM)).\u0275fac=function(e){return new(e||DM)(Mo(Bs),Mo(ml),Mo(Cu))},DM.\u0275dir=Ct({type:DM,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Cs]}),DM),PM=((CM=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(RM)).\u0275fac=function(e){return YM(e||CM)},CM.\u0275dir=Ct({type:CM,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Vs([{provide:RM,useExisting:CM}]),Cs]}),CM),YM=ci(PM),FM=((MM=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:MM}),MM.\u0275inj=me({factory:function(e){return new(e||MM)}}),MM),qM=function(){function e(t,n){_classCallCheck(this,e),this._parentInjector=t,this._customTokens=n}return _createClass(e,[{key:"get",value:function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}]),e}(),VM=function(){function e(t,n){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=sw(-this._previousScrollPosition.left),e.style.top=sw(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}();function HM(){return Error("Scroll strategy has already been attached.")}var NM=function(){function e(t,n,i,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw HM();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),BM=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function jM(e,t){return t.some((function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function zM(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right}))}var UM,WM=function(){function e(t,n,i,a){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=a,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw HM();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,a=n.height;jM(t,[{width:i,height:a,bottom:a,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),GM=((UM=function e(t,n,i,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new BM},this.close=function(e){return new NM(r._scrollDispatcher,r._ngZone,r._viewportRuler,e)},this.block=function(){return new VM(r._viewportRuler,r._document)},this.reposition=function(e){return new WM(r._scrollDispatcher,r._viewportRuler,r._ngZone,e)},this._document=a}).\u0275fac=function(e){return new(e||UM)(Xe(vM),Xe(kM),Xe(qc),Xe(Cu))},UM.\u0275prov=fe({factory:function(){return new UM(Xe(vM),Xe(kM),Xe(qc),Xe(Cu))},token:UM,providedIn:"root"}),UM),QM=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new BM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];void 0!==t[a]&&(this[a]=t[a])}},KM=function e(t,n,i,a,r){_classCallCheck(this,e),this.offsetX=i,this.offsetY=a,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},$M=function e(t,n){_classCallCheck(this,e),this.connectionPair=t,this.scrollableViewProperties=n};function JM(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". ')+'Expected "top", "bottom" or "center".')}function XM(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". ')+'Expected "start", "end" or "center".')}var ZM,ex,tx=((ZM=function(){function e(t){var n=this;_classCallCheck(this,e),this._attachedOverlays=[],this._keydownListener=function(e){for(var t=n._attachedOverlays,i=t.length-1;i>-1;i--)if(t[i]._keydownEventSubscriptions>0){t[i]._keydownEvents.next(e);break}},this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}()).\u0275fac=function(e){return new(e||ZM)(Xe(Cu))},ZM.\u0275prov=fe({factory:function(){return new ZM(Xe(Cu))},token:ZM,providedIn:"root"}),ZM),nx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),ix=((ex=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||nx)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add("cdk-overlay-container"),nx?i.setAttribute("platform","test"):e||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}()).\u0275fac=function(e){return new(e||ex)(Xe(Cu),Xe(mw))},ex.\u0275prov=fe({factory:function(){return new ex(Xe(Cu),Xe(mw))},token:ex,providedIn:"root"}),ex),ax=function(){function e(t,n,i,a,r,o,s,l){var c=this;_classCallCheck(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=a,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=l,this._backdropElement=null,this._backdropClick=new T,this._attachments=new T,this._detachments=new T,this._locationChanges=h.EMPTY,this._backdropClickHandler=function(e){return c._backdropClick.next(e)},this._keydownEventsObservable=new w((function(e){var t=c._keydownEvents.subscribe(e);return c._keydownEventSubscriptions++,function(){t.unsubscribe(),c._keydownEventSubscriptions--}})),this._keydownEvents=new T,this._keydownEventSubscriptions=0,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}return _createClass(e,[{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){t.hasAttached()&&t.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return t.dispose()}))),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEventsObservable}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=sw(this._config.width),e.height=sw(this._config.height),e.minWidth=sw(this._config.minWidth),e.minHeight=sw(this._config.minHeight),e.maxWidth=sw(this._config.maxWidth),e.maxHeight=sw(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){n.addEventListener("transitionend",i)})),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;ow(t).forEach((function(e){e&&(n?i.add(e):i.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.asObservable().pipe($S(K(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),e}(),rx=/([A-Za-z%]+)$/,ox=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._viewportRuler=n,this._document=i,this._platform=a,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new T,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return _createClass(e,[{key:"attach",value:function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,a=this._viewportRect,r=[],o=_createForOfIteratorHelper(this._preferredPositions);try{for(o.s();!(t=o.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),c=this._getOverlayPoint(l,i,s),u=this._getOverlayFit(c,i,a,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(u,c,a)?r.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<u.visibleArea)&&(e={overlayFit:u,overlayPoint:c,originPoint:l,position:s,overlayRect:i})}}catch(g){o.e(g)}finally{o.f()}if(r.length){var d,h=null,f=-1,p=_createForOfIteratorHelper(r);try{for(p.s();!(d=p.n()).done;){var m=d.value,_=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);_>f&&(f=_,h=m)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&sx(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n="start"==t.originX?i:a}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,a;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,a="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+a}}},{key:"_getOverlayFit",value:function(e,t,n,i){var a=e.x,r=e.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(a+=o),s&&(r+=s);var l=0-r,c=r+t.height-n.height,u=this._subtractOverflows(t.width,0-a,a+t.width-n.width),d=this._subtractOverflows(t.height,l,c),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:u==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,a=n.right-t.x,r=lx(this._overlayRef.getConfig().minHeight),o=lx(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=a;return(e.fitsInViewportVertically||null!=r&&r<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,a,r=this._viewportRect,o=Math.max(e.x+t.width-r.right,0),s=Math.max(e.y+t.height-r.bottom,0),l=Math.max(r.top-n.top-e.y,0),c=Math.max(r.left-n.left-e.x,0);return i=t.width<=r.width?c||-o:e.x<this._viewportMargin?r.left-n.left-e.x:0,a=t.height<=r.height?l||-s:e.y<this._viewportMargin?r.top-n.top-e.y:0,this._previousPushAmount={x:i,y:a},{x:e.x+i,y:e.y+a}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new $M(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var a=0;a<n.length;a++)n[a].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,a,r,o,s,l=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)a=l.height-e.y+2*this._viewportMargin,n=l.height-a+this._viewportMargin;else{var u=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*u,i=e.y-u,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=l.width-e.x+this._viewportMargin,r=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)o=e.x,r=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;r=2*h,o=e.x-h,r>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:i,left:o,bottom:a,right:s,width:r,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=sw(n.height),i.top=sw(n.top),i.bottom=sw(n.bottom),i.width=sw(n.width),i.left=sw(n.left),i.right=sw(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",a&&(i.maxHeight=sw(a)),r&&(i.maxWidth=sw(r))}this._lastBoundingBoxSize=n,sx(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){sx(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){sx(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();sx(n,this._getExactOverlayY(t,e,o)),sx(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),r.maxHeight&&(i?n.maxHeight=sw(r.maxHeight):a&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=sw(r.maxWidth):a&&(n.maxWidth="")),sx(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):i.top=sw(a.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):i.left=sw(a.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:zM(e,n),isOriginOutsideView:jM(e,n),isOverlayClipped:zM(t,n),isOverlayOutsideView:jM(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(e){XM("originX",e.originX),JM("originY",e.originY),XM("overlayX",e.overlayX),JM("overlayY",e.overlayY)}))}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&ow(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof js)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}},{key:"positions",get:function(){return this._preferredPositions}}]),e}();function sx(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function lx(e){if("number"!=typeof e&&null!=e){var t=_slicedToArray(e.split(rx),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}var cx,ux,dx,hx,fx,px=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._preferredPositions=[],this._positionStrategy=new ox(i,a,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n)}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var a=new KM(e,t,n,i);return this._preferredPositions.push(a),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}},{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}}]),e}(),mx=function(){function e(){_classCallCheck(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,a=n.height,r=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),_x=((ux=function(){function e(t,n,i,a){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return _createClass(e,[{key:"global",value:function(){return new mx}},{key:"connectedTo",value:function(e,t,n){return new px(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new ox(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||ux)(Xe(kM),Xe(Cu),Xe(mw),Xe(ix))},ux.\u0275prov=fe({factory:function(){return new ux(Xe(kM),Xe(Cu),Xe(mw),Xe(ix))},token:ux,providedIn:"root"}),ux),gx=0,vx=((cx=function(){function e(t,n,i,a,r,o,s,l,c,u){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=l,this._directionality=c,this._location=u}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),a=new QM(e);return a.direction=a.direction||this._directionality.value,new ax(i,t,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(gx++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(au)),new EM(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||cx)(Xe(GM),Xe(ix),Xe(Bs),Xe(_x),Xe(tx),Xe(ro),Xe(qc),Xe(Cu),Xe(pC),Xe(ju,8))},cx.\u0275prov=fe({token:cx,factory:cx.\u0275fac}),cx),yx=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kx=new je("cdk-connected-overlay-scroll-strategy"),bx=((hx=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||hx)(Mo(js))},hx.\u0275dir=Ct({type:hx,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),hx),wx=((dx=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Gl,this.positionChange=new Gl,this.attach=new Gl,this.detach=new Gl,this.overlayKeydown=new Gl,this._templatePortal=new AM(n,i),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=yx),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),27!==t.keyCode||Gb(t)||(t.preventDefault(),e._detachOverlay())}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new QM({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe((function(t){return e.positionChange.emit(t)})),t}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=iw(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=iw(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=iw(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=iw(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=iw(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||dx)(Mo(vx),Mo(fl),Mo(ml),Mo(kx),Mo(pC,8))},dx.\u0275dir=Ct({type:dx,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[As]}),dx),Cx={provide:kx,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Dx=((fx=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:fx}),fx.\u0275inj=me({factory:function(e){return new(e||fx)},providers:[vx,Cx],imports:[[mC,FM,bM],bM]}),fx);function Sx(e,t){}var Mx=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},xx={dialogContainer:Nf("dialogContainer",[Wf("void, exit",Uf({opacity:0,transform:"scale(0.7)"})),Wf("enter",Uf({transform:"none"})),Qf("* => enter",Bf("150ms cubic-bezier(0, 0, 0.2, 1)",Uf({transform:"none",opacity:1}))),Qf("* => void, * => exit",Bf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Uf({opacity:0})))])};function Tx(){throw Error("Attempting to attach dialog content after content is already attached")}var Ax,Lx,Ix,Ex,Ox,Rx,Px=((Ax=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusTrapFactory=i,s._changeDetectorRef=a,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Gl,s.attachDomPortal=function(e){return s._portalOutlet.hasAttached()&&Tx(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(e)},s._ariaLabelledBy=o.ariaLabelledBy||null,s._document=r,s}return _createClass(n,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&Tx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&Tx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._getFocusTrap().focusInitialElement()||this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._getFocusTrap().focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"_getFocusTrap",value:function(){return this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._focusTrap}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(IM)).\u0275fac=function(e){return new(e||Ax)(Mo(js),Mo(Ww),Mo(jr),Mo(Cu,8),Mo(Mx))},Ax.\u0275cmp=gt({type:Ax,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&rc(RM,!0),2&e&&ac(n=dc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&No("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(wo("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),bs("@dialogContainer",t._state))},features:[Cs],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Do(0,Sx,0,0,"ng-template",0)},directives:[RM],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[xx.dialogContainer]}}),Ax),Yx=0,Fx=function(){function e(t,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Yx++);_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new T,this._afterClosed=new T,this._beforeClosed=new T,this._state=0,n._id=a,n._animationStateChanged.pipe(gu((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Av(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(gu((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Av(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._overlayRef.dispose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(gu((function(e){return 27===e.keyCode&&!i.disableClose&&!Gb(e)}))).subscribe((function(e){e.preventDefault(),i.close()})),t.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():i.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(gu((function(e){return"start"===e.phaseName})),Av(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),qx=new je("MatDialogData"),Vx=new je("mat-dialog-default-options"),Hx=new je("mat-dialog-scroll-strategy"),Nx={provide:Hx,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Bx=((Rx=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T,this._afterOpenedAtThisLevel=new T,this._ariaHiddenElements=new Map,this.afterAllClosed=hv((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Vv(void 0))})),this._scrollStrategy=r}return _createClass(e,[{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new Mx)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(t),a=this._attachDialogContainer(i,t),r=this._attachDialogContent(e,a,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return n._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new QM({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=ro.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Mx,useValue:t}]}),i=new TM(Px,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new Fx(n,t,i.id);if(e instanceof fl)t.attachTemplatePortal(new AM(e,null,{$implicit:i.data,dialogRef:a}));else{var r=this._createInjector(i,a,t),o=t.attachComponentPortal(new TM(e,i.viewContainerRef,r));a.componentInstance=o.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:Px,useValue:n},{provide:qx,useValue:e.data},{provide:Fx,useValue:t}];return!e.direction||i&&i.get(pC,null)||a.push({provide:pC,useValue:{value:e.direction,change:mu()}}),ro.create({parent:i||this._injector,providers:a})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||Rx)(Xe(vx),Xe(ro),Xe(ju,8),Xe(Vx,8),Xe(Hx),Xe(Rx,12),Xe(ix))},Rx.\u0275prov=fe({token:Rx,factory:Rx.\u0275fac}),Rx),jx=0,zx=((Ox=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Qx(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}}]),e}()).\u0275fac=function(e){return new(e||Ox)(Mo(Fx,8),Mo(js),Mo(Bx))},Ox.\u0275dir=Ct({type:Ox,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ho("click",(function(){return t.dialogRef.close(t.dialogResult)})),2&e&&wo("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[As]}),Ox),Ux=((Ex=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(jx++)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Qx(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}()).\u0275fac=function(e){return new(e||Ex)(Mo(Fx,8),Mo(js),Mo(Bx))},Ex.\u0275dir=Ct({type:Ex,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&ks("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Ex),Wx=((Ix=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ix)},Ix.\u0275dir=Ct({type:Ix,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ix),Gx=((Lx=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Lx)},Lx.\u0275dir=Ct({type:Lx,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Lx);function Qx(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find((function(e){return e.id===n.id})):null}var Kx,$x=((Kx=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Kx}),Kx.\u0275inj=me({factory:function(e){return new(e||Kx)},providers:[Bx,Nx],imports:[[Dx,FM,MC],MC]}),Kx),Jx=["*"];function Xx(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function Zx(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function eT(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var tT,nT=function e(t,n){_classCallCheck(this,e),this.options=n,t.nodeName?this.svgElement=t:this.url=t},iT=((tT=function(){function e(t,n,i,a){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new nT(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var a=this._sanitizer.sanitize(Qi.HTML,n);if(!a)throw eT(n);var r=this._createSvgElementForSingleIcon(a,i);return this._addSvgIconConfig(e,t,new nT(r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new nT(t,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Qi.HTML,t);if(!i)throw eT(t);var a=this._svgElementFromString(i);return this._addSvgIconSetConfig(e,new nT(a,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Qi.RESOURCE_URL,e);if(!n)throw Zx(e);var i=this._cachedIconsByUrl.get(n);return i?mu(aT(i)):this._loadSvgIconFromConfig(new nT(e)).pipe(Uv((function(e){return t._cachedIconsByUrl.set(n,e)})),V((function(e){return aT(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=rT(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):TD(Xx(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgElement?mu(aT(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Uv((function(t){return e.svgElement=t})),V((function(e){return aT(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?mu(i):m_(t.filter((function(e){return!e.svgElement})).map((function(e){return n._loadSvgIconSetFromConfig(e).pipe(Mv((function(t){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(Qi.RESOURCE_URL,e.url)," failed: ").concat(t.message);return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),mu(null)})))}))).pipe(V((function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw Xx(e);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgElement){var a=this._extractSvgIconFromSet(i.svgElement,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchUrl(e.url).pipe(V((function(n){return t._createSvgElementForSingleIcon(n,e.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){var t=this;return e.svgElement?mu(e.svgElement):this._fetchUrl(e.url).pipe(V((function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(e,t){var n=this._svgElementFromString(e);return this._setSvgAttributes(n,t),n}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var a=i.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,n);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),n);var r=this._svgElementFromString("<svg></svg>");return r.appendChild(a),this._setSvgAttributes(r,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var a=n[i],r=a.name,o=a.value;"id"!==r&&t.setAttribute(r,o)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchUrl",value:function(e){var t=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==e)throw Error('Cannot fetch icon from URL "'.concat(e,'".'));var n=this._sanitizer.sanitize(Qi.RESOURCE_URL,e);if(!n)throw Zx(e);var i=this._inProgressUrlFetches.get(n);if(i)return i;var a=this._httpClient.get(n,{responseType:"text"}).pipe(Qv((function(){return t._inProgressUrlFetches.delete(n)})),ie());return this._inProgressUrlFetches.set(n,a),a}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(rT(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}}]),e}()).\u0275fac=function(e){return new(e||tT)(Xe(Bh,8),Xe(Pf),Xe(Cu,8),Xe(fi,8))},tT.\u0275prov=fe({factory:function(){return new tT(Xe(Bh,8),Xe(Pf),Xe(Cu,8),Xe(fi,8))},token:tT,providedIn:"root"}),tT);function aT(e){return e.cloneNode(!0)}function rT(e,t){return e+":"+t}var oT,sT,lT,cT=TC((function e(t){_classCallCheck(this,e),this._elementRef=t})),uT=new je("mat-icon-location",{providedIn:"root",factory:function(){var e=Ze(Cu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),dT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],hT=dT.map((function(e){return"[".concat(e,"]")})).join(", "),fT=/^url\(['"]?#(.*?)['"]?\)$/,pT=((lT=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=r,s._errorHandler=o,s._inline=!1,a||e.nativeElement.setAttribute("aria-hidden","true"),s}return _createClass(n,[{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnChanges",value:function(e){var t=this,n=e.svgIcon;if(n)if(this.svgIcon){var i=_slicedToArray(this._splitIconName(this.svgIcon),2),a=i[0],r=i[1];this._iconRegistry.getNamedSvgIcon(r,a).pipe(Av(1)).subscribe((function(e){return t._setSvgElement(e)}),(function(e){var n="Error retrieving icon ".concat(a,":").concat(r,"! ").concat(e.message);t._errorHandler?t._errorHandler.handleError(new Error(n)):console.error(n)}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&this._location&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";if(this._location){var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i)}this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach((function(t,n){t.forEach((function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(hT),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){dT.forEach((function(i){var a=t[e],r=a.getAttribute(i),o=r?r.match(fT):null;if(o){var s=n.get(a);s||(s=[],n.set(a,s)),s.push({name:i,value:o[1]})}}))},a=0;a<t.length;a++)i(a)}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=iw(e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)}}]),n}(cT)).\u0275fac=function(e){return new(e||lT)(Mo(js),Mo(iT),xo("aria-hidden"),Mo(uT,8),Mo(fi,8))},lT.\u0275cmp=gt({type:lT,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(e,t){2&e&&rs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Cs,As],ngContentSelectors:Jx,decls:1,vars:0,template:function(e,t){1&e&&(Go(),Qo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),lT),mT=((sT=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:sT}),sT.\u0275inj=me({factory:function(e){return new(e||sT)},imports:[[MC],MC]}),sT),_T=((oT=function(){function e(t,n){_classCallCheck(this,e),this._matDialogRef=t,this._location=n}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"refresh",value:function(){window.location.reload()}}]),e}()).\u0275fac=function(e){return new(e||oT)(Mo(Fx),Mo(ju))},oT.\u0275cmp=gt({type:oT,selectors:[["app-session-timeout-dialog"]],decls:10,vars:0,consts:[[1,"polyu-alert-dialog"],["color","primary","aria-hidden","false","aria-label","Error",1,"polyu-alert-icon"],[1,"polyu-alert-message"],["type","submit","mat-raised-button","","color","primary",1,"polyu-dialog-btn",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"mat-icon",1),_s(2,"error"),Eo(),Io(3,"h3",2),Io(4,"b"),_s(5,"Session Timeout"),Eo(),Eo(),Io(6,"h5"),_s(7,"Please refresh VRS."),Eo(),Io(8,"button",3),Ho("click",(function(){return t.refresh()})),_s(9,"Refresh"),Eo(),Eo())},directives:[pT,bS],styles:[".polyu-alert-dialog[_ngcontent-%COMP%]{text-align:center;padding:40px 80px}.polyu-alert-icon[_ngcontent-%COMP%]{transform:scale(2)}.polyu-alert-message[_ngcontent-%COMP%]{margin:30px 0 0}.polyu-dialog-btn[_ngcontent-%COMP%]{margin:10px 0}"]}),oT),gT=["*"];function vT(e,t){if(1&e){var n=Fo();Io(0,"div",2),Ho("click",(function(){return en(n),Uo()._onBackdropClicked()})),Eo()}2&e&&rs("mat-drawer-shown",Uo()._isShowingBackdrop())}function yT(e,t){1&e&&(Io(0,"mat-drawer-content"),Qo(1,2),Eo())}var kT=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],bT=["mat-drawer","mat-drawer-content","*"];function wT(e,t){if(1&e){var n=Fo();Io(0,"div",2),Ho("click",(function(){return en(n),Uo()._onBackdropClicked()})),Eo()}2&e&&rs("mat-drawer-shown",Uo()._isShowingBackdrop())}function CT(e,t){1&e&&(Io(0,"mat-sidenav-content",3),Qo(1,2),Eo())}var DT=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ST=["mat-sidenav","mat-sidenav-content","*"],MT={transformDrawer:Nf("transform",[Wf("open, open-instant",Uf({transform:"none",visibility:"visible"})),Wf("void",Uf({"box-shadow":"none",visibility:"hidden"})),Qf("void => open-instant",Bf("0ms")),Qf("void <=> open, open-instant => void",Bf("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function xT(e){throw Error("A drawer was already declared for 'position=\"".concat(e,"\"'"))}var TT,AT,LT,IT,ET,OT,RT,PT=new je("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),YT=new je("MAT_DRAWER_CONTAINER"),FT=((ET=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this,a,r,o))._changeDetectorRef=e,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),n}(yM)).\u0275fac=function(e){return new(e||ET)(Mo(jr),Mo(xe((function(){return VT}))),Mo(js),Mo(vM),Mo(qc))},ET.\u0275cmp=gt({type:ET,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&as("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Cs],ngContentSelectors:gT,decls:1,vars:0,template:function(e,t){1&e&&(Go(),Qo(0))},encapsulation:2,changeDetection:0}),ET),qT=((IT=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=r,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new T,this._animationEnd=new T,this._animationState="void",this.openedChange=new Gl(!0),this._destroyed=new T,this.onPositionChanged=new Gl,this._modeChanged=new T,this.openedChange.subscribe((function(e){e?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._restoreFocus()})),this._ngZone.runOutsideAngular((function(){qS(l._elementRef.nativeElement,"keydown").pipe(gu((function(e){return 27===e.keyCode&&!l.disableClose&&!Gb(e)})),$S(l._destroyed)).subscribe((function(e){return l._ngZone.run((function(){l.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(NS((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&l.openedChange.emit(l._opened)}))}return _createClass(e,[{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){e.openedChange.pipe(Av(1)).subscribe((function(e){return t(e?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}},{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=iw(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=iw(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(iw(e))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(gu((function(e){return e})),V((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(gu((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),V((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(gu((function(e){return!e})),V((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(gu((function(e){return e.fromState!==e.toState&&"void"===e.toState})),V((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),e}()).\u0275fac=function(e){return new(e||IT)(Mo(js),Mo(Ww),Mo(cC),Mo(mw),Mo(qc),Mo(Cu,8),Mo(YT,8))},IT.\u0275cmp=gt({type:IT,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&No("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(wo("align",null),bs("@transform",t._animationState),rs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:gT,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Qo(1),Eo())},encapsulation:2,data:{animation:[MT.transformDrawer]},changeDetection:0}),IT),VT=((LT=function(){function e(t,n,i,a,r){var o=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new Kl,this.backdropClick=new Gl,this._destroyed=new T,this._doCheckSubject=new T,this._contentMargins={left:null,right:null},this._contentMarginChanges=new T,t&&t.change.pipe($S(this._destroyed)).subscribe((function(){o._validateDrawers(),o.updateContentMargins()})),r.change().pipe($S(this._destroyed)).subscribe((function(){return o.updateContentMargins()})),this._autosize=s}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Vv(this._allDrawers),$S(this._destroyed)).subscribe((function(t){e._drawers.reset(t.filter((function(t){return!t._container||t._container===e}))),e._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Vv(null)).subscribe((function(){e._validateDrawers(),e._drawers.forEach((function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)})),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Xb(10),$S(this._destroyed)).subscribe((function(){return e.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(e){return e.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(e){return e.close()}))}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){var i=this._left._width;t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;n+=a,t-=a}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run((function(){return e._contentMarginChanges.next(e._contentMargins)})))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return e._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(gu((function(e){return e.fromState!==e.toState})),$S(this._drawers.changes)).subscribe((function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),"side"!==e.mode&&e.openedChange.pipe($S(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe($S(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(Av(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe($S(K(this._drawers.changes,this._destroyed))).subscribe((function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach((function(t){"end"==t.position?(null!=e._end&&xT("end"),e._end=t):(null!=e._start&&xT("start"),e._start=t)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var e=this;[this._start,this._end].filter((function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)})).forEach((function(e){return e.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=iw(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:iw(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}()).\u0275fac=function(e){return new(e||LT)(Mo(pC,8),Mo(js),Mo(qc),Mo(jr),Mo(kM),Mo(PT),Mo(h_,8))},LT.\u0275cmp=gt({type:LT,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,FT,!0),lc(n,qT,!0)),2&e&&(ac(i=dc())&&(t._content=i.first),ac(i=dc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&oc(FT,!0),2&e&&ac(n=dc())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&rs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Vs([{provide:YT,useExisting:LT}])],ngContentSelectors:bT,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(Go(kT),Do(0,vT,1,2,"div",0),Qo(1),Qo(2,1),Do(3,yT,2,0,"mat-drawer-content",1)),2&e&&(Ao("ngIf",t.hasBackdrop),ma(3),Ao("ngIf",!t._content))},directives:[Ed,FT],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),LT),HT=((AT=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){return _classCallCheck(this,n),t.call(this,e,i,a,r,o)}return n}(FT)).\u0275fac=function(e){return new(e||AT)(Mo(jr),Mo(xe((function(){return jT}))),Mo(js),Mo(vM),Mo(qc))},AT.\u0275cmp=gt({type:AT,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&as("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Cs],ngContentSelectors:gT,decls:1,vars:0,template:function(e,t){1&e&&(Go(),Qo(0))},encapsulation:2,changeDetection:0}),AT),NT=((TT=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=iw(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=aw(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=aw(e)}}]),n}(qT)).\u0275fac=function(e){return BT(e||TT)},TT.\u0275cmp=gt({type:TT,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(wo("align",null),as("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),rs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Cs],ngContentSelectors:gT,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Qo(1),Eo())},encapsulation:2,data:{animation:[MT.transformDrawer]},changeDetection:0}),TT),BT=ci(NT),jT=((OT=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(VT)).\u0275fac=function(e){return zT(e||OT)},OT.\u0275cmp=gt({type:OT,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,HT,!0),lc(n,NT,!0)),2&e&&(ac(i=dc())&&(t._content=i.first),ac(i=dc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&rs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[Vs([{provide:YT,useExisting:OT}]),Cs],ngContentSelectors:ST,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(Go(DT),Do(0,wT,1,2,"div",0),Qo(1),Qo(2,1),Do(3,CT,2,0,"mat-sidenav-content",1)),2&e&&(Ao("ngIf",t.hasBackdrop),ma(3),Ao("ngIf",!t._content))},directives:[Ed,HT,yM],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),OT),zT=ci(jT),UT=((RT=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:RT}),RT.\u0275inj=me({factory:function(e){return new(e||RT)},imports:[[uh,MC,bM,_w],MC]}),RT),WT=["loginForm"],GT=["banner"];function QT(e,t){1&e&&(Io(0,"div",2),Io(1,"div",3),Oo(2,"app-banner",null,4),Eo(),Io(4,"div",5),Io(5,"mat-sidenav-container"),Io(6,"mat-sidenav-content"),Oo(7,"router-outlet"),Eo(),Eo(),Eo(),Eo())}function KT(e,t){if(1&e&&(Io(0,"div",6),Io(1,"div",7),Oo(2,"div",8),Oo(3,"div",9),Oo(4,"div",10),Oo(5,"div",11),Eo(),Eo(),Io(6,"form",12,13),Oo(8,"input",14),Io(9,"p"),_s(10,"Click "),Io(11,"button",15),_s(12,"Login"),Eo(),_s(13," to start managing requests of Physical Access Card or Mobile ID for Visitors."),Eo(),Eo()),2&e){var n=Uo();ma(8),Ko("value",n.location)}}var $T,JT,XT,ZT=(($T=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._dialog=i,this._location=a,this._changeDetectorRef=r,this.showContent=!1,this.showingTimeoutDialog=!1,this.location=""}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.location=this._location.prepareExternalUrl(this._location.path()),this._location.subscribe((function(){e.location=e._location.prepareExternalUrl(e._location.path())}));var t=this;document.addEventListener("visibilitychange",(function(){if(document.hidden){if(t.showingTimeoutDialog)return;t._applicationService.ping().subscribe((function(e){}),(function(e){e&&401===e.status&&(t.showingTimeoutDialog=!0,t._dialog.open(_T))}))}}))}},{key:"ngAfterViewInit",value:function(){var e=this;this._location.path().startsWith("/registration")||this._location.path().startsWith("/unauthorized")?(this.showContent=!0,this._changeDetectorRef.detectChanges(),this.bannerComponent.setLogInVisible(!1)):this._applicationService.initApplication().subscribe({next:function(){e._applicationService.currentUser?(e.showContent=!0,e._changeDetectorRef.detectChanges(),e.bannerComponent.setLogInVisible(!0)):(e.showContent=!1,e._changeDetectorRef.detectChanges(),e.loginFormElement.nativeElement.submit())},error:function(){e.showContent=!1,e._changeDetectorRef.detectChanges(),e.loginFormElement.nativeElement.submit()}})}}]),e}()).\u0275fac=function(e){return new(e||$T)(Mo(_S),Mo(mb),Mo(Bx),Mo(ju),Mo(jr))},$T.\u0275cmp=gt({type:$T,selectors:[["app-root"]],viewQuery:function(e,t){var n;1&e&&(oc(WT,!0),oc(GT,!0)),2&e&&(ac(n=dc())&&(t.loginFormElement=n.first),ac(n=dc())&&(t.bannerComponent=n.first))},decls:3,vars:2,consts:[[3,"ngIf","ngIfElse"],["loading",""],[1,"polyu-base-container"],[1,"polyu-header-container"],["banner",""],[1,"polyu-content-container"],[1,"polyu-preangular"],[1,"polyu-loader"],[1,"polyu-loader-cube1","polyu-loader-cube"],[1,"polyu-loader-cube2","polyu-loader-cube"],[1,"polyu-loader-cube4","polyu-loader-cube"],[1,"polyu-loader-cube3","polyu-loader-cube"],["ngNoForm","","action","/vrs-ajax/Login","target","_self","method","POST","hidden",""],["loginForm",""],["type","hidden","name","returnUrl",3,"value"],["type","submit",1,"polyu-login-link"]],template:function(e,t){if(1&e&&(Do(0,QT,8,0,"ng-template",0),Do(1,KT,14,1,"ng-template",null,1,mc)),2&e){var n=So(2);Ao("ngIf",t.showContent)("ngIfElse",n)}},directives:[Ed,FS,jT,HT,Mb],styles:[".polyu-alert-box[_ngcontent-%COMP%]{margin:0;width:99%;display:inline-flex;justify-content:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{width:30%;height:150px;text-align:right}.polyu-alert-box-icon[_ngcontent-%COMP%]{font-size:112px;height:112px;width:112px;line-height:112px}.polyu-alert-box-message-container[_ngcontent-%COMP%]{width:65%;min-height:150px;text-align:left}.polyu-login-link[_ngcontent-%COMP%]{border:none;outline:none;background:none;cursor:pointer;padding:0;text-decoration:underline;font-family:inherit;font-size:inherit}"]}),$T),eA=[{path:"**",redirectTo:"/"}],tA=((JT=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:JT}),JT.\u0275inj=me({factory:function(e){return new(e||JT)},imports:[[uh,Fb.forRoot(eA)],Fb]}),JT),nA=[],iA=((XT=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:XT}),XT.\u0275inj=me({factory:function(e){return new(e||XT)},imports:[[Fb.forChild(nA)],Fb]}),XT);function aA(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function rA(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function oA(e,t){var n=t?"":"none";rA(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function sA(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function lA(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}function cA(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function uA(e,t,n){var i=e.top,a=e.bottom,r=e.left,o=e.right;return n>=i&&n<=a&&t>=r&&t<=o}function dA(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function hA(e,t,n,i){var a=e.top,r=e.right,o=e.bottom,s=e.left,l=e.width*t,c=e.height*t;return i>a-c&&i<o+c&&n>s-l&&n<r+l}var fA=yw({passive:!0}),pA=yw({passive:!1}),mA=function(){function e(t,n,i,a,r,o){var s=this;_classCallCheck(this,e),this._config=n,this._document=i,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new T,this._pointerMoveSubscription=h.EMPTY,this._pointerUpSubscription=h.EMPTY,this._scrollSubscription=h.EMPTY,this._resizeSubscription=h.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new T,this.started=new T,this.released=new T,this.ended=new T,this.entered=new T,this.exited=new T,this.dropped=new T,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find((function(t){var n=e.target;return!!n&&(n===t||t.contains(n))}));!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){e.preventDefault();var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})}))}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),o.registerDragItem(this)}return _createClass(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return lw(e)})),this._handles.forEach((function(e){return oA(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=lw(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){n.addEventListener("mousedown",t._pointerDown,pA),n.addEventListener("touchstart",t._pointerDown,fA)})),this._initialTransform=void 0,this._rootElement=n),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?lw(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&yA(this._rootElement),yA(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._pointerPositionAtLastDirectionChange;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&yA(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&yA(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){if(this.started.next({source:this}),kA(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var t=this._rootElement,n=t.parentNode,i=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(r,t),t.style.display="none",this._document.body.appendChild(n.replaceChild(a,t)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(i),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(e,t){var n=this;t.stopPropagation();var i=this.isDragging(),a=kA(t),r=!a&&0!==t.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(Vv(null)).subscribe((function(){n._updateOnScroll()})),this._boundaryElement&&(this._boundaryRect=cA(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=t._dropContainer,i=n.getItemIndex(t),a=t._getPointerPositionOnPage(e),r=t._getDragDistance(t._getPointerPositionOnPage(e)),o=n._isOverContainer(a.x,a.y);t.ended.next({source:t,distance:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:r}),n.drop(t,i,t._initialContainer,o,r,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e){var t=this,n=e.x,i=e.y,a=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){t.exited.next({item:t,container:t._dropContainer}),t._dropContainer.exit(t),t._dropContainer=a,t._dropContainer.enter(t,n,i,a===t._initialContainer&&a.sortingDisabled?t._initialIndex:void 0),t.entered.next({item:t,container:a,currentIndex:a.getItemIndex(t)})})),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this._preview.style.transform=_A(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i){var a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),e=bA(a,this._document),this._previewRef=a,t.matchSize?wA(e,this._rootElement):e.style.transform=_A(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;wA(e=gA(r),r)}return rA(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),oA(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach((function(t){return e.classList.add(t)})):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=_A(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=lA(t,"transition-property"),i=n.find((function(e){return"transform"===e||"all"===e}));if(!i)return 0;var a=n.indexOf(i),r=lA(t,"transition-duration"),o=lA(t,"transition-delay");return sA(r[a])+sA(o[a])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(a))},a=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=bA(this._placeholderRef,this._document)):e=gA(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,a=i?i.getBoundingClientRect():n,r=kA(t)?t.targetTouches[0]:t;return{x:a.left-n.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-n.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=kA(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.pageX-this._scrollPosition.left,y:t.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?t.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(t.x=this._pickupPositionOnPage.x),this._boundaryRect){var i=this._pickupPositionInElement,a=i.x,r=i.y,o=this._boundaryRect,s=this._previewRect,l=o.top+r,c=o.bottom-(s.height-r);t.x=vA(t.x,o.left+a,o.right-(s.width-a)),t.y=vA(t.y,l,c)}return t}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(t-a.x),o=Math.abs(n-a.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=t>a.x?1:-1,a.x=t),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>a.y?1:-1,a.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,oA(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,pA),e.removeEventListener("touchstart",this._pointerDown,fA)}},{key:"_applyRootElementTransform",value:function(e,t){var n=_A(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===a.width&&0===a.height)){var r=i.left-a.left,o=a.right-i.right,s=i.top-a.top,l=a.bottom-i.bottom;i.width>a.width?(r>0&&(t+=r),o>0&&(t-=o)):t=0,i.height>a.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:kA(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(){var e=this._scrollPosition,t=this._viewportRuler.getViewportScrollPosition();e&&this._boundaryRect&&dA(this._boundaryRect,e.top-t.top,e.left-t.left),this._scrollPosition=t}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=iw(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}}]),e}();function _A(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function gA(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.querySelectorAll("canvas");t.removeAttribute("id");for(var a=0;a<n.length;a++)n[a].removeAttribute("id");if(i.length)for(var r=t.querySelectorAll("canvas"),o=0;o<i.length;o++){var s=r[o].getContext("2d");s&&s.drawImage(i[o],0,0)}return t}function vA(e,t,n){return Math.max(t,Math.min(n,e))}function yA(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kA(e){return"t"===e.type[0]}function bA(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach((function(e){return i.appendChild(e)})),i}function wA(e,t){var n=t.getBoundingClientRect();e.style.width="".concat(n.width,"px"),e.style.height="".concat(n.height,"px"),e.style.transform=_A(n.left,n.top)}function CA(e,t){return Math.max(0,Math.min(t,e))}var DA=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this._dragDropRegistry=n,this._ngZone=a,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new T,this.entered=new T,this.exited=new T,this.dropped=new T,this.sorted=new T,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jb;return(!WS(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Jb),new w((function(n){return n.add(t.schedule(aA,e,{subscriber:n,counter:0,period:e})),n}))}(0,HS).pipe($S(o._stopScrollTimers)).subscribe((function(){var e=o._scrollNode;1===o._verticalScrollDirection?MA(e,-2):2===o._verticalScrollDirection&&MA(e,2),1===o._horizontalScrollDirection?xA(e,-2):2===o._horizontalScrollDirection&&xA(e,2)}))},this.element=lw(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this)}return _createClass(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=lw(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,n,i){var a;this.start(),null==i?-1===(a=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(a=this._getItemIndexFromPointerPosition(e,t,n)):a=i;var r=this._activeDraggables,o=r.indexOf(e),s=e.getPlaceholderElement(),l=r[a];if(l===e&&(l=r[a+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),r.splice(a,0,e)}else lw(this.element).appendChild(s),r.push(e);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,a,r){this._reset(),null==r&&(r=n.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:a})}},{key:"withItems",value:function(e){var t=this;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=lw(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(_toConsumableArray(e)):e.slice(),this}},{key:"getItemIndex",value:function(e){return this._isDragging?SA("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&hA(this._clientRect,.05,t,n)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=SA(a,(function(t){return t.drag===e})),l=a[r],c=a[s].clientRect,u=l.clientRect,d=s>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y;var h=this._getItemOffsetPx(c,u,d),f=this._getSiblingOffsetPx(s,a,d),p=a.slice();!function(e,t,n){var i=CA(t,e.length-1),a=CA(n,e.length-1);if(i!==a){for(var r=e[i],o=a<i?-1:1,s=i;s!==a;s+=o)e[s]=e[s+o];e[a]=r}}(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:e}),a.forEach((function(t,n){if(p[n]!==t){var i=t.drag===e,a=i?h:f,r=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),dA(t.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),dA(t.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var l;s!==n._document&&o.clientRect&&!i&&hA(o.clientRect,.05,e,t)&&(l=_slicedToArray(function(e,t,n,i){var a=TA(t,i),r=AA(t,n),o=0,s=0;if(a){var l=e.scrollTop;1===a?l>0&&(o=1):e.scrollHeight-l>e.clientHeight&&(o=2)}if(r){var c=e.scrollLeft;1===r?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,e,t),2),a=l[0],r=l[1],(a||r)&&(i=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,l=o.height,c={width:s,height:l,top:0,right:s,bottom:l,left:0};a=TA(c,t),r=AA(c,e),i=window}!i||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=i,(a||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(t){var n=cA(t);t===e.element&&(e._clientRect=n),e._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:n})}))}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:cA(t)}})).sort((function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=lw(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){return e.getRootElement().style.transform=""})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,a=t[e].clientRect,r=t[e+-1*n],o=a[i?"width":"height"]*n;if(r){var s=i?"left":"top",l=i?"right":"bottom";-1===n?o-=r.clientRect[s]-a[l]:o+=a[s]-r.clientRect[l]}return o}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,a=i?t.left-e.left:t.top-e.top;return-1===n&&(a+=i?t.width-e.width:t.height-e.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var a=this,r="horizontal"===this._orientation;return SA(this._itemPositions,(function(o,s,l){var c=o.drag,u=o.clientRect;if(c===e)return l.length<2;if(i){var d=r?i.x:i.y;if(c===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?t>=Math.floor(u.left)&&t<=Math.floor(u.right):n>=Math.floor(u.top)&&n<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(e,t,n){var i=this,a=e===this._document?e.documentElement:e,r=this._parentPositions.get(e).scrollPosition,o=r.top-t,s=r.left-n;this._parentPositions.forEach((function(t,n){t.clientRect&&e!==n&&a.contains(n)&&dA(t.clientRect,o,s)})),this._itemPositions.forEach((function(e){dA(e.clientRect,o,s)})),this._itemPositions.forEach((function(e){var t=e.drag;i._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})),r.top=t,r.left=n}},{key:"_isOverContainer",value:function(e,t){return uA(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find((function(i){return i._canReceive(e,t,n)}))}},{key:"_canReceive",value:function(e,t,n){if(!uA(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var a=lw(this.element);return i===a||a.contains(i)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){if(e.isDragging()){var n=t.target;if(e._parentPositions.get(n)){var i,a;if(n===e._document){var r=e._viewportRuler.getViewportScrollPosition();i=r.top,a=r.left}else i=n.scrollTop,a=n.scrollLeft;e._updateAfterScroll(n,i,a)}}else e.isReceiving()&&e._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=bw(lw(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}]),e}();function SA(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function MA(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function xA(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function TA(e,t){var n=e.top,i=e.bottom,a=.05*e.height;return t>=n-a&&t<=n+a?1:t>=i-a&&t<=i+a?2:0}function AA(e,t){var n=e.left,i=e.right,a=.05*e.width;return t>=n-a&&t<=n+a?1:t>=i-a&&t<=i+a?2:0}var LA,IA,EA,OA,RA=yw({passive:!1,capture:!0}),PA=((LA=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new T,this.pointerUp=new T,this.scroll=new T,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.size&&e.preventDefault()},this._document=n}return _createClass(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._preventDefaultWhileDragging,RA)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,RA)}},{key:"startDragging",value:function(e,t){var n=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var i=t.type.startsWith("touch"),a=i?"touchend":"mouseup";this._globalListeners.set(i?"touchmove":"mousemove",{handler:function(e){return n.pointerMove.next(e)},options:RA}).set(a,{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:RA}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(e,t){n._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,n){e._document.removeEventListener(n,t.handler,t.options)})),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||LA)(Xe(qc),Xe(Cu))},LA.\u0275prov=fe({factory:function(){return new LA(Xe(qc),Xe(Cu))},token:LA,providedIn:"root"}),LA),YA={dragStartThreshold:5,pointerDirectionChangeThreshold:5},FA=((OA=function(){function e(t,n,i,a){_classCallCheck(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=a}return _createClass(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YA;return new mA(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new DA(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||OA)(Xe(Cu),Xe(qc),Xe(kM),Xe(PA))},OA.\u0275prov=fe({factory:function(){return new OA(Xe(Cu),Xe(qc),Xe(kM),Xe(PA))},token:OA,providedIn:"root"}),OA),qA=((EA=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:EA}),EA.\u0275inj=me({factory:function(e){return new(e||EA)},providers:[FA]}),EA),VA=((IA=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:IA}),IA.\u0275inj=me({factory:function(e){return new(e||IA)},imports:[[mC]]}),IA),HA=[[["caption"]]],NA=["caption"];function BA(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._sticky=!1,e._hasStickyChanged=!1,e}return _createClass(n,[{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=iw(e),this._hasStickyChanged=t!==this._sticky}}]),n}(e)}var jA,zA,UA,WA,GA,QA,KA,$A,JA,XA,ZA,eL,tL,nL=new je("CDK_TABLE"),iL=((UA=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||UA)(Mo(fl))},UA.\u0275dir=Ct({type:UA,selectors:[["","cdkCellDef",""]]}),UA),aL=((zA=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||zA)(Mo(fl))},zA.\u0275dir=Ct({type:zA,selectors:[["","cdkHeaderCellDef",""]]}),zA),rL=((jA=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||jA)(Mo(fl))},jA.\u0275dir=Ct({type:jA,selectors:[["","cdkFooterCellDef",""]]}),jA),oL=BA((function e(){_classCallCheck(this,e)})),sL=((WA=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return _createClass(n,[{key:"name",get:function(){return this._name},set:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"))}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=iw(e),this._hasStickyChanged=t!==this._stickyEnd}}]),n}(oL)).\u0275fac=function(e){return new(e||WA)(Mo(nL,8))},WA.\u0275dir=Ct({type:WA,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,iL,!0),lc(n,aL,!0),lc(n,rL,!0)),2&e&&(ac(i=dc())&&(t.cell=i.first),ac(i=dc())&&(t.headerCell=i.first),ac(i=dc())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Vs([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:WA}]),Cs]}),WA),lL=function e(t,n){_classCallCheck(this,e),n.nativeElement.classList.add("cdk-column-".concat(t.cssClassFriendlyName))},cL=((KA=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(lL)).\u0275fac=function(e){return new(e||KA)(Mo(sL),Mo(js))},KA.\u0275dir=Ct({type:KA,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Cs]}),KA),uL=((QA=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(lL)).\u0275fac=function(e){return new(e||QA)(Mo(sL),Mo(js))},QA.\u0275dir=Ct({type:QA,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[Cs]}),QA),dL=((GA=function(){function e(t,n){_classCallCheck(this,e),this.template=t,this._differs=n}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof fL?e.headerCell.template:this instanceof mL?e.footerCell.template:e.cell.template}}]),e}()).\u0275fac=function(e){To()},GA.\u0275dir=Ct({type:GA,features:[As]}),GA),hL=BA(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(dL)),fL=(($A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i))._table=a,r}return _createClass(n,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(hL)).\u0275fac=function(e){return new(e||$A)(Mo(fl),Mo(ll),Mo(nL,8))},$A.\u0275dir=Ct({type:$A,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Cs,As]}),$A),pL=BA(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(dL)),mL=((tL=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i))._table=a,r}return _createClass(n,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(pL)).\u0275fac=function(e){return new(e||tL)(Mo(fl),Mo(ll),Mo(nL,8))},tL.\u0275dir=Ct({type:tL,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Cs,As]}),tL),_L=((eL=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e,i))._table=a,r}return n}(dL)).\u0275fac=function(e){return new(e||eL)(Mo(fl),Mo(ll),Mo(nL,8))},eL.\u0275dir=Ct({type:eL,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Cs]}),eL),gL=((ZA=function(){function e(t){_classCallCheck(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return _createClass(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}()).\u0275fac=function(e){return new(e||ZA)(Mo(ml))},ZA.\u0275dir=Ct({type:ZA,selectors:[["","cdkCellOutlet",""]]}),ZA.mostRecentCellOutlet=null,ZA),vL=((XA=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||XA)},XA.\u0275cmp=gt({type:XA,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Yo(0,0)},directives:[gL],encapsulation:2}),XA),yL=((JA=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||JA)},JA.\u0275cmp=gt({type:JA,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Yo(0,0)},directives:[gL],encapsulation:2}),JA),kL=["top","bottom","left","right"],bL=function(){function e(t,n,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._isBrowser=a}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,t);for(var r=0;r<a.children.length;r++)this._removeStickyStyle(a.children[r],t)}}}catch(o){i.e(o)}finally{i.f()}}},{key:"updateStickyColumns",value:function(e,t,n){var i=t.some((function(e){return e}))||n.some((function(e){return e}));if(e.length&&i&&this._isBrowser){var a,r=e[0],o=r.children.length,s=this._getCellWidths(r),l=this._getStickyStartColumnPositions(s,t),c=this._getStickyEndColumnPositions(s,n),u="rtl"===this.direction,d=_createForOfIteratorHelper(e);try{for(d.s();!(a=d.n()).done;)for(var h=a.value,f=0;f<o;f++){var p=h.children[f];t[f]&&this._addStickyStyle(p,u?"right":"left",l[f]),n[f]&&this._addStickyStyle(p,u?"left":"right",c[f])}}catch(m){d.e(m)}finally{d.f()}}}},{key:"stickRows",value:function(e,t,n){if(this._isBrowser)for(var i="bottom"===n?e.reverse():e,a=0,r=0;r<i.length;r++)if(t[r]){var o=i[r];if(this._isNativeHtmlTable)for(var s=0;s<o.children.length;s++)this._addStickyStyle(o.children[s],n,a);else this._addStickyStyle(o,n,a);if(r===i.length-1)return;a+=o.getBoundingClientRect().height}}},{key:"updateStickyFooterContainer",value:function(e,t){if(this._isNativeHtmlTable){var n=e.querySelector("tfoot");t.some((function(e){return!e}))?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)}}},{key:"_removeStickyStyle",value:function(e,t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.style[a]=""}}catch(r){i.e(r)}finally{i.f()}e.style.zIndex=this._getCalculatedZIndex(e),kL.some((function(t){return!!e.style[t]}))||(e.style.position="",e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n){e.classList.add(this._stickCellCss),e.style[t]="".concat(n,"px"),e.style.cssText+="position: -webkit-sticky; position: sticky; ",e.style.zIndex=this._getCalculatedZIndex(e)}},{key:"_getCalculatedZIndex",value:function(e){var t,n={top:100,bottom:10,left:1,right:1},i=0,a=_createForOfIteratorHelper(kL);try{for(a.s();!(t=a.n()).done;){var r=t.value;e.style[r]&&(i+=n[r])}}catch(o){a.e(o)}finally{a.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(e){for(var t=[],n=e.children,i=0;i<n.length;i++)t.push(n[i].getBoundingClientRect().width);return t}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,a=0;a<e.length;a++)t[a]&&(n[a]=i,i+=e[a]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,a=e.length;a>0;a--)t[a]&&(n[a]=i,i+=e[a]);return n}}]),e}();function wL(e){return Error('Could not find column with id "'.concat(e,'".'))}var CL,DL,SL,ML,xL=((ML=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||ML)(Mo(ml),Mo(js))},ML.\u0275dir=Ct({type:ML,selectors:[["","rowOutlet",""]]}),ML),TL=((SL=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||SL)(Mo(ml),Mo(js))},SL.\u0275dir=Ct({type:SL,selectors:[["","headerRowOutlet",""]]}),SL),AL=((DL=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||DL)(Mo(ml),Mo(js))},DL.\u0275dir=Ct({type:DL,selectors:[["","footerRowOutlet",""]]}),DL),LL=((CL=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=r,this._platform=s,this._onDestroy=new T,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new av({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),uM(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;t.forEachOperation((function(t,i,a){if(null==t.previousIndex)e._insertRow(t.item,a);else if(null==a)n.remove(i);else{var r=n.get(i);n.move(r,a)}})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){n.get(e.currentIndex).context.$implicit=e.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(e){this._customHeaderRowDefs=new Set([e]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(e){this._customFooterRowDefs=new Set([e]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(n),_toConsumableArray(i)),["left","right"]),t.forEach((function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])})),this._rowDefs.forEach((function(t){for(var i=[],a=0;a<n.length;a++)e._renderRows[a].rowDef===t&&i.push(n[a]);e._addStickyColumnStyles(i,t)})),i.forEach((function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])})),Array.from(this._columnDefsByName.values()).forEach((function(e){return e.resetStickyChanged()}))}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],a=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var r=0;r<a.length;r++){var o=a[r],s=this._cachedRenderRowsMap.get(o.data);s.has(o.rowDef)?s.get(o.rowDef).push(o):s.set(o.rowDef,[o]),e.push(o)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map((function(i){var a=n&&n.has(i)?n.get(i):[];if(a.length){var r=a.shift();return r.dataIndex=t,r}return{data:e,rowDef:i,dataIndex:t}}))}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),IL(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(t){if(e._columnDefsByName.has(t.name))throw Error('Duplicate column definition name provided: "'.concat(t.name,'".'));e._columnDefsByName.set(t.name,t)}))}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=IL(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=IL(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=IL(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter((function(e){return!e.when}));if(!this.multiTemplateDataRows&&e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(e){this._data=[],uM(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e=this;if(this.dataSource){var t,n;if(uM(this.dataSource)?t=this.dataSource.connect(this):(n=this.dataSource)&&(n instanceof w||"function"==typeof n.lift&&"function"==typeof n.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=mu(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe($S(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,n){return e._renderRow(e._headerRowOutlet,t,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,n){return e._renderRow(e._footerRowOutlet,t,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map((function(e){var t=n._columnDefsByName.get(e);if(!t)throw wL(e);return t})),a=i.map((function(e){return e.sticky})),r=i.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,a,r)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter((function(n){return!n.when||n.when(t,e)}));else{var i=this._rowDefs.find((function(n){return n.when&&n.when(t,e)}))||this._defaultRowDef;i&&n.push(i)}if(!n.length)throw function(e){return Error("Could not find a matching row definition for the"+"provided row data: ".concat(JSON.stringify(e)))}(e);return n}},{key:"_insertRow",value:function(e,t){this._renderRow(this._rowOutlet,e.rowDef,t,{$implicit:e.data})}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.viewContainer.createEmbeddedView(t.template,i,n);var a,r=_createForOfIteratorHelper(this._getCellTemplates(t));try{for(r.s();!(a=r.n()).done;){var o=a.value;gL.mostRecentCellOutlet&&gL.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i)}}catch(s){r.e(s)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,(function(n){var i=t._columnDefsByName.get(n);if(!i)throw wL(n);return e.extractCellTemplate(i)})):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,n=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];t<n.length;t++){var i=n[t],a=this._document.createElement(i.tag);a.setAttribute("role","rowgroup"),a.appendChild(i.outlet.elementRef.nativeElement),e.appendChild(a)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new bL(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:mu()).pipe($S(this._onDestroy)).subscribe((function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()}))}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter((function(e){return!e._table||e._table===t}))}},{key:"trackBy",get:function(){return this._trackByFn},set:function(e){Si()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),".")),this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=iw(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}}]),e}()).\u0275fac=function(e){return new(e||CL)(Mo(ll),Mo(jr),Mo(js),xo("role"),Mo(pC,8),Mo(Cu),Mo(mw))},CL.\u0275cmp=gt({type:CL,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,sL,!0),lc(n,_L,!0),lc(n,fL,!0),lc(n,mL,!0)),2&e&&(ac(i=dc())&&(t._contentColumnDefs=i),ac(i=dc())&&(t._contentRowDefs=i),ac(i=dc())&&(t._contentHeaderRowDefs=i),ac(i=dc())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;1&e&&(rc(xL,!0),rc(TL,!0),rc(AL,!0)),2&e&&(ac(n=dc())&&(t._rowOutlet=n.first),ac(n=dc())&&(t._headerRowOutlet=n.first),ac(n=dc())&&(t._footerRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[Vs([{provide:nL,useExisting:CL}])],ngContentSelectors:NA,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(Go(HA),Qo(0),Yo(1,0),Yo(2,1),Yo(3,2))},directives:[TL,xL,AL],encapsulation:2}),CL);function IL(e,t){return e.concat(Array.from(t))}var EL,OL,RL,PL=((RL=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:RL}),RL.\u0275inj=me({factory:function(e){return new(e||RL)}}),RL),YL=((OL=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||OL)(Mo(fl))},OL.\u0275dir=Ct({type:OL,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),OL),FL=((EL=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:EL}),EL.\u0275inj=me({factory:function(e){return new(e||EL)},providers:[cC,YL]}),EL),qL=["underline"],VL=["connectionContainer"],HL=["inputContainer"],NL=["label"];function BL(e,t){1&e&&(Ro(0),Io(1,"div",14),Oo(2,"div",15),Oo(3,"div",16),Oo(4,"div",17),Eo(),Io(5,"div",18),Oo(6,"div",15),Oo(7,"div",16),Oo(8,"div",17),Eo(),Po())}function jL(e,t){1&e&&(Io(0,"div",19),Qo(1,1),Eo())}function zL(e,t){if(1&e&&(Ro(0),Qo(1,2),Io(2,"span"),_s(3),Eo(),Po()),2&e){var n=Uo(2);ma(3),gs(n._control.placeholder)}}function UL(e,t){1&e&&Qo(0,3,["*ngSwitchCase","true"])}function WL(e,t){1&e&&(Io(0,"span",23),_s(1," *"),Eo())}function GL(e,t){if(1&e){var n=Fo();Io(0,"label",20,21),Ho("cdkObserveContent",(function(){return en(n),Uo().updateOutlineGap()})),Do(2,zL,4,1,"ng-container",12),Do(3,UL,1,0,void 0,12),Do(4,WL,2,0,"span",22),Eo()}if(2&e){var i=Uo();rs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ao("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),wo("for",i._control.id)("aria-owns",i._control.id),ma(2),Ao("ngSwitchCase",!1),ma(1),Ao("ngSwitchCase",!0),ma(1),Ao("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function QL(e,t){1&e&&(Io(0,"div",24),Qo(1,4),Eo())}function KL(e,t){if(1&e&&(Io(0,"div",25,26),Oo(2,"span",27),Eo()),2&e){var n=Uo();ma(2),rs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function $L(e,t){1&e&&(Io(0,"div"),Qo(1,5),Eo()),2&e&&Ao("@transitionMessages",Uo()._subscriptAnimationState)}function JL(e,t){if(1&e&&(Io(0,"div",31),_s(1),Eo()),2&e){var n=Uo(2);Ao("id",n._hintLabelId),ma(1),gs(n.hintLabel)}}function XL(e,t){if(1&e&&(Io(0,"div",28),Do(1,JL,2,2,"div",29),Qo(2,6),Oo(3,"div",30),Qo(4,7),Eo()),2&e){var n=Uo();Ao("@transitionMessages",n._subscriptAnimationState),ma(1),Ao("ngIf",n.hintLabel)}}var ZL,eI,tI=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],nI=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],iI=0,aI=((ZL=function e(){_classCallCheck(this,e),this.id="mat-error-".concat(iI++)}).\u0275fac=function(e){return new(e||ZL)},ZL.\u0275dir=Ct({type:ZL,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&wo("id",t.id)},inputs:{id:"id"}}),ZL),rI={transitionMessages:Nf("transitionMessages",[Wf("enter",Uf({opacity:1,transform:"translateY(0%)"})),Qf("void => enter",[Uf({opacity:0,transform:"translateY(-100%)"}),Bf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},oI=((eI=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||eI)},eI.\u0275dir=Ct({type:eI}),eI);function sI(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var lI,cI,uI,dI,hI,fI,pI,mI=0,_I=((hI=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-".concat(mI++)}).\u0275fac=function(e){return new(e||hI)},hI.\u0275dir=Ct({type:hI,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(wo("id",t.id)("align",null),rs("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),hI),gI=((dI=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dI)},dI.\u0275dir=Ct({type:dI,selectors:[["mat-label"]]}),dI),vI=((uI=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||uI)},uI.\u0275dir=Ct({type:uI,selectors:[["mat-placeholder"]]}),uI),yI=((cI=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cI)},cI.\u0275dir=Ct({type:cI,selectors:[["","matPrefix",""]]}),cI),kI=((lI=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lI)},lI.\u0275dir=Ct({type:lI,selectors:[["","matSuffix",""]]}),lI),bI=0,wI=TC((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),CI=new je("MAT_FORM_FIELD_DEFAULT_OPTIONS"),DI=new je("MatFormField"),SI=((pI=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l,c){var u;return _classCallCheck(this,n),(u=t.call(this,e))._elementRef=e,u._changeDetectorRef=i,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=l,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new T,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(bI++),u._labelId="mat-form-field-label-".concat(bI++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Vv(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe($S(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe($S(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),K(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Vv(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Vv(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe($S(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,qS(this._label.nativeElement,"transitionend").pipe(Av(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(e||n.hintLabel)throw sI("start");e=i}else if("end"===i.align){if(t)throw sI("end");t=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,n=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,a=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,l=this._getStartEnd(o),c=this._getStartEnd(e.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(e.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(p){d.e(p)}finally{d.f()}t=Math.abs(c-l)-5,n=u>0?.75*u+10:0}for(var h=0;h<a.length;h++)a[h].style.width="".concat(t,"px");for(var f=0;f<r.length;f++)r[f].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}},{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=iw(e)}},{key:"_shouldAlwaysFloat",get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",get:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"_labelChild",get:function(){return this._labelChildNonStatic||this._labelChildStatic}}]),n}(wI)).\u0275fac=function(e){return new(e||pI)(Mo(js),Mo(jr),Mo(xD,8),Mo(pC,8),Mo(CI,8),Mo(mw),Mo(qc),Mo(h_,8))},pI.\u0275cmp=gt({type:pI,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,oI,!0),cc(n,oI,!0),lc(n,gI,!0),cc(n,gI,!0),lc(n,vI,!0),lc(n,aI,!0),lc(n,_I,!0),lc(n,yI,!0),lc(n,kI,!0)),2&e&&(ac(i=dc())&&(t._controlNonStatic=i.first),ac(i=dc())&&(t._controlStatic=i.first),ac(i=dc())&&(t._labelChildNonStatic=i.first),ac(i=dc())&&(t._labelChildStatic=i.first),ac(i=dc())&&(t._placeholderChild=i.first),ac(i=dc())&&(t._errorChildren=i),ac(i=dc())&&(t._hintChildren=i),ac(i=dc())&&(t._prefixChildren=i),ac(i=dc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(oc(qL,!0),rc(VL,!0),oc(HL,!0),oc(NL,!0)),2&e&&(ac(n=dc())&&(t.underlineRef=n.first),ac(n=dc())&&(t._connectionContainerRef=n.first),ac(n=dc())&&(t._inputContainerRef=n.first),ac(n=dc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&rs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat)("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Vs([{provide:DI,useExisting:pI}]),Cs],ngContentSelectors:nI,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(Go(tI),Io(0,"div",0),Io(1,"div",1,2),Ho("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),Do(3,BL,9,0,"ng-container",3),Do(4,jL,2,0,"div",4),Io(5,"div",5,6),Qo(7),Io(8,"span",7),Do(9,GL,5,16,"label",8),Eo(),Eo(),Do(10,QL,2,0,"div",9),Eo(),Do(11,KL,3,4,"div",10),Io(12,"div",11),Do(13,$L,2,1,"div",12),Do(14,XL,5,2,"div",13),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf","outline"==t.appearance),ma(1),Ao("ngIf",t._prefixChildren.length),ma(5),Ao("ngIf",t._hasFloatingLabel()),ma(1),Ao("ngIf",t._suffixChildren.length),ma(1),Ao("ngIf","outline"!=t.appearance),ma(1),Ao("ngSwitch",t._getDisplayedMessages()),ma(1),Ao("ngSwitchCase","error"),ma(1),Ao("ngSwitchCase","hint"))},directives:[Ed,Nd,Bd,Tw],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[rI.transitionMessages]},changeDetection:0}),pI),MI=((fI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:fI}),fI.\u0275inj=me({factory:function(e){return new(e||fI)},imports:[[uh,Aw]]}),fI);function xI(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jb,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new EI(i,n))}}var TI,AI,LI,II,EI=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new OI(e,this.delay,this.scheduler))}}]),e}(),OI=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).delay=i,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new RI(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(rM.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(rM.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,a=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(a);if(n.length>0){var r=Math.max(0,n[0].time-i.now());this.schedule(e,r)}else this.unsubscribe(),t.active=!1}}]),n}(m),RI=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},PI={provide:new je("mat-autocomplete-scroll-strategy"),deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},YI=((AI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:AI}),AI.\u0275inj=me({factory:function(e){return new(e||AI)},providers:[PI],imports:[[MD,Dx,MC,uh],MD,MC]}),AI),FI=((TI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:TI}),TI.\u0275inj=me({factory:function(e){return new(e||TI)},imports:[[hC,MC]]}),TI),qI=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new VI(e,this.total))}}]),e}(),VI=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).total=i,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(m),HI=new Set,NI=((II=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BI}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!HI.has(e))try{LI||((LI=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(LI)),LI.sheet&&(LI.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),HI.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||II)(Xe(mw))},II.\u0275prov=fe({factory:function(){return new II(Xe(mw))},token:II,providedIn:"root"}),II);function BI(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var jI,zI=((jI=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new T}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return UI(ow(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,n=sv(UI(ow(e)).map((function(e){return t._registerQuery(e).observable})));return(n=qv(n.pipe(Av(1)),n.pipe((function(e){return e.lift(new qI(1))}),Xb(0)))).pipe(V((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new w((function(e){var i=function(n){return t._zone.run((function(){return e.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Vv(n),V((function(t){return{query:e,matches:t.matches}})),$S(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||jI)(Xe(NI),Xe(qc))},jI.\u0275prov=fe({factory:function(){return new jI(Xe(NI),Xe(qc))},token:jI,providedIn:"root"}),jI);function UI(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var WI,GI,QI,KI,$I,JI,XI,ZI,eE,tE,nE,iE,aE,rE=((QI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:QI}),QI.\u0275inj=me({factory:function(e){return new(e||QI)},imports:[[Dx,MC,FM],MC]}),QI),oE=((GI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:GI}),GI.\u0275inj=me({factory:function(e){return new(e||GI)},imports:[[MC,fD],MC]}),GI),sE=((WI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:WI}),WI.\u0275inj=me({factory:function(e){return new(e||WI)},imports:[[MC],MC]}),WI),lE=["input"],cE=function(){return{enterDuration:150}},uE=["*"],dE=new je("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),hE=new je("mat-checkbox-click-action"),fE=0,pE={provide:b_,useExisting:xe((function(){return gE})),multi:!0},mE=function e(){_classCallCheck(this,e)},_E=LC(TC(AC(xC((function e(t){_classCallCheck(this,e),this._elementRef=t}))))),gE=((KI=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l,c){var u;return _classCallCheck(this,n),(u=t.call(this,e))._changeDetectorRef=i,u._focusMonitor=a,u._ngZone=r,u._clickAction=s,u._animationMode=l,u._options=c,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++fE),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Gl,u.indeterminateChange=new Gl,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||{},u._options.color&&(u.color=u._options.color),u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){u._onTouched(),i.markForCheck()}))})),u._clickAction=u._clickAction||u._options.clickAction,u}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new mE;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=iw(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=iw(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(_E)).\u0275fac=function(e){return new(e||KI)(Mo(js),Mo(jr),Mo(cC),Mo(qc),xo("tabindex"),Mo(hE,8),Mo(h_,8),Mo(dE,8))},KI.\u0275cmp=gt({type:KI,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(oc(lE,!0),oc(hD,!0)),2&e&&(ac(n=dc())&&(t._inputElement=n.first),ac(n=dc())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(ks("id",t.id),wo("tabindex",null),rs("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Vs([pE]),Cs],ngContentSelectors:uE,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(Go(),Io(0,"label",0,1),Io(2,"div",2),Io(3,"input",3,4),Ho("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),Eo(),Io(5,"div",5),Oo(6,"div",6),Eo(),Oo(7,"div",7),Io(8,"div",8),Dn(),Io(9,"svg",9),Oo(10,"path",10),Eo(),Sn(),Oo(11,"div",11),Eo(),Eo(),Io(12,"span",12,13),Ho("cdkObserveContent",(function(){return t._onLabelTextChange()})),Io(14,"span",14),_s(15,"\xa0"),Eo(),Qo(16),Eo(),Eo()),2&e){var n=So(1),i=So(13);wo("for",t.inputId),ma(2),rs("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),ma(1),Ao("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),wo("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),ma(2),Ao("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Ol(18,cE))}},directives:[hD,Tw],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),KI),vE={provide:q_,useExisting:xe((function(){return yE})),multi:!0},yE=(($I=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Xg)).\u0275fac=function(e){return kE(e||$I)},$I.\u0275dir=Ct({type:$I,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[Vs([vE]),Cs]}),$I),kE=ci(yE),bE=((XI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:XI}),XI.\u0275inj=me({factory:function(e){return new(e||XI)}}),XI),wE=((JI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:JI}),JI.\u0275inj=me({factory:function(e){return new(e||JI)},imports:[[fD,MC,Aw,bE],MC,bE]}),JI),CE=new je("mat-chips-default-options"),DE={separatorKeyCodes:[13]},SE=((ZI=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:ZI}),ZI.\u0275inj=me({factory:function(e){return new(e||ZI)},providers:[iD,{provide:CE,useValue:DE}]}),ZI),ME=yw({passive:!0}),xE=((nE=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return uv;var n=lw(e),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var a=new T,r="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(r)&&(n.classList.remove(r),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!1})}))):(n.classList.add(r),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",o,ME),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:a,unlisten:function(){n.removeEventListener("animationstart",o,ME)}}),a.asObservable()}},{key:"stopMonitoring",value:function(e){var t=lw(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,n){return e.stopMonitoring(n)}))}}]),e}()).\u0275fac=function(e){return new(e||nE)(Xe(mw),Xe(qc))},nE.\u0275prov=fe({factory:function(){return new nE(Xe(mw),Xe(qc))},token:nE,providedIn:"root"}),nE),TE=((tE=function(){function e(t,n,i,a){_classCallCheck(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new T,this._enabled=!0,this._previousMinRows=-1,this._document=a,this._textareaElement=this._elementRef.nativeElement}return _createClass(e,[{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){qS(e._getWindow(),"resize").pipe(KS(16),$S(e._destroyed)).subscribe((function(){return e.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var a=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height="".concat(n.scrollHeight-4,"px"),n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(n)})):setTimeout((function(){return e._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}},{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=aw(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=aw(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=iw(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}}]),e}()).\u0275fac=function(e){return new(e||tE)(Mo(js),Mo(mw),Mo(qc),Mo(Cu,8))},tE.\u0275dir=Ct({type:tE,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&Ho("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),tE),AE=((eE=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:eE}),eE.\u0275inj=me({factory:function(e){return new(e||eE)},imports:[[_w]]}),eE),LE=new je("MAT_INPUT_VALUE_ACCESSOR"),IE=["button","checkbox","file","hidden","image","radio","range","reset","submit"],EE=0,OE=IC((function e(t,n,i,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),RE=((aE=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l,c,u){var d;_classCallCheck(this,n),(d=t.call(this,s,r,o,a))._elementRef=e,d._platform=i,d.ngControl=a,d._autofillMonitor=c,d._uid="mat-input-".concat(EE++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new T,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return vw().has(e)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=l||h,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(IE.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=iw(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&vw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=iw(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(OE)).\u0275fac=function(e){return new(e||aE)(Mo(js),Mo(mw),Mo(O_,10),Mo(Bg,8),Mo(Qg,8),Mo(iD),Mo(LE,10),Mo(xE),Mo(qc))},aE.\u0275dir=Ct({type:aE,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&Ho("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(ks("disabled",t.disabled)("required",t.required),wo("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),rs("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Vs([{provide:oI,useExisting:aE}]),Cs,As]}),aE),PE=((iE=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:iE}),iE.\u0275inj=me({factory:function(e){return new(e||iE)},providers:[iD],imports:[[AE,MI],AE,MI]}),iE),YE=["mat-calendar-body",""];function FE(e,t){if(1&e&&(Io(0,"tr",2),Io(1,"td",3),_s(2),Eo(),Eo()),2&e){var n=Uo();ma(1),as("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),wo("colspan",n.numCols),ma(1),vs(" ",n.label," ")}}function qE(e,t){if(1&e&&(Io(0,"td",7),_s(1),Eo()),2&e){var n=Uo(2);as("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),wo("colspan",n._firstRowOffset),ma(1),vs(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function VE(e,t){if(1&e){var n=Fo();Io(0,"td",8),Ho("click",(function(){en(n);var e=t.$implicit;return Uo(2)._cellClicked(e)})),Io(1,"div",9),_s(2),Eo(),Eo()}if(2&e){var i=t.$implicit,a=t.index,r=Uo().index,o=Uo();as("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),rs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(r,a)),Ao("ngClass",i.cssClasses)("tabindex",o._isActiveCell(r,a)?0:-1),wo("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o.selectedValue===i.value),ma(1),rs("mat-calendar-body-selected",o.selectedValue===i.value)("mat-calendar-body-today",o.todayValue===i.value),ma(1),vs(" ",i.displayValue," ")}}function HE(e,t){if(1&e&&(Io(0,"tr",4),Do(1,qE,2,6,"td",5),Do(2,VE,3,20,"td",6),Eo()),2&e){var n=t.$implicit,i=t.index,a=Uo();ma(1),Ao("ngIf",0===i&&a._firstRowOffset),ma(1),Ao("ngForOf",n)}}function NE(e,t){if(1&e&&(Io(0,"th",5),_s(1),Eo()),2&e){var n=t.$implicit;wo("aria-label",n.long),ma(1),gs(n.narrow)}}var BE=["*"];function jE(e,t){}function zE(e,t){if(1&e){var n=Fo();Io(0,"mat-month-view",5),Ho("activeDateChange",(function(e){return en(n),Uo().activeDate=e}))("selectedChange",(function(e){return en(n),Uo()._dateSelected(e)}))("_userSelection",(function(){return en(n),Uo()._userSelected()})),Eo()}if(2&e){var i=Uo();Ao("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function UE(e,t){if(1&e){var n=Fo();Io(0,"mat-year-view",6),Ho("activeDateChange",(function(e){return en(n),Uo().activeDate=e}))("monthSelected",(function(e){return en(n),Uo()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return en(n),Uo()._goToDateInView(e,"month")})),Eo()}if(2&e){var i=Uo();Ao("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function WE(e,t){if(1&e){var n=Fo();Io(0,"mat-multi-year-view",7),Ho("activeDateChange",(function(e){return en(n),Uo().activeDate=e}))("yearSelected",(function(e){return en(n),Uo()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return en(n),Uo()._goToDateInView(e,"year")})),Eo()}if(2&e){var i=Uo();Ao("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var GE=["button"];function QE(e,t){1&e&&(Dn(),Io(0,"svg",3),Oo(1,"path",4),Eo())}var KE=[[["","matDatepickerToggleIcon",""]]],$E=["[matDatepickerToggleIcon]"];function JE(e){return Error("MatDatepicker: No provider found for ".concat(e,". You must import one of the following ")+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var XE,ZE,eO,tO,nO=((XE=function(){function e(){_classCallCheck(this,e),this.changes=new T,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return _createClass(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}()).\u0275fac=function(e){return new(e||XE)},XE.\u0275prov=fe({factory:function(){return new XE},token:XE,providedIn:"root"}),XE),iO=function e(t,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_classCallCheck(this,e),this.value=t,this.displayValue=n,this.ariaLabel=i,this.enabled=a,this.cssClasses=r},aO=((tO=function(){function e(t,n){_classCallCheck(this,e),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Gl}return _createClass(e,[{key:"_cellClicked",value:function(e){e.enabled&&this.selectedValueChange.emit(e.value)}},{key:"ngOnChanges",value:function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!t&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"_isActiveCell",value:function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){var t=e._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()}))}))}}]),e}()).\u0275fac=function(e){return new(e||tO)(Mo(js),Mo(qc))},tO.\u0275cmp=gt({type:tO,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[As],attrs:YE,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator","role","button",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell","role","button",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(e,t){1&e&&(Do(0,FE,3,6,"tr",0),Do(1,HE,3,2,"tr",1)),2&e&&(Ao("ngIf",t._firstRowOffset<t.labelMinRequiredCells),ma(1),Ao("ngForOf",t.rows))},directives:[Ed,Ld,Td],styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),tO),rO=((eO=function(){function e(t,n,i,a){if(_classCallCheck(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=a,this._rerenderSubscription=h.EMPTY,this.selectedChange=new Gl,this._userSelection=new Gl,this.activeDateChange=new Gl,!this._dateAdapter)throw JE("DateAdapter");if(!this._dateFormats)throw JE("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(e){if(this._selectedDate!=e){var t=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(t,n,e);this.selectedChange.emit(i)}this._userSelection.emit()}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),e.preventDefault()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_initWeekdays",value:function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(e,n){return{long:e,narrow:t[n]}}));this._weekdays=n.slice(e).concat(n.slice(0,e))}},{key:"_createWeekCells",value:function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);var a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(a),o=this._dateAdapter.format(a,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(a):void 0;this._weeks[this._weeks.length-1].push(new iO(n+1,t[n],o,r,s))}}},{key:"_shouldEnableDate",value:function(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}},{key:"_getDateInCurrentMonth",value:function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}},{key:"_hasSameMonthAndYear",value:function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}}]),e}()).\u0275fac=function(e){return new(e||eO)(Mo(jr),Mo(YC,8),Mo(PC,8),Mo(pC,8))},eO.\u0275cmp=gt({type:eO,selectors:[["mat-month-view"]],viewQuery:function(e,t){var n;1&e&&oc(aO,!0),2&e&&ac(n=dc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(Io(0,"table",0),Io(1,"thead",1),Io(2,"tr"),Do(3,NE,2,2,"th",2),Eo(),Io(4,"tr"),Oo(5,"th",3),Eo(),Eo(),Io(6,"tbody",4),Ho("selectedValueChange",(function(e){return t._dateSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),Eo(),Eo()),2&e&&(ma(3),Ao("ngForOf",t._weekdays),ma(3),Ao("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("selectedValue",t._selectedDate)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[Ld,aO],encapsulation:2,changeDetection:0}),eO),oO=((ZE=function(){function e(t,n,i){if(_classCallCheck(this,e),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=h.EMPTY,this.selectedChange=new Gl,this.yearSelected=new Gl,this.activeDateChange=new Gl,!this._dateAdapter)throw JE("DateAdapter");this._activeDate=this._dateAdapter.today()}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-lO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map((function(t){return e._createCellForYear(t)}))),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(e){this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var t=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));this.selectedChange.emit(this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-lO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_getActiveCell",value:function(){return lO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(e){var t=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return new iO(e,t,t,this._shouldEnableYear(e))}},{key:"_shouldEnableYear",value:function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),sO(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}}]),e}()).\u0275fac=function(e){return new(e||ZE)(Mo(jr),Mo(PC,8),Mo(pC,8))},ZE.\u0275cmp=gt({type:ZE,selectors:[["mat-multi-year-view"]],viewQuery:function(e,t){var n;1&e&&oc(aO,!0),2&e&&ac(n=dc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:6,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","selectedValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(Io(0,"table",0),Io(1,"thead",1),Io(2,"tr"),Oo(3,"th",2),Eo(),Eo(),Io(4,"tbody",3),Ho("selectedValueChange",(function(e){return t._yearSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),Eo(),Eo()),2&e&&(ma(4),Ao("rows",t._years)("todayValue",t._todayYear)("selectedValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},directives:[aO],encapsulation:2,changeDetection:0}),ZE);function sO(e,t,n,i,a){var r=e.getYear(t),o=e.getYear(n),s=cO(e,i,a);return Math.floor((r-s)/24)===Math.floor((o-s)/24)}function lO(e,t,n,i){return((e.getYear(t)-cO(e,n,i))%24+24)%24}function cO(e,t,n){var i=0;return n?i=e.getYear(n)-24+1:t&&(i=e.getYear(t)),i}var uO,dO,hO,fO,pO,mO,_O,gO,vO,yO,kO,bO,wO,CO=((hO=function(){function e(t,n,i,a){if(_classCallCheck(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=a,this._rerenderSubscription=h.EMPTY,this.selectedChange=new Gl,this.monthSelected=new Gl,this.activeDateChange=new Gl,!this._dateAdapter)throw JE("DateAdapter");if(!this._dateFormats)throw JE("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_monthSelected",value:function(e){var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(t);var n=this._dateAdapter.getNumDaysInMonth(t);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){var e=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((function(n){return n.map((function(n){return e._createCellForMonth(n,t[n])}))})),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_getMonthInCurrentYear",value:function(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}},{key:"_createCellForMonth",value:function(e,t){var n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),this._dateFormats.display.monthYearA11yLabel);return new iO(e,t.toLocaleUpperCase(),n,this._shouldEnableMonth(e))}},{key:"_shouldEnableMonth",value:function(e){var t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(var n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}},{key:"_isYearAndMonthAfterMaxDate",value:function(e,t){if(this.maxDate){var n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}}]),e}()).\u0275fac=function(e){return new(e||hO)(Mo(jr),Mo(YC,8),Mo(PC,8),Mo(pC,8))},hO.\u0275cmp=gt({type:hO,selectors:[["mat-year-view"]],viewQuery:function(e,t){var n;1&e&&oc(aO,!0),2&e&&ac(n=dc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:8,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(Io(0,"table",0),Io(1,"thead",1),Io(2,"tr"),Oo(3,"th",2),Eo(),Eo(),Io(4,"tbody",3),Ho("selectedValueChange",(function(e){return t._monthSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),Eo(),Eo()),2&e&&(ma(4),Ao("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("selectedValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},directives:[aO],encapsulation:2,changeDetection:0}),hO),DO=((dO=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._intl=t,this.calendar=n,this._dateAdapter=i,this._dateFormats=a,this.calendar.stateChanges.subscribe((function(){return r.markForCheck()}))}return _createClass(e,[{key:"currentPeriodClicked",value:function(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}},{key:"previousClicked",value:function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}},{key:"nextClicked",value:function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}},{key:"previousEnabled",value:function(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}},{key:"nextEnabled",value:function(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}},{key:"_isSameView",value:function(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):sO(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}},{key:"periodButtonText",get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var e=this._dateAdapter.getYear(this.calendar.activeDate)-lO(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)}},{key:"periodButtonLabel",get:function(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}},{key:"prevButtonLabel",get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}},{key:"nextButtonLabel",get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}}]),e}()).\u0275fac=function(e){return new(e||dO)(Mo(nO),Mo(xe((function(){return SO}))),Mo(PC,8),Mo(YC,8),Mo(jr))},dO.\u0275cmp=gt({type:dO,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:BE,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Io(1,"div",1),Io(2,"button",2),Ho("click",(function(){return t.currentPeriodClicked()})),_s(3),Oo(4,"div",3),Eo(),Oo(5,"div",4),Qo(6),Io(7,"button",5),Ho("click",(function(){return t.previousClicked()})),Eo(),Io(8,"button",6),Ho("click",(function(){return t.nextClicked()})),Eo(),Eo(),Eo()),2&e&&(ma(2),wo("aria-label",t.periodButtonLabel),ma(1),vs(" ",t.periodButtonText," "),ma(1),rs("mat-calendar-invert","month"!=t.calendar.currentView),ma(3),Ao("disabled",!t.previousEnabled()),wo("aria-label",t.prevButtonLabel),ma(1),Ao("disabled",!t.nextEnabled()),wo("aria-label",t.nextButtonLabel))},directives:[bS,Zw],encapsulation:2,changeDetection:0}),dO),SO=((uO=function(){function e(t,n,i,a){var r=this;if(_classCallCheck(this,e),this._dateAdapter=n,this._dateFormats=i,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Gl,this.yearSelected=new Gl,this.monthSelected=new Gl,this._userSelection=new Gl,this.stateChanges=new T,!this._dateAdapter)throw JE("DateAdapter");if(!this._dateFormats)throw JE("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe((function(){a.markForCheck(),r.stateChanges.next()}))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._calendarHeaderPortal=new TM(this.headerComponent||DO),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}},{key:"ngAfterViewChecked",value:function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}},{key:"ngOnChanges",value:function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var n=this._getCurrentViewComponent();n&&(this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()}},{key:"focusActiveCell",value:function(){this._getCurrentViewComponent()._focusActiveCell()}},{key:"updateTodaysDate",value:function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()}},{key:"_dateSelected",value:function(e){e&&!this._dateAdapter.sameDate(e,this.selected)&&this.selectedChange.emit(e)}},{key:"_yearSelectedInMultiYearView",value:function(e){this.yearSelected.emit(e)}},{key:"_monthSelectedInYearView",value:function(e){this.monthSelected.emit(e)}},{key:"_userSelected",value:function(){this._userSelection.emit()}},{key:"_goToDateInView",value:function(e,t){this.activeDate=e,this.currentView=t}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_getCurrentViewComponent",value:function(){return this.monthView||this.yearView||this.multiYearView}},{key:"startAt",get:function(){return this._startAt},set:function(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"activeDate",get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}},{key:"currentView",get:function(){return this._currentView},set:function(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||uO)(Mo(nO),Mo(PC,8),Mo(YC,8),Mo(jr))},uO.\u0275cmp=gt({type:uO,selectors:[["mat-calendar"]],viewQuery:function(e,t){var n;1&e&&(oc(rO,!0),oc(CO,!0),oc(oO,!0)),2&e&&(ac(n=dc())&&(t.monthView=n.first),ac(n=dc())&&(t.yearView=n.first),ac(n=dc())&&(t.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[As],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(Do(0,jE,0,0,"ng-template",0),Io(1,"div",1),Do(2,zE,1,6,"mat-month-view",2),Do(3,UE,1,5,"mat-year-view",3),Do(4,WE,1,5,"mat-multi-year-view",4),Eo()),2&e&&(Ao("cdkPortalOutlet",t._calendarHeaderPortal),ma(1),Ao("ngSwitch",t.currentView),ma(1),Ao("ngSwitchCase","month"),ma(1),Ao("ngSwitchCase","year"),ma(1),Ao("ngSwitchCase","multi-year"))},directives:[RM,uC,Nd,Bd,rO,CO,oO],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),uO),MO={transformPanel:Nf("transformPanel",[Wf("void",Uf({opacity:0,transform:"scale(1, 0.8)"})),Qf("void => enter",Bf("120ms cubic-bezier(0, 0, 0.2, 1)",Uf({opacity:1,transform:"scale(1, 1)"}))),Qf("* => void",Bf("100ms linear",Uf({opacity:0})))]),fadeInCalendar:Nf("fadeInCalendar",[Wf("void",Uf({opacity:0})),Wf("enter",Uf({opacity:1})),Qf("void => *",Bf("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},xO=0,TO=new je("mat-datepicker-scroll-strategy"),AO={provide:TO,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},LO=TC((function e(t){_classCallCheck(this,e),this._elementRef=t})),IO=((pO=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,e))._changeDetectorRef=i,a._animationState="enter",a._animationDone=new T,a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._animationDone.complete()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}]),n}(LO)).\u0275fac=function(e){return new(e||pO)(Mo(js),Mo(jr))},pO.\u0275cmp=gt({type:pO,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var n;1&e&&oc(SO,!0),2&e&&ac(n=dc())&&(t._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&No("@transformPanel.done",(function(){return t._animationDone.next()})),2&e&&(bs("@transformPanel",t._animationState),rs("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Cs],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(e,t){1&e&&(Io(0,"mat-calendar",0),Ho("selectedChange",(function(e){return t.datepicker.select(e)}))("yearSelected",(function(e){return t.datepicker._selectYear(e)}))("monthSelected",(function(e){return t.datepicker._selectMonth(e)}))("_userSelection",(function(){return t.datepicker.close()})),Eo()),2&e&&Ao("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._minDate)("maxDate",t.datepicker._maxDate)("dateFilter",t.datepicker._dateFilter)("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t.datepicker._selected)("dateClass",t.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[SO,Gw,Td],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[MO.transformPanel,MO.fadeInCalendar]},changeDetection:0}),pO),EO=((fO=function(){function e(t,n,i,a,r,o,s,l){if(_classCallCheck(this,e),this._dialog=t,this._overlay=n,this._ngZone=i,this._viewContainerRef=a,this._dateAdapter=o,this._dir=s,this._document=l,this.startView="month",this._touchUi=!1,this.yearSelected=new Gl,this.monthSelected=new Gl,this.openedStream=new Gl,this.closedStream=new Gl,this._opened=!1,this.id="mat-datepicker-".concat(xO++),this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=h.EMPTY,this._disabledChange=new T,this._selectedChanged=new T,!this._dateAdapter)throw JE("DateAdapter");this._scrollStrategy=r}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}},{key:"select",value:function(e){var t=this._selected;this._selected=e,this._dateAdapter.sameDate(t,this._selected)||this._selectedChanged.next(e)}},{key:"_selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"_selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"_registerInput",value:function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(e){return t._selected=e}))}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Av(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_openAsDialog",value:function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(IO,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!0}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}},{key:"_openAsPopup",value:function(){var e=this,t=new TM(IO,this._viewContainerRef);this._destroyPopup(),this._createPopup();var n=this._popupComponentRef=this._popupRef.attach(t);n.instance.datepicker=this,n.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e._popupRef.updatePosition()}))}},{key:"_createPopup",value:function(){var e=this,t=new QM({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),K(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(gu((function(t){return 27===t.keyCode||e._datepickerInput&&t.altKey&&38===t.keyCode})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_createPopupPositionStrategy",value:function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(e){this._color=e}},{key:"touchUi",get:function(){return this._touchUi},set:function(e){this._touchUi=iw(e)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=iw(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))}},{key:"opened",get:function(){return this._opened},set:function(e){e?this.open():this.close()}},{key:"_selected",get:function(){return this._validSelected},set:function(e){this._validSelected=e}},{key:"_minDate",get:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_maxDate",get:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_dateFilter",get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter}}]),e}()).\u0275fac=function(e){return new(e||fO)(Mo(Bx),Mo(vx),Mo(qc),Mo(ml),Mo(TO),Mo(PC,8),Mo(pC,8),Mo(Cu,8))},fO.\u0275cmp=gt({type:fO,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),fO),OO={provide:b_,useExisting:xe((function(){return YO})),multi:!0},RO={provide:q_,useExisting:xe((function(){return YO})),multi:!0},PO=function e(t,n){_classCallCheck(this,e),this.target=t,this.targetElement=n,this.value=this.target.value},YO=((wO=function(){function e(t,n,i,a){var r=this;if(_classCallCheck(this,e),this._elementRef=t,this._dateAdapter=n,this._dateFormats=i,this._formField=a,this.dateChange=new Gl,this.dateInput=new Gl,this._valueChange=new Gl,this._disabledChange=new Gl,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._minValidator=function(e){var t=r._getValidDateOrNull(r._dateAdapter.deserialize(e.value));return!r.min||!t||r._dateAdapter.compareDate(r.min,t)<=0?null:{matDatepickerMin:{min:r.min,actual:t}}},this._maxValidator=function(e){var t=r._getValidDateOrNull(r._dateAdapter.deserialize(e.value));return!r.max||!t||r._dateAdapter.compareDate(r.max,t)>=0?null:{matDatepickerMax:{max:r.max,actual:t}}},this._filterValidator=function(e){var t=r._getValidDateOrNull(r._dateAdapter.deserialize(e.value));return r._dateFilter&&t&&!r._dateFilter(t)?{matDatepickerFilter:!0}:null},this._validator=N_.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw JE("DateAdapter");if(!this._dateFormats)throw JE("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){r.value=r.value}))}return _createClass(e,[{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}},{key:"registerOnValidatorChange",value:function(e){this._validatorOnChange=e}},{key:"validate",value:function(e){return this._validator?this._validator(e):null}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._cvaOnChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_onKeydown",value:function(e){this._datepicker&&e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),e.preventDefault())}},{key:"_onInput",value:function(e){var t=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=!n||this._dateAdapter.isValid(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this._value)?t!==this._lastValueValid&&this._validatorOnChange():(this._value=n,this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new PO(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new PO(this,this._elementRef.nativeElement))}},{key:"_getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"matDatepicker",set:function(e){var t=this;e&&(this._datepicker=e,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(e){t.value=e,t._cvaOnChange(e),t._onTouched(),t.dateInput.emit(new PO(t,t._elementRef.nativeElement)),t.dateChange.emit(new PO(t,t._elementRef.nativeElement))})))}},{key:"matDatepickerFilter",set:function(e){this._dateFilter=e,this._validatorOnChange()}},{key:"value",get:function(){return this._value},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);var t=this.value;this._value=e,this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)}},{key:"min",get:function(){return this._min},set:function(e){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"disabled",get:function(){return!!this._disabled},set:function(e){var t=iw(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t)),t&&this._isInitialized&&n.blur&&n.blur()}}]),e}()).\u0275fac=function(e){return new(e||wO)(Mo(js),Mo(PC,8),Mo(YC,8),Mo(DI,8))},wO.\u0275dir=Ct({type:wO,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(e,t){1&e&&Ho("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)})),2&e&&(ks("disabled",t.disabled),wo("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[Vs([OO,RO,{provide:LE,useExisting:wO}])]}),wO),FO=((bO=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||bO)},bO.\u0275dir=Ct({type:bO,selectors:[["","matDatepickerToggleIcon",""]]}),bO),qO=((kO=function(){function e(t,n,i){_classCallCheck(this,e),this._intl=t,this._changeDetectorRef=n,this._stateChanges=h.EMPTY;var a=Number(i);this.tabIndex=a||0===a?a:null}return _createClass(e,[{key:"ngOnChanges",value:function(e){e.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}},{key:"_watchStateChanges",value:function(){var e=this,t=this.datepicker?this.datepicker._disabledChange:mu(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:mu(),i=this.datepicker?K(this.datepicker.openedStream,this.datepicker.closedStream):mu();this._stateChanges.unsubscribe(),this._stateChanges=K(this._intl.changes,t,n,i).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=iw(e)}}]),e}()).\u0275fac=function(e){return new(e||kO)(Mo(nO),Mo(jr),xo("tabindex"))},kO.\u0275cmp=gt({type:kO,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,FO,!0),2&e&&ac(i=dc())&&(t._customIcon=i.first)},viewQuery:function(e,t){var n;1&e&&oc(GE,!0),2&e&&ac(n=dc())&&(t._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(e,t){1&e&&Ho("focus",(function(){return t._button.focus()})),2&e&&(wo("tabindex",t.disabled?null:-1),rs("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[As],ngContentSelectors:$E,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(Go(KE),Io(0,"button",0,1),Ho("click",(function(e){return t._open(e)})),Do(2,QE,2,0,"svg",2),Qo(3),Eo()),2&e&&(Ao("disabled",t.disabled)("disableRipple",t.disableRipple),wo("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),ma(2),Ao("ngIf",!t._customIcon))},directives:[bS,Ed],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),kO),VO=((yO=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:yO}),yO.\u0275inj=me({factory:function(e){return new(e||yO)},providers:[nO,AO],imports:[[uh,CS,$x,Dx,hC,FM]]}),yO),HO=((vO=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:vO}),vO.\u0275inj=me({factory:function(e){return new(e||vO)},imports:[[MC],MC]}),vO),NO=0,BO=((gO=function(){function e(){_classCallCheck(this,e),this._stateChanges=new T,this._openCloseAllActions=new T,this.id="cdk-accordion-".concat(NO++),this._multi=!1}return _createClass(e,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(e){this.multi&&this._openCloseAllActions.next(e)}},{key:"multi",get:function(){return this._multi},set:function(e){this._multi=iw(e)}}]),e}()).\u0275fac=function(e){return new(e||gO)},gO.\u0275dir=Ct({type:gO,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[As]}),gO),jO=0,zO=((_O=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new Gl,this.opened=new Gl,this.destroyed=new Gl,this.expandedChange=new Gl,this.id="cdk-accordion-child-".concat(jO++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(e,t){a.accordion&&!a.accordion.multi&&a.accordion.id===t&&a.id!==e&&(a.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe((function(t){e.disabled||(e.expanded=t)}))}},{key:"expanded",get:function(){return this._expanded},set:function(e){e=iw(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e)}}]),e}()).\u0275fac=function(e){return new(e||_O)(Mo(BO,12),Mo(jr),Mo(gM))},_O.\u0275dir=Ct({type:_O,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Vs([{provide:BO,useValue:void 0}])]}),_O),UO=((mO=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:mO}),mO.\u0275inj=me({factory:function(e){return new(e||mO)}}),mO),WO=["body"];function GO(e,t){}var QO=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],KO=["mat-expansion-panel-header","*","mat-action-row"],$O=function(e,t){return{collapsedHeight:e,expandedHeight:t}},JO=function(e,t){return{value:e,params:t}};function XO(e,t){1&e&&Oo(0,"span",2),2&e&&Ao("@indicatorRotate",Uo()._getExpandedState())}var ZO,eR,tR,nR,iR,aR,rR,oR=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],sR=["mat-panel-title","mat-panel-description","*"],lR=new je("MAT_ACCORDION"),cR={indicatorRotate:Nf("indicatorRotate",[Wf("collapsed, void",Uf({transform:"rotate(0deg)"})),Wf("expanded",Uf({transform:"rotate(180deg)"})),Qf("expanded <=> collapsed, void => collapsed",Bf("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:Nf("expansionHeight",[Wf("collapsed, void",Uf({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),Wf("expanded",Uf({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),Qf("expanded <=> collapsed, void => collapsed",jf([$f("@indicatorRotate",Kf(),{optional:!0}),Bf("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:Nf("bodyExpansion",[Wf("collapsed, void",Uf({height:"0px",visibility:"hidden"})),Wf("expanded",Uf({height:"*",visibility:"visible"})),Qf("expanded <=> collapsed, void => collapsed",Bf("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},uR=((ZO=function e(t){_classCallCheck(this,e),this._template=t}).\u0275fac=function(e){return new(e||ZO)(Mo(fl))},ZO.\u0275dir=Ct({type:ZO,selectors:[["ng-template","matExpansionPanelContent",""]]}),ZO),dR=0,hR=new je("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),fR=((iR=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,e,i,a))._viewContainerRef=r,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new Gl,c.afterCollapse=new Gl,c._inputChanges=new T,c._headerId="mat-expansion-panel-header-".concat(dR++),c._bodyAnimationDone=new T,c.accordion=e,c._document=o,c._bodyAnimationDone.pipe(NS((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){"void"!==e.fromState&&("expanded"===e.toState?c.afterExpand.emit():"collapsed"===e.toState&&c.afterCollapse.emit())})),l&&(c.hideToggle=l.hideToggle),c}return _createClass(n,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Vv(null),gu((function(){return e.expanded&&!e._portal})),Av(1)).subscribe((function(){e._portal=new AM(e._lazyContent._template,e._viewContainerRef)}))}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=iw(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}}]),n}(zO)).\u0275fac=function(e){return new(e||iR)(Mo(lR,12),Mo(jr),Mo(gM),Mo(ml),Mo(Cu),Mo(h_,8),Mo(hR,8))},iR.\u0275cmp=gt({type:iR,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,uR,!0),2&e&&ac(i=dc())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&oc(WO,!0),2&e&&ac(n=dc())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&rs("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Vs([{provide:lR,useValue:void 0}]),Cs,As],ngContentSelectors:KO,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(Go(QO),Qo(0),Io(1,"div",0,1),Ho("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),Io(3,"div",2),Qo(4,1),Do(5,GO,0,0,"ng-template",3),Eo(),Qo(6,2),Eo()),2&e&&(ma(1),Ao("@bodyExpansion",t._getExpandedState())("id",t.id),wo("aria-labelledby",t._headerId),ma(4),Ao("cdkPortalOutlet",t._portal))},directives:[RM],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[cR.bodyExpansion]},changeDetection:0}),iR),pR=((nR=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=a,this._parentChangeSubscription=h.EMPTY,this._animationsDisabled=!0;var s=t.accordion?t.accordion._stateChanges.pipe(gu((function(e){return!(!e.hideToggle&&!e.togglePosition)}))):uv;this._parentChangeSubscription=K(t.opened,t.closed,s,t._inputChanges.pipe(gu((function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(gu((function(){return t._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),i.monitor(n).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(e,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Gb(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,e,t)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),e}()).\u0275fac=function(e){return new(e||nR)(Mo(fR,1),Mo(js),Mo(cC),Mo(jr),Mo(hR,8))},nR.\u0275cmp=gt({type:nR,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(e,t){1&e&&(No("@expansionHeight.start",(function(){return t._animationStarted()})),Ho("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)}))),2&e&&(wo("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),bs("@.disabled",t._animationsDisabled)("@expansionHeight",Pl(16,JO,t._getExpandedState(),Pl(13,$O,t.collapsedHeight,t.expandedHeight))),rs("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:sR,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(Go(oR),Io(0,"span",0),Qo(1),Qo(2,1),Qo(3,2),Eo(),Do(4,XO,1,1,"span",1)),2&e&&(ma(4),Ao("ngIf",t._showToggle()))},directives:[Ed],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[cR.indicatorRotate,cR.expansionHeaderHeight]},changeDetection:0}),nR),mR=((tR=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||tR)},tR.\u0275dir=Ct({type:tR,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),tR),_R=((eR=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new Kl,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Vv(this._headers)).subscribe((function(t){e._ownHeaders.reset(t.filter((function(t){return t.panel.accordion===e}))),e._ownHeaders.notifyOnChanges()})),this._keyManager=new Vw(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;36===t?Gb(e)||(n.setFirstItemActive(),e.preventDefault()):35===t?Gb(e)||(n.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=iw(e)}}]),n}(BO)).\u0275fac=function(e){return gR(e||eR)},eR.\u0275dir=Ct({type:eR,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,pR,!0),2&e&&ac(i=dc())&&(t._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&rs("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Vs([{provide:lR,useExisting:eR}]),Cs]}),eR),gR=ci(_R),vR=((aR=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:aR}),aR.\u0275inj=me({factory:function(e){return new(e||aR)},imports:[[uh,UO,FM]]}),aR),yR=["*"],kR=new je("MAT_GRID_LIST"),bR=((rR=function(){function e(t,n){_classCallCheck(this,e),this._element=t,this._gridList=n,this._rowspan=1,this._colspan=1}return _createClass(e,[{key:"_setStyle",value:function(e,t){this._element.nativeElement.style[e]=t}},{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round(aw(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round(aw(e))}}]),e}()).\u0275fac=function(e){return new(e||rR)(Mo(js),Mo(kR,8))},rR.\u0275cmp=gt({type:rR,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&wo("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:yR,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(e,t){1&e&&(Go(),Io(0,"figure",0),Qo(1),Eo())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),rR),wR=function(){function e(){_classCallCheck(this,e),this.columnIndex=0,this.rowIndex=0}return _createClass(e,[{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return n._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new CR(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){if(e>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(e," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t<e||0==n);return Math.max(t,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var t=e+1;t<this.tracker.length;t++)if(0!=this.tracker[t])return t;return this.tracker.length}},{key:"_markTilePosition",value:function(e,t){for(var n=0;n<t.colspan;n++)this.tracker[e+n]=t.rowspan}},{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,_toConsumableArray(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}}]),e}(),CR=function e(t,n){_classCallCheck(this,e),this.row=t,this.col=n},DR=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,SR=function(){function e(){_classCallCheck(this,e),this._rows=0,this._rowspan=0}return _createClass(e,[{key:"init",value:function(e,t,n,i){this._gutterSize=LR(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=n,this._direction=i}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":AR("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,n){var i=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(e,n,i,a),this.setRowStyles(e,t,i,a)}},{key:"setColStyles",value:function(e,t,n,i){var a=this.getBaseTileSize(n,i);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,t)),e._setStyle("width",AR(this.getTileSize(a,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),MR=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).fixedRowHeight=e,i}return _createClass(n,[{key:"init",value:function(e,t,i,a){if(_get(_getPrototypeOf(n.prototype),"init",this).call(this,e,t,i,a),this.fixedRowHeight=LR(this.fixedRowHeight),!DR.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",AR(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",AR("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(SR),xR=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._parseRatio(e),i}return _createClass(n,[{key:"setRowStyles",value:function(e,t,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",AR(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",AR("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");if(2!==t.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(e,'"'));this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),n}(SR),TR=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setRowStyles",value:function(e,t){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(n,t)),e._setStyle("height",AR(this.getTileSize(n,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(SR);function AR(e){return"calc(".concat(e,")")}function LR(e){return e.match(/([A-Za-z%]+)$/)?e:"".concat(e,"px")}var IR,ER,OR,RR,PR,YR=((OR=function(){function e(t,n){_classCallCheck(this,e),this._element=t,this._dir=n,this._gutter="1px"}return _createClass(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new TR:e&&e.indexOf(":")>-1?new xR(e):new MR(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new wR);var t=this._tileCoordinator,n=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,i),n.forEach((function(n,i){var a=t.positions[i];e._tileStyler.setStyle(n,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(aw(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t="".concat(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}()).\u0275fac=function(e){return new(e||OR)(Mo(js),Mo(pC,8))},OR.\u0275cmp=gt({type:OR,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,bR,!0),2&e&&ac(i=dc())&&(t._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&wo("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Vs([{provide:kR,useExisting:OR}])],ngContentSelectors:yR,decls:2,vars:0,template:function(e,t){1&e&&(Go(),Io(0,"div"),Qo(1),Eo())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),OR),FR=((ER=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:ER}),ER.\u0275inj=me({factory:function(e){return new(e||ER)},imports:[[aD,MC],aD,MC]}),ER),qR=((IR=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:IR}),IR.\u0275inj=me({factory:function(e){return new(e||IR)},imports:[[aD,fD,MC,mD,uh],aD,MC,mD,HO]}),IR),VR={provide:new je("mat-menu-scroll-strategy"),deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},HR=((PR=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:PR}),PR.\u0275inj=me({factory:function(e){return new(e||PR)},providers:[VR],imports:[MC]}),PR),NR=((RR=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:RR}),RR.\u0275inj=me({factory:function(e){return new(e||RR)},providers:[VR],imports:[[uh,MC,fD,Dx,HR],HR]}),RR),BR=["trigger"],jR=["panel"];function zR(e,t){if(1&e&&(Io(0,"span",8),_s(1),Eo()),2&e){var n=Uo();ma(1),gs(n.placeholder||"\xa0")}}function UR(e,t){if(1&e&&(Io(0,"span"),_s(1),Eo()),2&e){var n=Uo(2);ma(1),gs(n.triggerValue||"\xa0")}}function WR(e,t){1&e&&Qo(0,0,["*ngSwitchCase","true"])}function GR(e,t){1&e&&(Io(0,"span",9),Do(1,UR,2,1,"span",10),Do(2,WR,1,0,void 0,11),Eo()),2&e&&(Ao("ngSwitch",!!Uo().customTrigger),ma(2),Ao("ngSwitchCase",!0))}function QR(e,t){if(1&e){var n=Fo();Io(0,"div",12),Io(1,"div",13,14),Ho("@transformPanel.done",(function(e){return en(n),Uo()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return en(n),Uo()._handleKeydown(e)})),Qo(3,1),Eo(),Eo()}if(2&e){var i=Uo();Ao("@transformPanelWrap",void 0),ma(1),ys("mat-select-panel ",i._getPanelTheme(),""),as("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Ao("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing")}}var KR,$R,JR,XR=[[["mat-select-trigger"]],"*"],ZR=["mat-select-trigger","*"],eP={transformPanelWrap:Nf("transformPanelWrap",[Qf("* => void",$f("@transformPanel",[Kf()],{optional:!0}))]),transformPanel:Nf("transformPanel",[Wf("void",Uf({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Wf("showing",Uf({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Wf("showing-multiple",Uf({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Qf("void => *",Bf("120ms cubic-bezier(0, 0, 0.2, 1)")),Qf("* => void",Bf("100ms 25ms linear",Uf({opacity:0})))])},tP=0,nP=new je("mat-select-scroll-strategy"),iP=new je("MAT_SELECT_CONFIG"),aP={provide:nP,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},rP=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},oP=AC(LC(xC(IC((function e(t,n,i,a,r){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=a,this.ngControl=r}))))),sP=((JR=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||JR)},JR.\u0275dir=Ct({type:JR,selectors:[["mat-select-trigger"]]}),JR),lP=(($R=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l,c,u,d,h,f,p,m){var _;return _classCallCheck(this,n),(_=t.call(this,o,r,l,c,d))._viewportRuler=e,_._changeDetectorRef=i,_._ngZone=a,_._dir=s,_._parentFormField=u,_.ngControl=d,_._liveAnnouncer=p,_._panelOpen=!1,_._required=!1,_._scrollTop=0,_._multiple=!1,_._compareWith=function(e,t){return e===t},_._uid="mat-select-".concat(tP++),_._destroy=new T,_._triggerFontSize=0,_._onChange=function(){},_._onTouched=function(){},_._optionIds="",_._transformOrigin="top",_._panelDoneAnimatingStream=new T,_._offsetY=0,_._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],_._disableOptionCentering=!1,_._focused=!1,_.controlType="mat-select",_.ariaLabel="",_.optionSelectionChanges=hv((function(){var e=_.options;return e?e.changes.pipe(Vv(e),Pv((function(){return K.apply(void 0,_toConsumableArray(e.map((function(e){return e.onSelectionChange}))))}))):_._ngZone.onStable.asObservable().pipe(Av(1),Pv((function(){return _.optionSelectionChanges})))})),_.openedChange=new Gl,_._openedStream=_.openedChange.pipe(gu((function(e){return e})),V((function(){}))),_._closedStream=_.openedChange.pipe(gu((function(e){return!e})),V((function(){}))),_.selectionChange=new Gl,_.valueChange=new Gl,_.ngControl&&(_.ngControl.valueAccessor=_assertThisInitialized(_)),_._scrollStrategyFactory=f,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(h)||0,_.id=_.id,m&&(null!=m.disableOptionCentering&&(_.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(_.typeaheadDebounceInterval=m.typeaheadDebounceInterval)),_}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new _M(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(NS(),$S(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe($S(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe($S(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(Vv(null),$S(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.options&&this._setSelectionByValue(e)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,a=this._keyManager;if(!a.isTyping()&&i&&!Gb(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===t||35===t?(36===t?a.setFirstItemActive():a.setLastItemActive(),e.preventDefault()):a.onKeydown(e);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,a=t.isTyping();if(36===n||35===n)e.preventDefault(),36===n?t.setFirstItemActive():t.setLastItemActive();else if(i&&e.altKey)e.preventDefault(),this.close();else if(a||13!==n&&32!==n||!t.activeItem||Gb(e))if(!a&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var r=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(r?e.select():e.deselect())}))}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Av(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(e);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return Si()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new qw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe($S(this._destroy)).subscribe((function(){!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close()})),this._keyManager.change.pipe($S(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=K(this.options.changes,this._destroy);this.optionSelectionChanges.pipe($S(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),K.apply(void 0,_toConsumableArray(this.options.map((function(e){return e._stateChanges})))).pipe($S(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new rP(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e,t,n,i,a=this._keyManager.activeItemIndex||0,r=DD(a,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(e=a+r,t=this._getItemHeight(),n=this.panel.nativeElement.scrollTop,(i=e*t)<n?i:i+t>n+256?Math.max(0,i-256+t):n)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,n,i){return void 0!==t?t:e===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=DD(a,this.options,this.optionGroups);var r=n/2;this._scrollTop=this._calculateOverlayScroll(a,r,i),this._offsetY=this._calculateOverlayOffsetY(a,r,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),a=this.multiple?56:32;if(this.multiple)e=40;else{var r=this._selectionModel.selected[0]||this.options.first;e=r&&r.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?a:0)),s=t.right+e-n.width+(i?0:a);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(i=0===this._scrollTop?e*a:this._scrollTop===n?(e-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):t-a/2,Math.round(-1*i-r))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,a=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>i?this._adjustPanelDown(r,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=iw(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=iw(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=aw(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(oP)).\u0275fac=function(e){return new(e||$R)(Mo(kM),Mo(jr),Mo(qc),Mo(iD),Mo(js),Mo(pC,8),Mo(Bg,8),Mo(Qg,8),Mo(DI,8),Mo(O_,10),xo("tabindex"),Mo(nP),Mo(Xw),Mo(iP,8))},$R.\u0275cmp=gt({type:$R,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,sP,!0),lc(n,CD,!0),lc(n,vD,!0)),2&e&&(ac(i=dc())&&(t.customTrigger=i.first),ac(i=dc())&&(t.options=i),ac(i=dc())&&(t.optionGroups=i))},viewQuery:function(e,t){var n;1&e&&(oc(BR,!0),oc(jR,!0),oc(wx,!0)),2&e&&(ac(n=dc())&&(t.trigger=n.first),ac(n=dc())&&(t.panel=n.first),ac(n=dc())&&(t.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&Ho("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(wo("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),rs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Vs([{provide:oI,useExisting:$R},{provide:wD,useExisting:$R}]),Cs,As],ngContentSelectors:ZR,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Go(XR),Io(0,"div",0,1),Ho("click",(function(){return t.toggle()})),Io(3,"div",2),Do(4,zR,2,1,"span",3),Do(5,GR,3,2,"span",4),Eo(),Io(6,"div",5),Oo(7,"div",6),Eo(),Eo(),Do(8,QR,4,10,"ng-template",7),Ho("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var n=So(1);ma(3),Ao("ngSwitch",t.empty),ma(1),Ao("ngSwitchCase",!0),ma(1),Ao("ngSwitchCase",!1),ma(3),Ao("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[bx,Nd,Bd,wx,jd,Td],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[eP.transformPanelWrap,eP.transformPanel]},changeDetection:0}),$R),cP=((KR=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:KR}),KR.\u0275inj=me({factory:function(e){return new(e||KR)},providers:[aP],imports:[[uh,Dx,MD,MC],MI,MD,MC]}),KR),uP={tooltipState:Nf("state",[Wf("initial, void, hidden",Uf({opacity:0,transform:"scale(0)"})),Wf("visible",Uf({transform:"scale(1)"})),Qf("* => visible",Bf("200ms cubic-bezier(0, 0, 0.2, 1)",Gf([Uf({opacity:0,transform:"scale(0)",offset:0}),Uf({opacity:.5,transform:"scale(0.99)",offset:.5}),Uf({opacity:1,transform:"scale(1)",offset:1})]))),Qf("* => hidden",Bf("100ms cubic-bezier(0, 0, 0.2, 1)",Uf({opacity:0})))])},dP=yw({passive:!0});function hP(e){return Error('Tooltip position "'.concat(e,'" is invalid.'))}var fP,pP,mP,_P=new je("mat-tooltip-scroll-strategy"),gP={provide:_P,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vP=new je("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),yP=((mP=function(){function e(t,n,i,a,r,o,s,l,c,u,d,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new T,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Gb(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=c,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),l.monitor(n).pipe($S(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&r.run((function(){return f.show()})):r.run((function(){return f.hide(0)}))})),r.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)}))}return _createClass(e,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t,n){e.removeEventListener(n,t,dP)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new TM(kP,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe($S(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe($S(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe($S(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)e={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw hP(n);e={originX:"end",originY:"center"}}var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)e={overlayX:"center",overlayY:"bottom"};else if("below"==n)e={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw hP(n);e={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Av(1),$S(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEvents",value:function(){var e=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var t=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",(function(){clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return e.show()})).set("mouseleave",(function(){return e.hide()}));this._passiveListeners.forEach((function(t,n){e._elementRef.nativeElement.addEventListener(n,t,dP)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this._elementRef.nativeElement,t=e.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==n&&e.draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?"".concat(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}()).\u0275fac=function(e){return new(e||mP)(Mo(vx),Mo(js),Mo(vM),Mo(ml),Mo(qc),Mo(mw),Mo(Yw),Mo(cC),Mo(_P),Mo(pC,8),Mo(vP,8),Mo(js))},mP.\u0275dir=Ct({type:mP,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),mP),kP=((pP=function(){function e(t,n){_classCallCheck(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new T,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||pP)(Mo(jr),Mo(zI))},pP.\u0275cmp=gt({type:pP,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Ho("click",(function(){return t._handleBodyInteraction()}),!1,Un),2&e&&as("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(Io(0,"div",0),Ho("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),Nl(1,"async"),_s(2),Eo()),2&e&&(rs("mat-tooltip-handset",null==(n=Bl(1,5,t._isHandset))?null:n.matches),Ao("ngClass",t.tooltipClass)("@state",t._visibility),ma(2),gs(t.message))},directives:[Td],pipes:[ih],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[uP.tooltipState]},changeDetection:0}),pP),bP=((fP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:fP}),fP.\u0275inj=me({factory:function(e){return new(e||fP)},providers:[gP],imports:[[hC,uh,Dx,MC],MC]}),fP);function wP(e,t){if(1&e&&(Io(0,"mat-option",19),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n),ma(1),vs(" ",n," ")}}function CP(e,t){if(1&e){var n=Fo();Io(0,"mat-form-field",16),Io(1,"mat-select",17),Ho("selectionChange",(function(e){return en(n),Uo(2)._changePageSize(e.value)})),Do(2,wP,2,2,"mat-option",18),Eo(),Eo()}if(2&e){var i=Uo(2);Ao("color",i.color),ma(1),Ao("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),ma(1),Ao("ngForOf",i._displayedPageSizeOptions)}}function DP(e,t){if(1&e&&(Io(0,"div",20),_s(1),Eo()),2&e){var n=Uo(2);ma(1),gs(n.pageSize)}}function SP(e,t){if(1&e&&(Io(0,"div",12),Io(1,"div",13),_s(2),Eo(),Do(3,CP,3,5,"mat-form-field",14),Do(4,DP,2,1,"div",15),Eo()),2&e){var n=Uo();ma(2),vs(" ",n._intl.itemsPerPageLabel," "),ma(1),Ao("ngIf",n._displayedPageSizeOptions.length>1),ma(1),Ao("ngIf",n._displayedPageSizeOptions.length<=1)}}function MP(e,t){if(1&e){var n=Fo();Io(0,"button",21),Ho("click",(function(){return en(n),Uo().firstPage()})),Dn(),Io(1,"svg",7),Oo(2,"path",22),Eo(),Eo()}if(2&e){var i=Uo();Ao("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),wo("aria-label",i._intl.firstPageLabel)}}function xP(e,t){if(1&e){var n=Fo();Dn(),Sn(),Io(0,"button",23),Ho("click",(function(){return en(n),Uo().lastPage()})),Dn(),Io(1,"svg",7),Oo(2,"path",24),Eo(),Eo()}if(2&e){var i=Uo();Ao("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),wo("aria-label",i._intl.lastPageLabel)}}var TP,AP,LP,IP,EP=((TP=function e(){_classCallCheck(this,e),this.changes=new T,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||TP)},TP.\u0275prov=fe({factory:function(){return new TP},token:TP,providedIn:"root"}),TP),OP={provide:EP,deps:[[new se,new ce,EP]],useFactory:function(e){return e||new EP}},RP=new je("MAT_PAGINATOR_DEFAULT_OPTIONS"),PP=xC(EC((function e(){_classCallCheck(this,e)}))),YP=((IP=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;if(_classCallCheck(this,n),(r=t.call(this))._intl=e,r._changeDetectorRef=i,r._pageIndex=0,r._length=0,r._pageSizeOptions=[],r._hidePageSize=!1,r._showFirstLastButtons=!1,r.page=new Gl,r._intlChanges=e.changes.subscribe((function(){return r._changeDetectorRef.markForCheck()})),a){var o=a.pageSize,s=a.pageSizeOptions,l=a.hidePageSize,c=a.showFirstLastButtons;null!=o&&(r._pageSize=o),null!=s&&(r._pageSizeOptions=s),null!=l&&(r._hidePageSize=l),null!=c&&(r._showFirstLastButtons=c)}return _possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((function(e,t){return e-t})),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(aw(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=aw(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(aw(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map((function(e){return aw(e)})),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=iw(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=iw(e)}}]),n}(PP)).\u0275fac=function(e){return new(e||IP)(Mo(EP),Mo(jr),Mo(RP,8))},IP.\u0275cmp=gt({type:IP,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[Cs],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Do(2,SP,5,3,"div",2),Io(3,"div",3),Io(4,"div",4),_s(5),Eo(),Do(6,MP,3,5,"button",5),Io(7,"button",6),Ho("click",(function(){return t.previousPage()})),Dn(),Io(8,"svg",7),Oo(9,"path",8),Eo(),Eo(),Sn(),Io(10,"button",9),Ho("click",(function(){return t.nextPage()})),Dn(),Io(11,"svg",7),Oo(12,"path",10),Eo(),Eo(),Do(13,xP,3,5,"button",11),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("ngIf",!t.hidePageSize),ma(3),vs(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),ma(1),Ao("ngIf",t.showFirstLastButtons),ma(1),Ao("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),wo("aria-label",t._intl.previousPageLabel),ma(3),Ao("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),wo("aria-label",t._intl.nextPageLabel),ma(3),Ao("ngIf",t.showFirstLastButtons))},directives:[Ed,bS,yP,SI,lP,Ld,CD],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),IP),FP=((LP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:LP}),LP.\u0275inj=me({factory:function(e){return new(e||LP)},providers:[OP],imports:[[uh,CS,cP,bP]]}),LP),qP=((AP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:AP}),AP.\u0275inj=me({factory:function(e){return new(e||AP)},imports:[[uh,MC],MC]}),AP);function VP(e,t){if(1&e&&(Dn(),Oo(0,"circle",3)),2&e){var n=Uo();as("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),wo("r",n._circleRadius)}}function HP(e,t){if(1&e&&(Dn(),Oo(0,"circle",3)),2&e){var n=Uo();as("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),wo("r",n._circleRadius)}}function NP(e,t){if(1&e&&(Dn(),Oo(0,"circle",3)),2&e){var n=Uo();as("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),wo("r",n._circleRadius)}}function BP(e,t){if(1&e&&(Dn(),Oo(0,"circle",3)),2&e){var n=Uo();as("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),wo("r",n._circleRadius)}}var jP,zP,UP,WP,GP,QP,KP,$P,JP,XP=TC((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),ZP=new je("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),eY=((UP=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;_classCallCheck(this,n),(s=t.call(this,e))._elementRef=e,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return l.has(a.head)||l.set(a.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=bw(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,a=i.get(e);if(!a||!a.has(t)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",t+""),r.textContent=this._getAnimationText(),e.appendChild(r),a||(a=new Set,i.set(e,a)),a.add(t)}}},{key:"_getAnimationText",value:function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=aw(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=aw(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,aw(e)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),n}(XP)).\u0275fac=function(e){return new(e||UP)(Mo(js),Mo(mw),Mo(Cu,8),Mo(h_,8),Mo(ZP))},UP.\u0275cmp=gt({type:UP,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(wo("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),as("width",t.diameter,"px")("height",t.diameter,"px"),rs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Cs],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Dn(),Io(0,"svg",0),Do(1,VP,1,9,"circle",1),Do(2,HP,1,7,"circle",2),Eo()),2&e&&(as("width",t.diameter,"px")("height",t.diameter,"px"),Ao("ngSwitch","indeterminate"===t.mode),wo("viewBox",t._viewBox),ma(1),Ao("ngSwitchCase",!0),ma(1),Ao("ngSwitchCase",!1))},directives:[Nd,Bd],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),UP._diameters=new WeakMap,UP),tY=((zP=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i,a,r,o)).mode="indeterminate",s}return n}(eY)).\u0275fac=function(e){return new(e||zP)(Mo(js),Mo(mw),Mo(Cu,8),Mo(h_,8),Mo(ZP))},zP.\u0275cmp=gt({type:zP,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(as("width",t.diameter,"px")("height",t.diameter,"px"),rs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[Cs],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Dn(),Io(0,"svg",0),Do(1,NP,1,9,"circle",1),Do(2,BP,1,7,"circle",2),Eo()),2&e&&(as("width",t.diameter,"px")("height",t.diameter,"px"),Ao("ngSwitch","indeterminate"===t.mode),wo("viewBox",t._viewBox),ma(1),Ao("ngSwitchCase",!0),ma(1),Ao("ngSwitchCase",!1))},directives:[Nd,Bd],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),zP),nY=((jP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:jP}),jP.\u0275inj=me({factory:function(e){return new(e||jP)},imports:[[MC,uh],MC]}),jP),iY=["input"],aY=function(){return{enterDuration:150}},rY=["*"],oY=new je("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),sY=0,lY={provide:b_,useExisting:xe((function(){return uY})),multi:!0},cY=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},uY=((WP=function(){function e(t){_classCallCheck(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(sY++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Gl}return _createClass(e,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach((function(t){t.name=e.name,t._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new cY(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(e){return e._markForCheck()}))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e),this._markRadiosForCheck()}}]),e}()).\u0275fac=function(e){return new(e||WP)(Mo(jr))},WP.\u0275dir=Ct({type:WP,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,hY,!0),2&e&&ac(i=dc())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Vs([lY])]}),WP),dY=AC(LC((function e(t){_classCallCheck(this,e),this._elementRef=t}))),hY=((JP=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,i))._changeDetector=a,c._focusMonitor=r,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-".concat(++sY),c.id=c._uniqueId,c.change=new Gl,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=e,c._removeUniqueSelectionListener=o.listen((function(e,t){e!==c.id&&t===c.name&&(c.checked=!1)})),c}return _createClass(n,[{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){!t&&e.radioGroup&&e.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new cY(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(e){var t=iw(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(iw(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=iw(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(dY)).\u0275fac=function(e){return new(e||JP)(Mo(uY,8),Mo(js),Mo(jr),Mo(cC),Mo(gM),Mo(h_,8),Mo(oY,8))},JP.\u0275cmp=gt({type:JP,selectors:[["mat-radio-button"]],viewQuery:function(e,t){var n;1&e&&oc(iY,!0),2&e&&ac(n=dc())&&(t._inputElement=n.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&Ho("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(wo("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),rs("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[Cs],ngContentSelectors:rY,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(Go(),Io(0,"label",0,1),Io(2,"div",2),Oo(3,"div",3),Oo(4,"div",4),Io(5,"input",5,6),Ho("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),Eo(),Io(7,"div",7),Oo(8,"div",8),Eo(),Eo(),Io(9,"div",9),Io(10,"span",10),_s(11,"\xa0"),Eo(),Qo(12),Eo(),Eo()),2&e){var n=So(1);wo("for",t.inputId),ma(5),Ao("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),wo("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),ma(2),Ao("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ol(18,aY)),ma(2),rs("mat-radio-label-before","before"==t.labelPosition)}},directives:[hD],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),JP),fY=(($P=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:$P}),$P.\u0275inj=me({factory:function(e){return new(e||$P)},imports:[[fD,MC],MC]}),$P),pY=((KP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:KP}),KP.\u0275inj=me({factory:function(e){return new(e||KP)}}),KP),mY=((QP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:QP}),QP.\u0275inj=me({factory:function(e){return new(e||QP)},imports:[[pY,fD,MC,Aw],pY,MC]}),QP),_Y=((GP=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:GP}),GP.\u0275inj=me({factory:function(e){return new(e||GP)},imports:[[uh,MC],MC]}),GP);function gY(e,t){if(1&e){var n=Fo();Io(0,"div",1),Io(1,"button",2),Ho("click",(function(){return en(n),Uo().action()})),_s(2),Eo(),Eo()}if(2&e){var i=Uo();ma(2),gs(i.data.action)}}function vY(e,t){}var yY,kY,bY,wY,CY=Math.pow(2,31)-1,DY=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._overlayRef=n,this._afterDismissed=new T,this._afterOpened=new T,this._onAction=new T,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return i.dismiss()})),t._onExit.subscribe((function(){return i._finishDismiss()}))}return _createClass(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,CY))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),e}(),SY=new je("MatSnackBarData"),MY=function e(){_classCallCheck(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},xY=((yY=function(){function e(t,n){_classCallCheck(this,e),this.snackBarRef=t,this.data=n}return _createClass(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}()).\u0275fac=function(e){return new(e||yY)(Mo(DY),Mo(SY))},yY.\u0275cmp=gt({type:yY,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Io(0,"span"),_s(1),Eo(),Do(2,gY,3,1,"div",0)),2&e&&(ma(1),gs(t.data.message),ma(1),Ao("ngIf",t.hasAction))},directives:[Ed,bS],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),yY),TY={snackBarState:Nf("state",[Wf("void, hidden",Uf({transform:"scale(0.8)",opacity:0})),Wf("visible",Uf({transform:"scale(1)",opacity:1})),Qf("* => visible",Bf("150ms cubic-bezier(0, 0, 0.2, 1)")),Qf("* => void, * => hidden",Bf("75ms cubic-bezier(0.4, 0.0, 1, 1)",Uf({opacity:0})))])},AY=((bY=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this))._ngZone=e,o._elementRef=i,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new T,o._onEnter=new T,o._animationState="void",o.attachDomPortal=function(e){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(e)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(n,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,n=e.toState;if(("void"===n&&"void"!==t||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Av(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),n}(IM)).\u0275fac=function(e){return new(e||bY)(Mo(qc),Mo(js),Mo(jr),Mo(MY))},bY.\u0275cmp=gt({type:bY,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&rc(RM,!0),2&e&&ac(n=dc())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&No("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(wo("role",t._role),bs("@state",t._animationState))},features:[Cs],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Do(0,vY,0,0,"ng-template",0)},directives:[RM],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[TY.snackBarState]}}),bY),LY=((kY=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:kY}),kY.\u0275inj=me({factory:function(e){return new(e||kY)},imports:[[Dx,FM,uh,CS,MC],MC]}),kY),IY=new je("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new MY}}),EY=((wY=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(e,[{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage||(i.announcementMessage=e),this.openFromComponent(xY,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=new qM(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[MY,t]])),i=new TM(AY,t.viewContainerRef,n),a=e.attach(i);return a.instance.snackBarConfig=t,a.instance}},{key:"_attach",value:function(e,t){var n=Object.assign(Object.assign(Object.assign({},new MY),this._defaultConfig),t),i=this._createOverlay(n),a=this._attachSnackBarContainer(i,n),r=new DY(a,i);if(e instanceof fl){var o=new AM(e,null,{$implicit:n.data,snackBarRef:r});r.instance=a.attachTemplatePortal(o)}else{var s=this._createInjector(n,r),l=new TM(e,void 0,s),c=a.attachComponentPortal(l);r.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe($S(i.detachments())).subscribe((function(e){var t=i.overlayElement.classList;e.matches?t.add("mat-snack-bar-handset"):t.remove("mat-snack-bar-handset")})),this._animateSnackBar(r,n),this._openedSnackBarRef=r,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe((function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new QM;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,r=!a&&"center"!==e.horizontalPosition;return a?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return new qM(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[DY,t],[SY,e.data]]))}},{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}}]),e}()).\u0275fac=function(e){return new(e||wY)(Xe(vx),Xe(Xw),Xe(ro),Xe(zI),Xe(wY,12),Xe(IY))},wY.\u0275prov=fe({factory:function(){return new wY(Xe(vx),Xe(Xw),Xe(ze),Xe(zI),Xe(wY,12),Xe(IY))},token:wY,providedIn:LY}),wY),OY=["mat-sort-header",""];function RY(e,t){if(1&e){var n=Fo();Io(0,"div",3),Ho("@arrowPosition.start",(function(){return en(n),Uo()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return en(n),Uo()._disableViewStateAnimation=!1})),Oo(1,"div",4),Io(2,"div",5),Oo(3,"div",6),Oo(4,"div",7),Oo(5,"div",8),Eo(),Eo()}if(2&e){var i=Uo();Ao("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),ma(2),Ao("@indicator",i._getArrowDirectionState()),ma(1),Ao("@leftPointer",i._getArrowDirectionState()),ma(1),Ao("@rightPointer",i._getArrowDirectionState())}}var PY,YY,FY,qY,VY,HY,NY,BY,jY,zY,UY,WY,GY,QY,KY,$Y,JY,XY=["*"],ZY=EC(xC((function e(){_classCallCheck(this,e)}))),eF=((PY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).sortables=new Map,e._stateChanges=new T,e.start="asc",e._direction="",e.sortChange=new Gl,e}return _createClass(n,[{key:"register",value:function(e){if(!e.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(e.id))throw Error("Cannot have two MatSortables with the same id (".concat(e.id,")."));this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){if(!e)return"";var t,n,i,a=(t=e.start||this.start,n=null!=e.disableClear?e.disableClear:this.disableClear,i=["asc","desc"],"desc"==t&&i.reverse(),n||i.push(""),i),r=a.indexOf(this.direction)+1;return r>=a.length&&(r=0),a[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){if(Si()&&e&&"asc"!==e&&"desc"!==e)throw function(e){return Error("".concat(e," is not a valid sort direction ('asc' or 'desc')."))}(e);this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=iw(e)}}]),n}(ZY)).\u0275fac=function(e){return tF(e||PY)},PY.\u0275dir=Ct({type:PY,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Cs,As]}),PY),tF=ci(eF),nF=CC.ENTERING+" "+wC.STANDARD_CURVE,iF={indicator:Nf("indicator",[Wf("active-asc, asc",Uf({transform:"translateY(0px)"})),Wf("active-desc, desc",Uf({transform:"translateY(10px)"})),Qf("active-asc <=> active-desc",Bf(nF))]),leftPointer:Nf("leftPointer",[Wf("active-asc, asc",Uf({transform:"rotate(-45deg)"})),Wf("active-desc, desc",Uf({transform:"rotate(45deg)"})),Qf("active-asc <=> active-desc",Bf(nF))]),rightPointer:Nf("rightPointer",[Wf("active-asc, asc",Uf({transform:"rotate(45deg)"})),Wf("active-desc, desc",Uf({transform:"rotate(-45deg)"})),Qf("active-asc <=> active-desc",Bf(nF))]),arrowOpacity:Nf("arrowOpacity",[Wf("desc-to-active, asc-to-active, active",Uf({opacity:1})),Wf("desc-to-hint, asc-to-hint, hint",Uf({opacity:.54})),Wf("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Uf({opacity:0})),Qf("* => asc, * => desc, * => active, * => hint, * => void",Bf("0ms")),Qf("* <=> *",Bf(nF))]),arrowPosition:Nf("arrowPosition",[Qf("* => desc-to-hint, * => desc-to-active",Bf(nF,Gf([Uf({transform:"translateY(-25%)"}),Uf({transform:"translateY(0)"})]))),Qf("* => hint-to-desc, * => active-to-desc",Bf(nF,Gf([Uf({transform:"translateY(0)"}),Uf({transform:"translateY(25%)"})]))),Qf("* => asc-to-hint, * => asc-to-active",Bf(nF,Gf([Uf({transform:"translateY(25%)"}),Uf({transform:"translateY(0)"})]))),Qf("* => hint-to-asc, * => active-to-asc",Bf(nF,Gf([Uf({transform:"translateY(0)"}),Uf({transform:"translateY(-25%)"})]))),Wf("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Uf({transform:"translateY(0)"})),Wf("hint-to-desc, active-to-desc, desc",Uf({transform:"translateY(-25%)"})),Wf("hint-to-asc, active-to-asc, asc",Uf({transform:"translateY(25%)"}))]),allowChildren:Nf("allowChildren",[Qf("* <=> *",[$f("@*",Kf(),{optional:!0})])])},aF=((YY=function e(){_classCallCheck(this,e),this.changes=new T,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||YY)},YY.\u0275prov=fe({factory:function(){return new YY},token:YY,providedIn:"root"}),YY),rF={provide:aF,deps:[[new se,new ce,aF]],useFactory:function(e){return e||new aF}},oF=xC((function e(){_classCallCheck(this,e)})),sF=((VY=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s){var l;if(_classCallCheck(this,n),(l=t.call(this))._intl=e,l._sort=a,l._columnDef=r,l._focusMonitor=o,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",!a)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return l._rerenderSubscription=K(a.sortChange,a._stateChanges,e.changes).subscribe((function(){l._isSorted()&&l._updateArrowDirection(),!l._isSorted()&&l._viewState&&"active"===l._viewState.toState&&(l._disableViewStateAnimation=!1,l._setAnimationTransitionState({fromState:"active",toState:l._arrowDirection})),i.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(e){return l._setIndicatorHintVisible(!!e)})),_possibleConstructorReturn(l)}return _createClass(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=iw(e)}}]),n}(oF)).\u0275fac=function(e){return new(e||VY)(Mo(aF),Mo(jr),Mo(eF,8),Mo("MAT_SORT_HEADER_COLUMN_DEF",8),Mo(cC),Mo(js))},VY.\u0275cmp=gt({type:VY,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Ho("click",(function(){return t._handleClick()}))("mouseenter",(function(){return t._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return t._setIndicatorHintVisible(!1)})),2&e&&(wo("aria-sort",t._getAriaSortAttribute()),rs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Cs],attrs:OY,ngContentSelectors:XY,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Io(1,"button",1),Qo(2),Eo(),Do(3,RY,6,6,"div",2),Eo()),2&e&&(rs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),ma(1),wo("disabled",t._isDisabled()||null)("aria-label",t._intl.sortButtonLabel(t.id)),ma(2),Ao("ngIf",t._renderArrow()))},directives:[Ed],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[iF.indicator,iF.leftPointer,iF.rightPointer,iF.arrowOpacity,iF.arrowPosition,iF.allowChildren]},changeDetection:0}),VY),lF=((qY=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:qY}),qY.\u0275inj=me({factory:function(e){return new(e||qY)},providers:[rF],imports:[[uh]]}),qY),cF=((FY=function e(){_classCallCheck(this,e),this.changes=new T,this.optionalLabel="Optional"}).\u0275fac=function(e){return new(e||FY)},FY.\u0275prov=fe({factory:function(){return new FY},token:FY,providedIn:"root"}),FY),uF={provide:cF,deps:[[new se,new ce,cF]],useFactory:function(e){return e||new cF}},dF=((HY=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:HY}),HY.\u0275inj=me({factory:function(e){return new(e||HY)},providers:[uF,iD],imports:[[MC,uh,FM,CS,VA,mT,fD],MC]}),HY),hF=[[["caption"]]],fF=["caption"],pF=((NY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e}return n}(LL)).\u0275fac=function(e){return mF(e||NY)},NY.\u0275cmp=gt({type:NY,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[Vs([{provide:LL,useExisting:NY},{provide:nL,useExisting:NY}]),Cs],ngContentSelectors:fF,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(Go(hF),Qo(0),Yo(1,0),Yo(2,1),Yo(3,2))},directives:[TL,xL,AL],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),NY),mF=ci(pF),_F=((BY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(iL)).\u0275fac=function(e){return gF(e||BY)},BY.\u0275dir=Ct({type:BY,selectors:[["","matCellDef",""]],features:[Vs([{provide:iL,useExisting:BY}]),Cs]}),BY),gF=ci(_F),vF=((jY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(aL)).\u0275fac=function(e){return yF(e||jY)},jY.\u0275dir=Ct({type:jY,selectors:[["","matHeaderCellDef",""]],features:[Vs([{provide:aL,useExisting:jY}]),Cs]}),jY),yF=ci(vF),kF=((zY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(sL)).\u0275fac=function(e){return bF(e||zY)},zY.\u0275dir=Ct({type:zY,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Vs([{provide:sL,useExisting:zY},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:zY}]),Cs]}),zY),bF=ci(kF),wF=((GY=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),a=t.call(this,e,i),i.nativeElement.classList.add("mat-column-".concat(e.cssClassFriendlyName)),a}return n}(cL)).\u0275fac=function(e){return new(e||GY)(Mo(sL),Mo(js))},GY.\u0275dir=Ct({type:GY,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Cs]}),GY),CF=((WY=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),a=t.call(this,e,i),i.nativeElement.classList.add("mat-column-".concat(e.cssClassFriendlyName)),a}return n}(uL)).\u0275fac=function(e){return new(e||WY)(Mo(sL),Mo(js))},WY.\u0275dir=Ct({type:WY,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Cs]}),WY),DF=((UY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(fL)).\u0275fac=function(e){return SF(e||UY)},UY.\u0275dir=Ct({type:UY,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Vs([{provide:fL,useExisting:UY}]),Cs]}),UY),SF=ci(DF),MF=((QY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(_L)).\u0275fac=function(e){return xF(e||QY)},QY.\u0275dir=Ct({type:QY,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Vs([{provide:_L,useExisting:QY}]),Cs]}),QY),xF=ci(MF),TF=((KY=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(vL)).\u0275fac=function(e){return AF(e||KY)},KY.\u0275cmp=gt({type:KY,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Vs([{provide:vL,useExisting:KY}]),Cs],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Yo(0,0)},directives:[gL],encapsulation:2}),KY),AF=ci(TF),LF=(($Y=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(yL)).\u0275fac=function(e){return IF(e||$Y)},$Y.\u0275cmp=gt({type:$Y,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Vs([{provide:yL,useExisting:$Y}]),Cs],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&Yo(0,0)},directives:[gL],encapsulation:2}),$Y),IF=ci(LF),EF=((JY=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:JY}),JY.\u0275inj=me({factory:function(e){return new(e||JY)},imports:[[PL,MC]]}),JY),OF=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,n),(e=t.call(this))._renderData=new av([]),e._filter=new av(""),e._internalPageChanges=new T,e._renderChangesSubscription=h.EMPTY,e.sortingDataAccessor=function(e,t){var n=e[t];if(rw(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,a=n.direction;return i&&""!=a?t.sort((function(t,n){var r=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=0;return null!=r&&null!=o?r>o?s=1:r<o&&(s=-1):null!=r?s=1:null!=o&&(s=-1),s*("asc"==a?1:-1)})):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce((function(t,n){return t+e[n]+"\u25ec"}),"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new av(i),e._updateChangeSubscription(),e}return _createClass(n,[{key:"_updateChangeSubscription",value:function(){var e=this,t=this._sort?K(this._sort.sortChange,this._sort.initialized):mu(null),n=this._paginator?K(this._paginator.page,this._internalPageChanges,this._paginator.initialized):mu(null),i=sv([this._data,this._filter]).pipe(V((function(t){var n=_slicedToArray(t,1)[0];return e._filterData(n)}))),a=sv([i,t]).pipe(V((function(t){var n=_slicedToArray(t,1)[0];return e._orderData(n)}))),r=sv([a,n]).pipe(V((function(t){var n=_slicedToArray(t,1)[0];return e._pageData(n)})));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe((function(t){return e._renderData.next(t)}))}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=this.filter?e.filter((function(e){return t.filterPredicate(e,t.filter)})):e,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then((function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,a=Math.min(n.pageIndex,i);a!==n.pageIndex&&(n.pageIndex=a,t._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function RF(e,t){1&e&&Qo(0)}var PF=["*"];function YF(e,t){}var FF=function(e){return{animationDuration:e}},qF=function(e,t){return{value:e,params:t}},VF=["tabBodyWrapper"],HF=["tabHeader"];function NF(e,t){}function BF(e,t){1&e&&Do(0,NF,0,0,"ng-template",9),2&e&&Ao("cdkPortalOutlet",Uo().$implicit.templateLabel)}function jF(e,t){1&e&&_s(0),2&e&&gs(Uo().$implicit.textLabel)}function zF(e,t){if(1&e){var n=Fo();Io(0,"div",6),Ho("click",(function(){en(n);var e=t.$implicit,i=t.index,a=Uo(),r=So(1);return a._handleClick(e,r,i)})),Io(1,"div",7),Do(2,BF,1,1,"ng-template",8),Do(3,jF,1,1,"ng-template",8),Eo(),Eo()}if(2&e){var i=t.$implicit,a=t.index,r=Uo();rs("mat-tab-label-active",r.selectedIndex==a),Ao("id",r._getTabLabelId(a))("disabled",i.disabled)("matRippleDisabled",i.disabled||r.disableRipple),wo("tabIndex",r._getTabIndex(i,a))("aria-posinset",a+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(a))("aria-selected",r.selectedIndex==a)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),ma(2),Ao("ngIf",i.templateLabel),ma(1),Ao("ngIf",!i.templateLabel)}}function UF(e,t){if(1&e){var n=Fo();Io(0,"mat-tab-body",10),Ho("_onCentered",(function(){return en(n),Uo()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return en(n),Uo()._setTabBodyWrapperHeight(e)})),Eo()}if(2&e){var i=t.$implicit,a=t.index,r=Uo();rs("mat-tab-body-active",r.selectedIndex==a),Ao("id",r._getTabContentId(a))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration),wo("aria-labelledby",r._getTabLabelId(a))}}var WF,GF,QF,KF,$F,JF,XF,ZF,eq,tq,nq,iq,aq,rq,oq,sq,lq,cq,uq,dq=["tabListContainer"],hq=["tabList"],fq=["nextPaginator"],pq=["previousPaginator"],mq=new je("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),_q=((QF=function(){function e(t,n,i,a){_classCallCheck(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=a}return _createClass(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t._setStyles(e)}))})):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||QF)(Mo(js),Mo(qc),Mo(mq),Mo(h_,8))},QF.\u0275dir=Ct({type:QF,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&rs("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),QF),gq=((GF=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||GF)(Mo(fl))},GF.\u0275dir=Ct({type:GF,selectors:[["","matTabContent",""]]}),GF),vq=((WF=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(OM)).\u0275fac=function(e){return yq(e||WF)},WF.\u0275dir=Ct({type:WF,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Cs]}),WF),yq=ci(vq),kq=xC((function e(){_classCallCheck(this,e)})),bq=new je("MAT_TAB_GROUP"),wq=((KF=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this))._viewContainerRef=e,a._closestTabGroup=i,a.textLabel="",a._contentPortal=null,a._stateChanges=new T,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new AM(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){e&&(this._templateLabel=e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(kq)).\u0275fac=function(e){return new(e||KF)(Mo(ml),Mo(bq,8))},KF.\u0275cmp=gt({type:KF,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(lc(n,vq,!0),cc(n,gq,!0,fl)),2&e&&(ac(i=dc())&&(t.templateLabel=i.first),ac(i=dc())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&rc(fl,!0),2&e&&ac(n=dc())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Cs,As],ngContentSelectors:PF,decls:1,vars:0,template:function(e,t){1&e&&(Go(),Do(0,RF,1,0,"ng-template"))},encapsulation:2}),KF),Cq={translateTab:Nf("translateTab",[Wf("center, void, left-origin-center, right-origin-center",Uf({transform:"none"})),Wf("left",Uf({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Wf("right",Uf({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Qf("* => left, * => right, left => center, right => center",Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Qf("void => left-origin-center",[Uf({transform:"translate3d(-100%, 0, 0)"}),Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Qf("void => right-origin-center",[Uf({transform:"translate3d(100%, 0, 0)"}),Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Dq=((XF=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._host=a,o._centeringSub=h.EMPTY,o._leavingSub=h.EMPTY,o}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vv(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(RM)).\u0275fac=function(e){return new(e||XF)(Mo(Bs),Mo(ml),Mo(xe((function(){return Mq}))),Mo(Cu))},XF.\u0275dir=Ct({type:XF,selectors:[["","matTabBodyHost",""]],features:[Cs]}),XF),Sq=((JF=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=h.EMPTY,this._translateTabComplete=new T,this._onCentering=new Gl,this._beforeCentering=new Gl,this._afterLeavingCenter=new Gl,this._onCentered=new Gl(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(e){a._computePositionAnimationState(e),i.markForCheck()}))),this._translateTabComplete.pipe(NS((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){a._isCenterPosition(e.toState)&&a._isCenterPosition(a._position)&&a._onCentered.emit(),a._isCenterPosition(e.fromState)&&!a._isCenterPosition(a._position)&&a._afterLeavingCenter.emit()}))}return _createClass(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||JF)(Mo(js),Mo(pC,8),Mo(jr))},JF.\u0275dir=Ct({type:JF,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),JF),Mq=(($F=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){return _classCallCheck(this,n),t.call(this,e,i,a)}return n}(Sq)).\u0275fac=function(e){return new(e||$F)(Mo(js),Mo(pC,8),Mo(jr))},$F.\u0275cmp=gt({type:$F,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&oc(PM,!0),2&e&&ac(n=dc())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Cs],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(Io(0,"div",0,1),Ho("@translateTab.start",(function(e){return t._onTranslateTabStarted(e)}))("@translateTab.done",(function(e){return t._translateTabComplete.next(e)})),Do(2,YF,0,0,"ng-template",2),Eo()),2&e&&Ao("@translateTab",Pl(3,qF,t._position,Rl(1,FF,t.animationDuration)))},directives:[Dq],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Cq.translateTab]}}),$F),xq=new je("MAT_TABS_CONFIG"),Tq=0,Aq=function e(){_classCallCheck(this,e)},Lq=TC(AC((function e(t){_classCallCheck(this,e),this._elementRef=t})),"primary"),Iq=((eq=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._changeDetectorRef=i,o._animationMode=r,o._tabs=new Kl,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=h.EMPTY,o._tabLabelSubscription=h.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Gl,o.focusChange=new Gl,o.animationDone=new Gl,o.selectedTabChange=new Gl(!0),o._groupId=Tq++,o.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms",o.disablePagination=!(!a||null==a.disablePagination)&&a.disablePagination,o}return _createClass(n,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then((function(){e._tabs.forEach((function(e,n){return e.isActive=n===t})),n||e.selectedIndexChange.emit(t)}))}this._tabs.forEach((function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n<t.length;n++)if(t[n].isActive){e._indexToSelect=e._selectedIndex=n;break}e._changeDetectorRef.markForCheck()}))}},{key:"_subscribeToAllTabChanges",value:function(){var e=this;this._allTabs.changes.pipe(Vv(this._allTabs)).subscribe((function(t){e._tabs.reset(t.filter((function(t){return!t._closestTabGroup||t._closestTabGroup===e}))),e._tabs.notifyOnChanges()}))}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(e){this.focusChange.emit(this._createChangeEvent(e))}},{key:"_createChangeEvent",value:function(e){var t=new Aq;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}},{key:"_subscribeToTabLabels",value:function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=K.apply(void 0,_toConsumableArray(this._tabs.map((function(e){return e._stateChanges})))).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}},{key:"_clampTabIndex",value:function(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}},{key:"_getTabLabelId",value:function(e){return"mat-tab-label-".concat(this._groupId,"-").concat(e)}},{key:"_getTabContentId",value:function(e){return"mat-tab-content-".concat(this._groupId,"-").concat(e)}},{key:"_setTabBodyWrapperHeight",value:function(e){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(e,t,n){e.disabled||(this.selectedIndex=t.focusIndex=n)}},{key:"_getTabIndex",value:function(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=iw(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=aw(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}}]),n}(Lq)).\u0275fac=function(e){return new(e||eq)(Mo(js),Mo(jr),Mo(xq,8),Mo(h_,8))},eq.\u0275dir=Ct({type:eq,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Cs]}),eq),Eq=((ZF=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){return _classCallCheck(this,n),t.call(this,e,i,a,r)}return n}(Iq)).\u0275fac=function(e){return new(e||ZF)(Mo(js),Mo(jr),Mo(xq,8),Mo(h_,8))},ZF.\u0275cmp=gt({type:ZF,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,wq,!0),2&e&&ac(i=dc())&&(t._allTabs=i)},viewQuery:function(e,t){var n;1&e&&(oc(VF,!0),oc(HF,!0)),2&e&&(ac(n=dc())&&(t._tabBodyWrapper=n.first),ac(n=dc())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&rs("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Vs([{provide:bq,useExisting:ZF}]),Cs],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(Io(0,"mat-tab-header",0,1),Ho("indexFocused",(function(e){return t._focusChanged(e)}))("selectFocusedIndex",(function(e){return t.selectedIndex=e})),Do(2,zF,4,14,"div",2),Eo(),Io(3,"div",3,4),Do(5,UF,1,8,"mat-tab-body",5),Eo()),2&e&&(Ao("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),ma(2),Ao("ngForOf",t._tabs),ma(1),rs("_mat-animation-noopable","NoopAnimations"===t._animationMode),ma(2),Ao("ngForOf",t._tabs))},directives:function(){return[qq,Ld,Rq,hD,uC,Ed,RM,Mq]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),ZF),Oq=xC((function e(){_classCallCheck(this,e)})),Rq=((tq=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).elementRef=e,i}return _createClass(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Oq)).\u0275fac=function(e){return new(e||tq)(Mo(js))},tq.\u0275dir=Ct({type:tq,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(wo("aria-disabled",!!t.disabled),rs("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[Cs]}),tq),Pq=yw({passive:!0}),Yq=((cq=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=a,this._ngZone=r,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new T,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new T,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Gl,this.indexFocused=new Gl,r.runOutsideAngular((function(){qS(t.nativeElement,"mouseleave").pipe($S(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;qS(this._previousPaginator.nativeElement,"touchstart",Pq).pipe($S(this._destroyed)).subscribe((function(){e._handlePaginatorPress("before")})),qS(this._nextPaginator.nativeElement,"touchstart",Pq).pipe($S(this._destroyed)).subscribe((function(){e._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:mu(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Vw(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),K(t,n,this._items.changes).pipe($S(this._destroyed)).subscribe((function(){i(),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())})),this._keyManager.change.pipe($S(this._destroyed)).subscribe((function(t){e.indexFocused.emit(t),e._setTabFocus(t)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Gb(e))switch(e.keyCode){case 36:this._keyManager.setFirstItemActive(),e.preventDefault();break;case 35:this._keyManager.setLastItemActive(),e.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e);break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run((function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t=this._platform,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(n),"px)"),t&&(t.TRIDENT||t.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,a=this._tabListContainer.nativeElement.offsetWidth,r=t.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,c=this.scrollDistance+a;n<l?this.scrollDistance-=l-n+60:i>c&&(this.scrollDistance+=i-c+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),GS(650,100).pipe($S(K(this._stopScrolling,this._destroyed))).subscribe((function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,a=t.distance;(0===a||a>=i)&&n._stopInterval()})))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=aw(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||cq)(Mo(js),Mo(jr),Mo(kM),Mo(pC,8),Mo(qc),Mo(mw),Mo(h_,8))},cq.\u0275dir=Ct({type:cq,inputs:{disablePagination:"disablePagination"}}),cq),Fq=((lq=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,e,i,a,r,o,s,l))._disableRipple=!1,c}return _createClass(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=iw(e)}}]),n}(Yq)).\u0275fac=function(e){return new(e||lq)(Mo(js),Mo(jr),Mo(kM),Mo(pC,8),Mo(qc),Mo(mw),Mo(h_,8))},lq.\u0275dir=Ct({type:lq,inputs:{disableRipple:"disableRipple"},features:[Cs]}),lq),qq=((sq=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l){return _classCallCheck(this,n),t.call(this,e,i,a,r,o,s,l)}return n}(Fq)).\u0275fac=function(e){return new(e||sq)(Mo(js),Mo(jr),Mo(kM),Mo(pC,8),Mo(qc),Mo(mw),Mo(h_,8))},sq.\u0275cmp=gt({type:sq,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&lc(n,Rq,!1),2&e&&ac(i=dc())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(rc(_q,!0),rc(dq,!0),rc(hq,!0),oc(fq,!0),oc(pq,!0)),2&e&&(ac(n=dc())&&(t._inkBar=n.first),ac(n=dc())&&(t._tabListContainer=n.first),ac(n=dc())&&(t._tabList=n.first),ac(n=dc())&&(t._nextPaginator=n.first),ac(n=dc())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&rs("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Cs],ngContentSelectors:PF,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(Go(),Io(0,"div",0,1),Ho("click",(function(){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(){return t._stopInterval()})),Oo(2,"div",2),Eo(),Io(3,"div",3,4),Ho("keydown",(function(e){return t._handleKeydown(e)})),Io(5,"div",5,6),Ho("cdkObserveContent",(function(){return t._onContentChanges()})),Io(7,"div",7),Qo(8),Eo(),Oo(9,"mat-ink-bar"),Eo(),Eo(),Io(10,"div",8,9),Ho("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(){return t._handlePaginatorClick("after")}))("touchend",(function(){return t._stopInterval()})),Oo(12,"div",2),Eo()),2&e&&(rs("mat-tab-header-pagination-disabled",t._disableScrollBefore),Ao("matRippleDisabled",t._disableScrollBefore||t.disableRipple),ma(5),rs("_mat-animation-noopable","NoopAnimations"===t._animationMode),ma(5),rs("mat-tab-header-pagination-disabled",t._disableScrollAfter),Ao("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[hD,Tw,_q],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),sq),Vq=((oq=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:oq}),oq.\u0275inj=me({factory:function(e){return new(e||oq)},imports:[[uh,MC,FM,fD,Aw,hC],MC]}),oq),Hq=((rq=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:rq}),rq.\u0275inj=me({factory:function(e){return new(e||rq)},imports:[[FL,MC]]}),rq),Nq=((aq=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:aq}),aq.\u0275inj=me({factory:function(e){return new(e||aq)},imports:[hC,VA,PL,FL,qA,YI,FI,rE,CS,oE,sE,wE,SE,dF,VO,$x,HO,vR,FR,mT,PE,qR,NR,nD,FP,qP,nY,fY,fD,cP,UT,_Y,mY,LY,lF,EF,Vq,AS,bP,Hq,FM,bM]}),aq),Bq=((iq=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:iq}),iq.\u0275inj=me({factory:function(e){return new(e||iq)},imports:[[Vf,p_,Vf,p_,nv,af,iv,Nq,Fb]]}),iq),jq=((nq=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:nq}),nq.\u0275inj=me({factory:function(e){return new(e||nq)},imports:[[uh,nv,iv,Nq,Bq,iA]]}),nq),zq=((uq=function e(t){_classCallCheck(this,e),this.viewContainerRef=t}).\u0275fac=function(e){return new(e||uq)(Mo(ml))},uq.\u0275dir=Ct({type:uq,selectors:[["","appCompHost",""]]}),uq);function Uq(e){return"card"===e?"Physical Access Card":"mobile"===e?"Mobile ID":""}function Wq(e){return"requester"===e?"Requester":"sponsor"===e?"Sponsor":"approval1"===e?"Endorser / Approver *":"approval2"===e||"approval3"===e||"approval4"===e?"Endorser / Approver":"fmohd"===e?"FMO Help Desk":"fmocss"===e?"FMO Client Service":"fmotdp"===e?"FMO TDP":""}function Gq(e){return"submit"===e?"Submitted Request":"approve"===e?"Approved Request":"reject"===e?"Rejected Request":"process"===e?"Processed Request":""}function Qq(e){return"requester"===e?"Failed":"sponsor"===e?"Pending for Sponsor":"approval1"===e||"approval2"===e||"approval3"===e||"approval4"===e?"Pending for Approval":"fmohd"===e||"fmocss"===e||"fmotdp"===e?"Pending for FMO process":"completed"===e?"Completed":"rejected"===e?"Rejected":"cancelled"===e?"Cancelled by requester":""}function Kq(e){if(!e)return"N/A";switch(e){case 1:return"Pending Registration";case 2:return"Registered";case 3:return"Revoked";case 4:return"Pending Registration";default:return"Undefined Status"}}function $q(e){if(!e)return"N/A";switch(e){case"N":return"New";case"R":return"Renew";default:return"N/A"}}var Jq,Xq,Zq,eV=["*"],tV=((Zq=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Zq)},Zq.\u0275cmp=gt({type:Zq,selectors:[["app-overlay"]],ngContentSelectors:eV,decls:3,vars:0,consts:[[1,"polyu-overlay-shade"],[1,"polyu-overlay-content"]],template:function(e,t){1&e&&(Go(),Oo(0,"div",0),Io(1,"div",1),Qo(2),Eo())},styles:[".polyu-overlay-shade[_ngcontent-%COMP%]{background:#000;opacity:.2;z-index:1}.polyu-overlay-content[_ngcontent-%COMP%], .polyu-overlay-shade[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;left:0;top:0}.polyu-overlay-content[_ngcontent-%COMP%]{bottom:0;right:0;margin:0;display:flex;align-items:center;justify-content:center;opacity:1;z-index:2}"]}),Zq),nV=((Xq=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Xq)},Xq.\u0275cmp=gt({type:Xq,selectors:[["app-loader"]],decls:5,vars:0,consts:[[1,"polyu-loader"],[1,"polyu-loader-cube1","polyu-loader-cube"],[1,"polyu-loader-cube2","polyu-loader-cube"],[1,"polyu-loader-cube4","polyu-loader-cube"],[1,"polyu-loader-cube3","polyu-loader-cube"]],template:function(e,t){1&e&&(Io(0,"div",0),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"div",4),Eo())},styles:[""]}),Xq),iV=((Jq=function(){function e(t){_classCallCheck(this,e),this._applicationService=t,this.userInfo=null,this.displayValue=null}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_update",value:function(){var e=this;this.userInfo=null,this.displayValue=null,this._netid&&this._displayField&&this._applicationService.getUser(this._netid).subscribe({next:function(t){t&&(e.userInfo=t,e.displayValue=e.userInfo[e._displayField])},error:function(t){e.userInfo=null,e.displayValue=null}})}},{key:"netid",set:function(e){this._netid=e,this._update()}},{key:"displayField",set:function(e){this._displayField=e,this._update()}}]),e}()).\u0275fac=function(e){return new(e||Jq)(Mo(_S))},Jq.\u0275cmp=gt({type:Jq,selectors:[["app-people"]],inputs:{netid:"netid",displayField:"displayField"},decls:1,vars:1,template:function(e,t){1&e&&_s(0),2&e&&vs("",t.displayValue?t.displayValue:"\xa0","\n")},styles:[""]}),Jq);function aV(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function rV(e,t){1&e&&(Io(0,"th",22),_s(1," ID "),Eo())}function oV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function sV(e,t){1&e&&(Io(0,"th",22),_s(1," Sponsor "),Eo())}function lV(e,t){if(1&e&&(Io(0,"td",23),Oo(1,"app-people",24),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.sponsor)("displayField","displayName")}}function cV(e,t){1&e&&(Io(0,"th",22),_s(1," Visitor Name "),Eo())}function uV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function dV(e,t){1&e&&(Io(0,"th",22),_s(1,"Departments"),Oo(2,"br"),_s(3," to be accessed "),Eo())}function hV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function fV(e,t){1&e&&(Io(0,"th",22),_s(1,"Start"),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function pV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStartDate," ")}}function mV(e,t){1&e&&(Io(0,"th",22),_s(1,"End"),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function _V(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEndDate," ")}}function gV(e,t){1&e&&(Io(0,"th",22),_s(1," Access Media "),Eo())}function vV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessMedia," ")}}function yV(e,t){1&e&&(Io(0,"th",22),_s(1," Type "),Eo())}function kV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestType," ")}}function bV(e,t){1&e&&(Io(0,"th",22),_s(1," Request Status "),Eo())}function wV(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.stage," ")}}function CV(e,t){1&e&&Oo(0,"tr",25)}function DV(e,t){if(1&e){var n=Fo();Io(0,"tr",26),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var SV,MV=function(){return[5,10,20]},xV=((SV=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this.displayedColumns=["requestId","name","sponsor","accessDepartment","accessStartDate","accessEndDate","accessMedia","type","stage"],this.selected=new Gl,this._dataSource=new OF([]),this.fcFilterString=new Fg("")}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dataSource.paginator=this.paginator,this._dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,t){if(!t)return!0;var n=t.toLowerCase().replace(/[^a-z]/,"");if(!n)return!0;if(String(e.requestId).toLowerCase().indexOf(t.toLowerCase())>=0)return!0;if(e.name.toLowerCase().replace(/[^a-z]/,"").indexOf(n)>=0)return!0;var i,a=_createForOfIteratorHelper(e.accessDepartment.split(","));try{for(a.s();!(i=a.n()).done;)if(i.value.toLowerCase().replace(/[^a-z]/,"")===n)return!0}catch(r){a.e(r)}finally{a.f()}return!1},this.fcFilterString.valueChanges.subscribe({next:function(t){return e._dataSource.filter=t}}),this._dataSource.filter=this.fcFilterString.value,this.selectedRow=null,this.isLoading=!1,this.refresh()}},{key:"refresh",value:function(){var e=this;this.isLoading=!0,this._applicationService.listRequest(this.role,null,[],null).pipe(V((function(e){return e.map((function(e){return{requestId:e.requestId,name:e.name,sponsor:e.sponsor,accessDepartment:e.accessDepartment,accessStartDate:dd(e.accessStartDate,"dd-MM-yyyy","en-HK"),accessEndDate:dd(e.accessEndDate,"dd-MM-yyyy","en-HK"),accessMedia:Uq(e.cardType),requestType:$q(e.requestType),stage:Qq(e.stage),data:e}}))})),Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e._dataSource.data=t},error:function(t){e._dataSource.data=[]}})}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e.data)}},{key:"unselectRow",value:function(){this.selectedRow=null}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||SV)(Mo(_S),Mo(tv))},SV.\u0275cmp=gt({type:SV,selectors:[["app-request-list"]],viewQuery:function(e,t){var n;1&e&&(rc(eF,!0),rc(YP,!0)),2&e&&(ac(n=dc())&&(t.sort=n.first),ac(n=dc())&&(t.paginator=n.first))},inputs:{role:"role"},outputs:{selected:"selected"},decls:44,vars:8,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-list-search-bar"],[1,"polyu-list-search-bar-group"],["matInput","","placeholder","Filter",3,"formControl"],["mat-raised-button","","download","","target","_blank",3,"href"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sponsor"],["matColumnDef","name"],["matColumnDef","accessDepartment"],["matColumnDef","accessStartDate"],["matColumnDef","accessEndDate"],["matColumnDef","accessMedia"],["matColumnDef","type"],["matColumnDef","stage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"netid","displayField"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,aV,2,0,"app-overlay",1),Io(2,"div",2),Io(3,"div",3),Io(4,"div"),_s(5,"Search"),Eo(),Io(6,"div"),Oo(7,"input",4),Eo(),Eo(),Io(8,"div",3),Io(9,"div"),Io(10,"a",5),_s(11,"Download"),Eo(),Eo(),Eo(),Eo(),Io(12,"div",6),Io(13,"table",7),Ro(14,8),Do(15,rV,2,0,"th",9),Do(16,oV,2,1,"td",10),Po(),Ro(17,11),Do(18,sV,2,0,"th",9),Do(19,lV,2,2,"td",10),Po(),Ro(20,12),Do(21,cV,2,0,"th",9),Do(22,uV,2,1,"td",10),Po(),Ro(23,13),Do(24,dV,4,0,"th",9),Do(25,hV,2,1,"td",10),Po(),Ro(26,14),Do(27,fV,4,0,"th",9),Do(28,pV,2,1,"td",10),Po(),Ro(29,15),Do(30,mV,4,0,"th",9),Do(31,_V,2,1,"td",10),Po(),Ro(32,16),Do(33,gV,2,0,"th",9),Do(34,vV,2,1,"td",10),Po(),Ro(35,17),Do(36,yV,2,0,"th",9),Do(37,kV,2,1,"td",10),Po(),Ro(38,18),Do(39,bV,2,0,"th",9),Do(40,wV,2,1,"td",10),Po(),Do(41,CV,1,0,"tr",19),Do(42,DV,1,2,"tr",20),Eo(),Oo(43,"mat-paginator",21),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(6),Ao("formControl",t.fcFilterString),ma(3),$o("href","/vrs-ajax/download/request/",t.role,"",Xi),ma(3),Ao("dataSource",t.dataSource),ma(28),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("pageSizeOptions",Ol(7,MV)))},directives:[Ed,RE,M_,P_,Wg,wS,pF,eF,kF,vF,_F,DF,MF,YP,tV,nV,wF,sF,CF,iV,TF,LF],styles:["table[_ngcontent-%COMP%]{width:100%}.polyu-list-search-bar[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between}.polyu-list-search-bar-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.polyu-list-search-bar-group[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:10px 5px}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}tr.polyu-expandable-row[_ngcontent-%COMP%]{height:0}.polyu-expandable-cell-container[_ngcontent-%COMP%]{overflow:hidden;display:flex}.polyu-expandable-cell-content[_ngcontent-%COMP%]{padding:16px}"]}),SV);function TV(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var AV,LV=((AV=function(){function e(t){_classCallCheck(this,e),this._applicationService=t,this._data=new BD,this.isLoading=!1,this.statusLabel=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetData",value:function(e){var t=this;e?(this.isLoading=!0,this._data=new BD,this._applicationService.getData(e).pipe(Qv((function(){t._redrawUi(),t.isLoading=!1}))).subscribe({next:function(e){t._data=e}})):(this._data=new BD,this._redrawUi())}},{key:"_redrawUi",value:function(){this.statusLabel=this._data.visitor.suspendFlag?"Suspended":this._data.visitor.active?"Active":"Expired"}},{key:"data",get:function(){return this._data}}]),e}()).\u0275fac=function(e){return new(e||AV)(Mo(_S))},AV.\u0275cmp=gt({type:AV,selectors:[["app-request-visitor"]],decls:17,vars:3,consts:[[1,"polyu-inner-content","polyu-expandable-cell-content"],[1,"polyu-section-headline"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"mat-elevation-z8","mat-table","polyu-info-table"],[1,"mat-header-column"],[1,"mat-header-cell","polyu-visitor-table-column1"],[1,"mat-cell","polyu-visitor-table-column2"],[1,"mat-header-cell"],[1,"mat-cell"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h3",1),_s(2,"Visitor Information"),Eo(),Io(3,"div",2),Do(4,TV,2,0,"app-overlay",3),Io(5,"table",4),Io(6,"tbody"),Io(7,"tr",5),Io(8,"th",6),_s(9,"Visitor ID"),Eo(),Io(10,"td",7),_s(11),Eo(),Eo(),Io(12,"tr",5),Io(13,"th",8),_s(14,"Visitor Status"),Eo(),Io(15,"td",9),_s(16),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(4),Ao("ngIf",t.isLoading),ma(7),gs(t.data.visitor.userId),ma(5),vs(" ",t.statusLabel," "))},directives:[Ed,tV,nV],styles:[".polyu-visitor-table-column1[_ngcontent-%COMP%]{width:35%}.polyu-visitor-table-column2[_ngcontent-%COMP%]{width:65%}"]}),AV);function IV(e){return e.value?new RegExp("^[A-Z]?s*[A-Z][0-9]{6}[s(]*[0-9A][s)]*$").test(e.value)?null:{hkid:!0}:null}function EV(e){return function(t){var n=t.value;if(!n||!n.fileName||!e)return null;var i,a=n.fileName.split(".").slice(-1)[0].toLowerCase(),r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){if(i.value.toLowerCase()===a.toLowerCase())return null}}catch(o){r.e(o)}finally{r.f()}return{filetype:!0}}}function OV(e){return function(t){var n=t.value;return n&&n.fileName&&e&&n.fileName.length>e?{filename:!0}:null}}function RV(e){return e.value&&e.value.fileName?null:{required:!0}}function PV(e){return function(t){if(t.value){var n=t.value;if(n.localFile&&n.localFile.size/1024/1024>e)return{maxSize:!0}}return null}}function YV(e){return e.value?new RegExp("^[a-zA-Z0-9]+$").test(e.value)?new RegExp("[a-z]+").test(e.value)?{lowerCase:!0}:new RegExp("[OIQ]+").test(e.value)?{excludedCharacters:!0}:null:{alphanumeric:!0}:null}function FV(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function qV(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate()):null}var VV=function e(){_classCallCheck(this,e),this.attachmentId=0,this.fileName=null,this.localFile=null};function HV(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function NV(e,t){1&e&&Oo(0,"app-overlay")}function BV(e,t){1&e&&(Io(0,"th",18),_s(1," Sponsor "),Eo())}function jV(e,t){if(1&e&&(Io(0,"td",19),Oo(1,"app-people",20),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.sponsor)("displayField","displayName")}}function zV(e,t){1&e&&(Io(0,"th",18),_s(1," Visitor Name "),Eo())}function UV(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function WV(e,t){1&e&&(Io(0,"th",18),_s(1,"Departments"),Oo(2,"br"),_s(3," to be accessed "),Eo())}function GV(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function QV(e,t){1&e&&(Io(0,"th",18),_s(1," Start "),Eo())}function KV(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStartDate," ")}}function $V(e,t){1&e&&(Io(0,"th",18),_s(1," End "),Eo())}function JV(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEndDate," ")}}function XV(e,t){1&e&&(Io(0,"th",18),_s(1," Access Media "),Eo())}function ZV(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessMedia," ")}}function eH(e,t){1&e&&(Io(0,"th",18),_s(1," Request Status "),Eo())}function tH(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.stage," ")}}function nH(e,t){1&e&&Oo(0,"tr",21)}function iH(e,t){1&e&&Oo(0,"tr",22)}var aH,rH=((aH=function(){function e(t){_classCallCheck(this,e),this._applicationService=t,this.displayedColumns=["name","sponsor","accessDepartment","accessStartDate","accessEndDate","accessMedia","stage"],this._dataSource=new OF([]),this.isLoading=!1,this.isValidated=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"searchByInfo",value:function(e){var t=this;this.isLoading=!0,e.pipe(V((function(e){return e.map((function(e){return{name:e.name,sponsor:e.sponsor,accessDepartment:e.accessDepartment,accessStartDate:dd(e.accessStartDate,"dd-MM-yyyy","en-HK"),accessEndDate:dd(e.accessEndDate,"dd-MM-yyyy","en-HK"),accessMedia:Uq(e.cardType),stage:Qq(e.stage)}}))})),Qv((function(){t.isLoading=!1,t.isValidated=!0}))).subscribe({next:function(e){t._dataSource.data=e}})}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||aH)(Mo(_S))},aH.\u0275cmp=gt({type:aH,selectors:[["app-request-kyc"]],decls:32,vars:5,consts:[[1,"polyu-section-headline"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","sponsor"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","accessDepartment"],["matColumnDef","accessStartDate"],["matColumnDef","accessEndDate"],["matColumnDef","accessMedia"],["matColumnDef","stage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"netid","displayField"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Io(0,"h3",0),_s(1,"Previous Requests"),Eo(),Io(2,"div",1),Do(3,HV,2,0,"app-overlay",2),Do(4,NV,1,0,"app-overlay",2),Io(5,"div",3),Io(6,"div",4),Io(7,"div",5),Io(8,"table",6),Ro(9,7),Do(10,BV,2,0,"th",8),Do(11,jV,2,2,"td",9),Po(),Ro(12,10),Do(13,zV,2,0,"th",8),Do(14,UV,2,1,"td",9),Po(),Ro(15,11),Do(16,WV,4,0,"th",8),Do(17,GV,2,1,"td",9),Po(),Ro(18,12),Do(19,QV,2,0,"th",8),Do(20,KV,2,1,"td",9),Po(),Ro(21,13),Do(22,$V,2,0,"th",8),Do(23,JV,2,1,"td",9),Po(),Ro(24,14),Do(25,XV,2,0,"th",8),Do(26,ZV,2,1,"td",9),Po(),Ro(27,15),Do(28,eH,2,0,"th",8),Do(29,tH,2,1,"td",9),Po(),Do(30,nH,1,0,"tr",16),Do(31,iH,1,0,"tr",17),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf",t.isLoading),ma(1),Ao("ngIf",!t.isValidated),ma(4),Ao("dataSource",t.dataSource),ma(22),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,tV,nV,wF,sF,CF,iV,TF,LF],styles:["table[_ngcontent-%COMP%]{width:100%}"]}),aH);function oH(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function sH(e,t){if(1&e&&(Io(0,"div",3),Io(1,"span",4),Io(2,"span",5),_s(3),Eo(),Eo(),Io(4,"span",6),_s(5),Eo(),Io(6,"span",7),_s(7),Eo(),Eo()),2&e){var n=Uo();ma(3),gs(n.user.displayName),ma(2),gs(n.user.title),ma(2),gs(n.user.email)}}function lH(e,t){1&e&&(Io(0,"div",3),_s(1," >"),Io(2,"span"),_s(3,"Error"),Eo(),Eo())}var cH,uH,dH,hH=((uH=function(){function e(t){_classCallCheck(this,e),this._applicationService=t,this.isLoading=!0,this.user=null}return _createClass(e,[{key:"ngOnInit",value:function(){this.user=null,this.isLoading=!1,this.showError=!1}},{key:"setId",value:function(e){var t=this;e&&this._id!==e?(this._id=e,this.isLoading=!0,this._applicationService.getUser(e).subscribe({next:function(e){t.user=e,t.showError=!1,t.isLoading=!1},error:function(e){t.showError=!0,t.isLoading=!1,t.user=null,t._id=null}})):(this.user=null,this._id=null,this.showError=!1)}}]),e}()).\u0275fac=function(e){return new(e||uH)(Mo(_S))},uH.\u0275cmp=gt({type:uH,selectors:[["app-people-summary"]],decls:4,vars:3,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[3,"ngIf"],[1,"polyu-button-layout-2"],[1,"people-text-name"],[1,"people-text-name-inner"],["ng-if","null != user.title",1,"people-text-title"],[1,"people-text-email"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,oH,2,0,"app-overlay",1),Do(2,sH,8,3,"ng-template",2),Do(3,lH,4,0,"ng-template",2),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(1),Ao("ngIf",t.user),ma(1),Ao("ngIf",t.showError))},directives:[Ed,tV,nV],styles:[".polyu-overlay-container[_ngcontent-%COMP%]{padding:30px}.people-text-name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:var(--neutralPrimary)}.people-text-name-inner[_ngcontent-%COMP%]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%], .people-text-title[_ngcontent-%COMP%]{font-size:12px;font-weight:400;display:block;color:var(--neutralSecondary);position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%]{top:-2px}"]}),uH),fH=((cH=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"format",value:function(e,t){if("input"===t){var n=e.getDate().toString();n=+n<10?"0"+n:n;var i=(e.getMonth()+1).toString();return i=+i<10?"0"+i:i,"".concat(n,"-").concat(i,"-").concat(e.getFullYear())}return e.toDateString()}}]),n}(ZC)).\u0275fac=function(e){return pH(e||cH)},cH.\u0275prov=fe({token:cH,factory:cH.\u0275fac}),cH),pH=ci(fH),mH={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},_H=["*"],gH=((dH=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||dH)},dH.\u0275cmp=gt({type:dH,selectors:[["app-form-field"]],inputs:{label:"label",icon:"icon"},ngContentSelectors:_H,decls:16,vars:1,consts:[["ng-reflect-appearance","standard",1,"mat-form-field","ng-tns-c12-5","mat-primary","mat-form-field-type-mat-input","mat-form-field-appearance-standard","mat-form-field-can-float","mat-form-field-should-float","mat-form-field-has-label","ng-untouched","ng-pristine","ng-invalid","polyu-form-field"],[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex"],[1,"mat-form-field-infix"],[1,"mat-form-field-label-wrapper"],["ng-reflect-ng-switch","true","ng-reflect-disabled","true","id","mat-form-field-label-11","for","mat-input-5","aria-owns","mat-input-5",1,"mat-form-field-label","ng-tns-c12-5","ng-star-inserted"],[1,"ng-star-inserted"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker","ng-tns-c12-5","ng-star-inserted"],[1,"mat-form-field-underline","ng-tns-c12-5","ng-star-inserted"],[1,"mat-form-field-ripple"],["ng-reflect-ng-switch","hint",1,"mat-form-field-subscript-wrapper"],[1,"mat-form-field-hint-wrapper","ng-tns-c12-5","ng-trigger","ng-trigger-transitionMessages","ng-star-inserted",2,"opacity","1","transform","translateY(0%)"],[1,"mat-form-field-hint-spacer"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Io(1,"div",1),Io(2,"div",2),Io(3,"div",3),Qo(4),Io(5,"span",4),Io(6,"label",5),Io(7,"mat-label",6),_s(8),Eo(),Io(9,"span",7),_s(10," *"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(11,"div",8),Oo(12,"span",9),Eo(),Io(13,"div",10),Io(14,"div",11),Oo(15,"div",12),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(8),gs(t.label))},directives:[gI],styles:[".polyu-form-field[_ngcontent-%COMP%]{width:100%}"]}),dH);function vH(e,t){1&e&&Oo(0,"mat-spinner",3)}function yH(e,t){if(1&e){var n=Fo();Io(0,"div",5),Io(1,"div",6),Io(2,"div",7),Io(3,"button",8),Ho("click",(function(){en(n);var e=t.$implicit;return Uo(2).selectUser(e)})),Io(4,"div",9),Io(5,"div",10),Io(6,"div",11),Io(7,"div",12),Io(8,"div",13),Oo(9,"div",14),Eo(),Eo(),Eo(),Io(10,"div",15),Io(11,"span",16),Io(12,"span",17),_s(13),Eo(),Eo(),Io(14,"span",18),_s(15),Eo(),Io(16,"span",19),_s(17),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()}if(2&e){var i=t.$implicit;ma(13),gs(i.displayName),ma(2),gs(i.title),ma(2),gs(i.email)}}function kH(e,t){1&e&&Do(0,yH,18,3,"div",4),2&e&&Ao("ngForOf",Uo().filteredUsers)}var bH,wH,CH,DH,SH=((bH=function(){function e(t,n,i){_classCallCheck(this,e),this._dialog=t,this._dialogRef=n,this._applicationService=i,this.formControl=new Fg({value:"",disabled:!1}),this.filteredUsers=[],this.searchStatus="init"}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.pipe(Uv((function(t){return e.searchStatus=t.length>=3?"searching":"init"})),gu((function(e){return e.length>=3})),Xb(300),Pv((function(t){return e._applicationService.searchUsers(String(t))}))).subscribe({next:function(t){e.filteredUsers=t,e.searchStatus=e.filteredUsers?"done":"empty"}})}},{key:"displayFn",value:function(e){if(e)return e.email}},{key:"selectUser",value:function(e){this._dialogRef.close(e)}}]),e}()).\u0275fac=function(e){return new(e||bH)(Mo(Bx),Mo(Fx),Mo(_S))},bH.\u0275cmp=gt({type:bH,selectors:[["app-people-picker-form"]],decls:4,vars:3,consts:[[1,"polyu-input-field"],["matInput","","placeholder","Search user by Display Name, Email","aria-label","Search user by Display Name, Email",3,"formControl"],[3,"ngIf"],["diameter","50"],["class","polyu-suggestion","id","suggestion-list","role","list",4,"ngFor","ngForOf"],["id","suggestion-list","role","list",1,"polyu-suggestion"],["role","listitem"],[1,"polyu-suggestion-item"],["type","button","data-is-focusable","true",1,"polyu-button",3,"click"],[1,"polyu-button-container"],[1,"polyu-button-layout-1"],[1,"polyu-button-image"],[1,"ms-Persona","ms-Persona--size32","_3fxSw_KFta16t28JP70e_s","root-389"],[1,"ms-Persona-coin","ms-Persona--size32","coin-105"],[1,"ms-Persona-imageArea","imageArea-390"],[1,"polyu-button-layout-2"],[1,"people-text-name"],[1,"people-text-name-inner"],["ng-if","null != user.title",1,"people-text-title"],[1,"people-text-email"]],template:function(e,t){1&e&&(Io(0,"mat-form-field",0),Oo(1,"input",1),Eo(),Do(2,vH,1,0,"ng-template",2),Do(3,kH,1,1,"ng-template",2)),2&e&&(ma(1),Ao("formControl",t.formControl),ma(1),Ao("ngIf","searching"===t.searchStatus),ma(1),Ao("ngIf","done"===t.searchStatus))},directives:[SI,RE,M_,P_,Wg,Ed,tY,Ld],styles:[".polyu-input-field[_ngcontent-%COMP%]{width:100%}.polyu-option-item-img[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.polyu-suggestion[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:100%;max-height:300px}.polyu-suggestion-item[_ngcontent-%COMP%]{display:flex;align-items:stretch;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.polyu-button[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;border:1px solid transparent;background-color:transparent;padding-bottom:10px}.polyu-button-container[_ngcontent-%COMP%]{outline:medium none transparent;position:relative;box-sizing:border-box;display:inline-block;text-decoration:none;text-align:center;cursor:pointer;vertical-align:top;padding:0 4px;border-radius:2px;height:40px}.polyu-button-layout-1[_ngcontent-%COMP%]{display:flex;height:100%;flex-wrap:nowrap;justify-content:flex-start;align-items:center}.polyu-button-layout-2[_ngcontent-%COMP%]{text-align:left;min-width:0;overflow:hidden}.people-text-name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:var(--neutralPrimary)}.people-text-name-inner[_ngcontent-%COMP%]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%], .people-text-title[_ngcontent-%COMP%]{font-size:12px;font-weight:400;display:block;color:var(--neutralSecondary);position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%]{top:-2px}"]}),bH),MH=["displayField",""],xH=((CH=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this._focusMonitor=t,this._elementRef=n,this.ngControl=i,this._applicationService=a,this._dialog=r,this.stateChanges=new T,this.focused=!1,this.controlType="app-people-picker2",this.id="app-people-picker2-".concat(e.nextId++),this.describedBy="",this.onChange=function(e){},this.onTouched=function(){},this._required=!1,this._disabled=!1,this.fc=new Fg("",[]),this.fcDisplay=new Fg("",[]),this.onDataSelectedEvent=new Gl,t.monitor(n,!0).subscribe((function(e){o.focused&&!e&&o.onTouched(),o.focused=!!e,o.stateChanges.next()})),null!=this.ngControl&&(this.ngControl.valueAccessor=this),this._dialogConfig={disableClose:!1,autoFocus:!0,hasBackdrop:!0,backdropClass:"backdrop",height:"500px",width:"500px",maxWidth:"100%",maxHeight:"100%"},this.readonly=!1,this.displayField="displayName"}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"ngDoCheck",value:function(){this.stateChanges.next()}},{key:"setDescribedByIds",value:function(e){this.describedBy=e.join(" ")}},{key:"onContainerClick",value:function(e){"mat-icon"===e.target.tagName.toLowerCase()&&this.fc.value?this.handleClear():this.handlePeopleSearch()}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"handleClear",value:function(){this.readonly||(this.value="",this.onChange(""),this.stateChanges.next())}},{key:"handlePeopleSearch",value:function(){var e=this;this.readonly||this._dialogRef||(this._dialogRef=this._dialog.open(SH,this._dialogConfig),this._dialogRef.afterClosed().subscribe((function(t){t&&(e.value=t.netid,e.onChange(t.netid)),e._dialogRef=null,e.stateChanges.next()})))}},{key:"errorState",get:function(){return null!==this.ngControl.errors&&!!this.ngControl.touched}},{key:"empty",get:function(){return!this.fc.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e),this.fc.setValidators(this._required?[N_.required]:[]),this.stateChanges.next()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._disabled?this.fcDisplay.disable():this.fcDisplay.enable(),this.stateChanges.next()}},{key:"value",get:function(){return this.fc.value||null},set:function(e){var t=this;this.fc.setValue(e),this.fcDisplay.setValue(e),this.stateChanges.next();var n=this._applicationService.getUser(e);n?n.subscribe({next:function(e){t.userInfo=e,t.displayField&&(t.fc.setValue(t.userInfo.netid),t.fcDisplay.setValue(t.userInfo[t.displayField])),t.onDataSelectedEvent.emit(t.userInfo),t.stateChanges.next()},error:function(e){t.userInfo=null,t.fc.setValue(""),t.fcDisplay.setValue(""),t.onDataSelectedEvent.emit(null),t.stateChanges.next()}}):(this.userInfo=null,this.fc.setValue(""),this.fcDisplay.setValue(""),this.onDataSelectedEvent.emit(null),this.stateChanges.next())}}]),e}()).nextId=0,CH.\u0275fac=function(e){return new(e||CH)(Mo(cC),Mo(js),Mo(O_,10),Mo(_S),Mo(Bx))},CH.\u0275cmp=gt({type:CH,selectors:[["app-people-picker2","displayField",""]],hostVars:2,hostBindings:function(e,t){2&e&&(ks("id",t.id),wo("aria-describedby",t.describedBy))},inputs:{placeholder:"placeholder",required:"required",disabled:"disabled",value:"value",displayField:"displayField",readonly:"readonly"},outputs:{onDataSelectedEvent:"onDataSelectedEvent"},features:[Vs([{provide:oI,useExisting:CH}])],attrs:MH,decls:2,vars:2,consts:[[1,"polyu-people-picker-container"],["aria-label","People Picker",1,"polyu-people-picker-element",3,"readonly","formControl","click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"input",1),Ho("click",(function(){return t.handlePeopleSearch()})),Eo(),Eo()),2&e&&(ma(1),Ao("readonly",!0)("formControl",t.fcDisplay))},directives:[M_,P_,Wg],styles:[".polyu-people-picker-container[_ngcontent-%COMP%]{display:flex}.polyu-people-picker-element[_ngcontent-%COMP%]{border:none;background:none;outline:none;font:inherit;width:100%}"]}),CH),TH=((wH=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wH)},wH.\u0275cmp=gt({type:wH,selectors:[["app-divider"]],decls:1,vars:0,consts:[[1,"polyu-divider"]],template:function(e,t){1&e&&Oo(0,"div",0)},styles:[".polyu-divider[_ngcontent-%COMP%]{width:100%;height:3px;margin-top:2em;margin-bottom:2em;background-color:#a02337}"]}),wH),AH=["fileInput"],LH=((DH=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this._ngControl=t,this._focusMonitor=n,this._elementRef=i,this._applicationService=a,this._dialog=r,this.id="app-file-upload2-".concat(e.nextId++),this.focused=!1,this._disabled=!1,this.controlType="app-file-upload2",this.describedBy="",this.onChange=function(e){},this.onTouched=function(){},this.stateChanges=new T,this.fc=new Fg(new VV,[]),this.fcDisplay=new Fg("",[]),n.monitor(i,!0).subscribe((function(e){o.focused&&!e&&o.onTouched(),o.focused=!!e,o.stateChanges.next()})),this.ngControl=t,null!=this.ngControl&&(this.ngControl.valueAccessor=this),this._required=!1,this.readonly=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"ngDoCheck",value:function(){this.stateChanges.next()}},{key:"setDescribedByIds",value:function(e){this.describedBy=e.join(" ")}},{key:"onContainerClick",value:function(e){"mat-icon"===e.target.tagName.toLowerCase()&&this.fc.value&&this.fc.value.fileName?this._handleClear():this._handleFileSelect()}},{key:"writeValue",value:function(e){console.log("DEBUG: file-upload2: writeValue: "+JSON.stringify(e)),this.value=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_handleClear",value:function(){if(!this.readonly){var e={attachmentId:this.value.attachmentId,fileName:null,localFile:null};this.fc.setValue(e),this.fcDisplay.setValue(e.fileName),this.stateChanges.next(),this.onChange(e)}}},{key:"_handleFileSelect",value:function(){this.readonly||this.fileInput.nativeElement.click()}},{key:"_handleFileSelected",value:function(e){if(console.log("DEBUG: _handleFileSelected: "+JSON.stringify(e)),!this.readonly&&e.target&&e.target.files&&e.target.files.length>0){var t=this.fc.value;t.localFile=e.target.files[0],t.fileName=t.localFile.name,this.fc.setValue(t),this.fcDisplay.setValue(t.fileName?t.fileName:""),this.stateChanges.next(),this.onChange(t)}}},{key:"value",get:function(){return this.fc&&this.fc.value?this.fc.value:null},set:function(e){var t=this;if(this.fc.setValue(e),this.fcDisplay.setValue(e.fileName),this.stateChanges.next(),e.attachmentId){var n=this._applicationService.getAttachmentInfo(e.attachmentId);n?n.subscribe({next:function(e){t.fc.setValue(e),t.fcDisplay.setValue(e.fileName?e.fileName:""),t.stateChanges.next()},error:function(e){t.fc.setValue(new VV),t.fcDisplay.setValue(""),t.stateChanges.next()}}):(this.fc.setValue(new VV),this.fcDisplay.setValue(""),this.stateChanges.next())}}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"empty",get:function(){return!this.fc.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e)}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._disabled?this.fcDisplay.disable():this.fcDisplay.enable(),this.stateChanges.next()}},{key:"errorState",get:function(){return null!==this.ngControl.errors&&!!this.ngControl.touched}}]),e}()).nextId=0,DH.\u0275fac=function(e){return new(e||DH)(Mo(O_,10),Mo(cC),Mo(js),Mo(_S),Mo(Bx))},DH.\u0275cmp=gt({type:DH,selectors:[["app-file-upload2"]],viewQuery:function(e,t){var n;1&e&&rc(AH,!0),2&e&&ac(n=dc())&&(t.fileInput=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&(ks("id",t.id),wo("aria-describedby",t.describedBy))},inputs:{value:"value",placeholder:"placeholder",required:"required",disabled:"disabled",readonly:"readonly"},features:[Vs([{provide:oI,useExisting:DH}])],decls:8,vars:6,consts:[[1,"polyu-people-picker-container"],[1,"polyu-people-picker-element-wrapper",3,"hidden"],["aria-label","File Upload",1,"polyu-people-picker-element",3,"readonly","formControl","click"],["hidden","","type","file",3,"change"],["fileInput",""],[3,"hidden"],["download","","target","_blank",3,"href"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Io(2,"input",2),Ho("click",(function(){return t._handleFileSelect()})),Eo(),Io(3,"input",3,4),Ho("change",(function(e){return t._handleFileSelected(e)})),Eo(),Eo(),Io(5,"div",5),Io(6,"a",6),_s(7),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("hidden",t.readonly),ma(1),Ao("readonly",!0)("formControl",t.fcDisplay),ma(3),Ao("hidden",!t.readonly),ma(1),$o("href","/vrs-ajax/requestAttachment/",t.fc.value.attachmentId,"",Xi),ma(1),gs(t.fc.value.fileName))},directives:[M_,P_,Wg],styles:[".polyu-people-picker-container[_ngcontent-%COMP%]{display:flex}.polyu-people-picker-element[_ngcontent-%COMP%]{border:none;background:none;outline:none;font:inherit;width:100%}.polyu-people-picker-element-wrapper[_ngcontent-%COMP%]{width:100%}"]}),DH),IH=["requestKycComponent"],EH=["peopleSummary"];function OH(e,t){1&e&&(Io(0,"div",30),Oo(1,"app-people-summary",null,31),Eo())}function RH(e,t){if(1&e&&(Io(0,"mat-option",34),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function PH(e,t){if(1&e&&(Io(0,"mat-select",32),Do(1,RH,2,2,"mat-option",33),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function YH(e,t){if(1&e&&Oo(0,"input",14),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment)("readonly",n.isReadonly.sponsorDepartment)}}function FH(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid email address. "),Eo())}function qH(e,t){if(1&e&&(Io(0,"div",25),Io(1,"mat-form-field",7),Io(2,"mat-label"),_s(3,"Visitor's Phone Number"),Eo(),Oo(4,"input",35),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.phone)("readonly",n.isReadonly.phone)}}function VH(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid HKID No. "),Eo())}function HH(e,t){if(1&e&&(Io(0,"div",6),Io(1,"mat-form-field",7),Io(2,"mat-label"),_s(3,"HKID No."),Eo(),Oo(4,"input",42),Do(5,VH,2,0,"mat-error",18),Eo(),Eo()),2&e){var n=Uo(2);ma(4),Ao("formControl",n.form.controls.hkid)("readonly",n.isReadonly.hkid),ma(1),Ao("ngIf",n.form.controls.hkid.hasError("required")||n.form.controls.hkid.hasError("hkid"))}}function NH(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid Passport No. "),Eo())}function BH(e,t){if(1&e&&(Io(0,"div",6),Io(1,"mat-form-field",7),Io(2,"mat-label"),_s(3,"Passport No."),Eo(),Oo(4,"input",42),Do(5,NH,2,0,"mat-error",18),Eo(),Eo()),2&e){var n=Uo(2);ma(4),Ao("formControl",n.form.controls.passport)("readonly",n.isReadonly.passport),ma(1),Ao("ngIf",n.form.controls.passport.hasError("required")||n.form.controls.passport.hasError("pattern"))}}function jH(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid Mainland ID No. "),Eo())}function zH(e,t){if(1&e&&(Io(0,"div",6),Io(1,"mat-form-field",7),Io(2,"mat-label"),_s(3,"Mainland ID No."),Eo(),Oo(4,"input",42),Do(5,jH,2,0,"mat-error",18),Eo(),Eo()),2&e){var n=Uo(2);ma(4),Ao("formControl",n.form.controls.mainlandId)("readonly",n.isReadonly.mainlandId),ma(1),Ao("ngIf",n.form.controls.mainlandId.hasError("required")||n.form.controls.mainlandId.hasError("pattern"))}}function UH(e,t){if(1&e){var n=Fo();Io(0,"div",6),Io(1,"app-form-field",4),Io(2,"mat-radio-group",36),Io(3,"mat-radio-button",37),_s(4," N/A "),Eo(),Io(5,"mat-radio-button",38),_s(6," HK ID. "),Eo(),Io(7,"mat-radio-button",39),_s(8," Passport "),Eo(),Eo(),Eo(),Eo(),Do(9,HH,6,3,"ng-template",11),Do(10,BH,6,3,"ng-template",11),Do(11,zH,6,3,"ng-template",11),Io(12,"div",6),Io(13,"div",40),Io(14,"div"),Io(15,"a",41),Ho("click",(function(){return en(n),Uo().refreshKyc()})),_s(16,"Confirm visitor information"),Eo(),Eo(),Eo(),Eo()}if(2&e){var i=Uo();ma(1),Ao("label","ID Type"),ma(1),Ao("formControl",i.form.controls.idtype),ma(1),Ao("disabled",i.isReadonly.idtype),ma(2),Ao("disabled",i.isReadonly.idtype),ma(2),Ao("disabled",i.isReadonly.idtype),ma(2),Ao("ngIf",i.isVisible.hkid),ma(1),Ao("ngIf",i.isVisible.passport),ma(1),Ao("ngIf",i.isVisible.mainlandId)}}function WH(e,t){if(1&e&&(Io(0,"mat-option",34),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function GH(e,t){if(1&e&&(Io(0,"mat-select",43),Do(1,WH,2,2,"mat-option",33),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function QH(e,t){if(1&e&&Oo(0,"input",14),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment)("readonly",n.isReadonly.accessDepartment)}}function KH(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",44),Oo(4,"mat-datepicker-toggle",45),Oo(5,"mat-datepicker",null,46),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessStartDate)("min",i.startDateMin)("max",i.startDateMax)("readonly",!0),ma(1),Ao("for",n)}}function $H(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",35),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessStartDate)("readonly",!0)}}function JH(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",44),Oo(4,"mat-datepicker-toggle",45),Oo(5,"mat-datepicker",null,47),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessEndDate)("min",i.endDateMin)("max",i.endDateMax)("readonly",!0),ma(1),Ao("for",n)}}function XH(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",35),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessEndDate)("readonly",!0)}}function ZH(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Account Code for Charging"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.chargingAccountCode)("readonly",n.isReadonly.chargingAccountCode)}}function eN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Consent file must be an image (PNG, JPG, GIF, TIF), a PDF file, a word document, or a compressed file (ZIP, RAR, 7Z) "),Eo())}function tN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Filename must not exceed 50 characters "),Eo())}function nN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Maximun file size is 20MB. "),Eo())}function iN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please upload a consent document signed by the visitor "),Eo())}function aN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Consent file must be an image (PNG, JPG, GIF, TIF), a PDF file, or a word document "),Eo())}function rN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Filename must not exceed 50 characters "),Eo())}function oN(e,t){1&e&&(Io(0,"mat-error"),_s(1," Maximun file size is 20MB. "),Eo())}function sN(e,t){if(1&e&&(Io(0,"h3",1),_s(1,"Declaration of Consent for Personal Data Collection"),Eo(),Io(2,"div",2),Io(3,"div",48),_s(4," The visitor need to read the "),Io(5,"a",49),_s(6,"Privacy Policy Statement for Visitor Access Registration"),Eo(),_s(7," and sign the Declaration of Censent for Personal Data Collection. "),Eo(),Io(8,"div",48),Io(9,"mat-form-field",7),Io(10,"mat-label"),_s(11,"Declaration of Consent for Personal Data Collection"),Eo(),Oo(12,"app-file-upload2",50,51),Io(14,"mat-icon",10),_s(15),Eo(),Do(16,iN,2,0,"mat-error",18),Do(17,aN,2,0,"mat-error",18),Do(18,rN,2,0,"mat-error",18),Do(19,oN,2,0,"mat-error",18),Eo(),Eo(),Eo()),2&e){var n=So(13),i=Uo();ma(12),Ao("formControl",i.form.controls.consentDocument)("readonly",i.isReadonly.consentDocument)("required",!0),ma(3),gs(i.isReadonly.consentDocument?"":n.value.fileName?"clear":"search"),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("required")),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("filetype")),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("filename")),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("maxSize"))}}var lN,cN=((lN=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._cd=i,this._form=this._generateDataForm(this._formBuilder),this._request=new uS,this.sponsorNetId=null,this.approvalFlowChanged=new Gl,this.departmentList=[],this.isReadonly={},this.isVisible={},this.showSponsorDetail=!1,this.showKyc=!0;var a=new Date;a.setFullYear(a.getFullYear()+1),this.startDateMin=null,this.startDateMax=a,this.endDateMin=null,this.endDateMax=a}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.departmentList=this._applicationService.departments,this._form.get("idtype").valueChanges.subscribe((function(t){e._updateUi()})),K(this._form.get("requester").valueChanges,this._form.get("sponsor").valueChanges).pipe(Xb(300),NS()).subscribe((function(t){e.approvalFlowChanged.emit(e.evalInput())})),this._form.get("accessStartDate").valueChanges.subscribe({next:function(t){e.endDateMin=new Date(t)}}),this.resetRequest(this._request)}},{key:"resetRequest",value:function(e){this._request=JSON.parse(JSON.stringify(e)),this._form.setValue({surname:e.requestInput.surname?e.requestInput.surname:"",givenName:e.requestInput.givenName?e.requestInput.givenName:"",chineseName:e.requestInput.chineseName?e.requestInput.chineseName:"",personalEmail:e.requestInput.personalEmail?e.requestInput.personalEmail:"",phone:"",idtype:"na",hkid:"",passport:"",mainlandId:"",businessCase:e.requestInput.businessCase?e.requestInput.businessCase:"",accessDepartment:e.requestInput.accessDepartment?e.requestInput.accessDepartment.split(","):"",accessLocation:e.requestInput.accessLocation?e.requestInput.accessLocation:"",accessStartDate:e.requestInput.accessStartDate?dd(e.requestInput.accessStartDate,"yyyy-MM-dd","en-HK"):"",accessEndDate:e.requestInput.accessEndDate?dd(e.requestInput.accessEndDate,"yyyy-MM-dd","en-HK"):"",cardType:"card",requester:e.requestInput.requester?e.requestInput.requester:"",requesterEmail:e.requestInput.requesterEmail?e.requestInput.requesterEmail:"",sponsor:e.requestInput.sponsor?e.requestInput.sponsor:"",sponsorEmail:e.requestInput.sponsorEmail?e.requestInput.sponsorEmail:"",sponsorDepartment:e.requestInput.sponsor?e.requestInput.sponsorDepartment:"",chargingAccountCode:e.requestInput.chargingAccountCode?e.requestInput.chargingAccountCode:"",supportingDocument:{attachmentId:e.requestInput.supportingDocument},consentDocument:{attachmentId:e.requestInput.consentDocument}}),this._updateUi(),this._request.requestId&&this.refreshKyc()}},{key:"onSponsorPickedUp",value:function(e){e?(this._form.get("sponsorEmail").setValue(e.email),this.sponsorNetId=e.netid):(this._form.get("sponsorEmail").setValue(""),this.sponsorNetId=null)}},{key:"setShowKyc",value:function(e){this.showKyc=e,this._cd.detectChanges()}},{key:"setEditable",value:function(e){this.isReadonly=0==e?{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!0,supportingDocument:!0,consentDocument:!0}:{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!1,accessDepartment:!0,accessLocation:!0,accessStartDate:!1,accessEndDate:!1,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!0,supportingDocument:!0,consentDocument:!0}}},{key:"refreshKyc",value:function(){if(this.showKyc){var e;if(0===this._request.requestId){if(this._form.get("surname").markAsTouched(),this._form.get("givenName").markAsTouched(),this._form.get("personalEmail").markAsTouched(),!this._form.get("surname").valid||!this._form.get("givenName").valid||!this._form.get("personalEmail").valid)return;e=this._applicationService.kycReqeustByPersonalId(String(this._form.get("surname").value),String(this._form.get("givenName").value),String(this._form.get("personalEmail").value))}else e=this._applicationService.kycReqeustByRequestId(this._request.requestId);this._requestKycComponent.searchByInfo(e)}}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){return{surname:this._form.get("surname").value,givenName:this._form.get("givenName").value,chineseName:this._form.get("chineseName").value,personalEmail:this._form.get("personalEmail").value,phone:this._form.get("phone").value,hkid:"hkid"===this._form.get("idtype").value?this._form.get("hkid").value:null,passport:"passport"===this._form.get("idtype").value?this._form.get("passport").value:null,mainlandId:"mainlandId"===this._form.get("idtype").value?this._form.get("mainlandId").value:null,businessCase:this._form.get("businessCase").value,accessDepartment:String(this._form.get("accessDepartment").value),accessLocation:this._form.get("accessLocation").value,accessStartDate:FV(new Date(this._form.get("accessStartDate").value)),accessEndDate:FV(new Date(this._form.get("accessEndDate").value)),cardType:this._form.get("cardType").value,requester:this._form.get("requester").value,requesterEmail:this._form.get("requesterEmail").value,sponsor:this._form.get("sponsor").value,sponsorEmail:this._form.get("sponsorEmail").value,sponsorDepartment:this._form.get("sponsorDepartment").value,chargingAccountCode:""!==this._form.get("chargingAccountCode").value?this._form.get("chargingAccountCode").value:null,supportingDocument:this._form.get("supportingDocument").value.attachmentId,consentDocument:this._form.get("consentDocument").value.attachmentId,reason:null}}},{key:"getConsentDocument",value:function(){return this._form.get("consentDocument").value.localFile}},{key:"getSupportingDocument",value:function(){return this._form.get("supportingDocument").value.localFile}},{key:"setValidationLevel",value:function(e){switch(this._form.get("supportingDocument").clearValidators(),this._form.get("consentDocument").clearValidators(),e){case 0:this._form.get("supportingDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50),PV(20)]),this._form.get("consentDocument").setValidators([RV,EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50),PV(20)]);break;case 1:this._form.get("supportingDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50),PV(20)]),this._form.get("consentDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50),PV(20)])}}},{key:"_updateUi",value:function(){this.isReadonly=this._request&&"requester"===this._request.stage&&this._request.requestInput.requester===this._applicationService.currentUser.netid?{surname:!1,givenName:!1,chineseName:!1,personalEmail:!1,phone:!1,idtype:!1,hkid:!1,passport:!1,mainlandId:!1,businessCase:!1,accessDepartment:!1,accessLocation:!1,accessStartDate:!1,accessEndDate:!1,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!1,sponsorEmail:!0,sponsorDepartment:!1,chargingAccountCode:!1,supportingDocument:!1,consentDocument:!1}:{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0,consentDocument:!0},this.isVisible={surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!this.isReadonly.phone,idtype:!this.isReadonly.idtype,hkid:!this.isReadonly.hkid&&"hkid"===this._form.get("idtype").value,passport:!this.isReadonly.passport&&"passport"===this._form.get("idtype").value,mainlandId:!1,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!1,requester:!0,requesterEmail:!1,sponsor:!0,sponsorEmail:!1,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0,consentDocument:!0}}},{key:"_generateDataForm",value:function(e){var t=e.group({surname:["",N_.required],givenName:["",N_.required],chineseName:[""],personalEmail:["",[N_.required,N_.email]],phone:[""],idtype:["na",N_.required],hkid:[""],passport:[""],mainlandId:[""],businessCase:["",N_.required],accessDepartment:[[],N_.required],accessLocation:["",N_.required],accessStartDate:["",N_.required],accessEndDate:["",N_.required],cardType:["card",N_.required],requester:[this._applicationService.currentUser.netid],requesterEmail:[this._applicationService.currentUser.email],sponsor:["",N_.required],sponsorEmail:["",N_.required],sponsorDepartment:["",N_.required],chargingAccountCode:[""],supportingDocument:[new VV,[EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50),PV(20)]],consentDocument:[new VV,[RV,EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50),PV(20)]]});return t.get("idtype").valueChanges.subscribe({next:function(e){"hkid"===e?(t.get("hkid").setValidators([N_.required,IV]),t.get("passport").setValidators([]),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity()):"passport"===e?(t.get("hkid").setValidators([]),t.get("passport").setValidators([N_.required]),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity()):"na"===e&&(t.get("hkid").clearValidators(),t.get("hkid").reset(),t.get("passport").clearValidators(),t.get("passport").reset(),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity())}}),t.statusChanges.subscribe({next:function(e){}}),t}},{key:"dummyAsyncValidatorFn",value:function(){return function(e){return mu({custom:!0}).pipe(xI(2e3),Uv((function(){})))}}},{key:"mouseEnter",value:function(e){"sponsor"===e&&this._form.get(e).value&&this.isReadonly[e]&&(this.showSponsorDetail=!0,this._cd.detectChanges(),this._sponsorSummary.setId(this._form.get(e).value))}},{key:"mouseLeave",value:function(e){"sponsor"===e&&(this.showSponsorDetail=!1)}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||lN)(Mo(_S),Mo(tv),Mo(jr))},lN.\u0275cmp=gt({type:lN,selectors:[["app-request-input"]],viewQuery:function(e,t){var n;1&e&&(oc(IH,!0),oc(EH,!0)),2&e&&(ac(n=dc())&&(t._requestKycComponent=n.first),ac(n=dc())&&(t._sponsorSummary=n.first))},outputs:{approvalFlowChanged:"approvalFlowChanged"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:101,vars:43,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-4","grid-column-start"],[3,"label"],[3,"netid","displayField"],[1,"polyu-grid-cell-4"],["appearance","standard"],["placeholder","Sponsor NetID",3,"formControl","readonly","required","displayField","onDataSelectedEvent","mouseenter","mouseleave"],["ppSponsor",""],["matSuffix",""],[3,"ngIf"],[3,"ngIf","ngIfElse"],["sponsorDepartmentRO",""],["matInput","","required","",3,"formControl","readonly"],["matInput","","requried","",3,"formControl","readonly"],[1,"polyu-grid-cell-6","grid-column-start"],["matInput","","type","email","required","",3,"formControl","readonly"],[4,"ngIf"],[1,"polyu-grid-cell-12",3,"hidden"],["requestKycComponent",""],[1,"polyu-grid-cell-12"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5","required","",3,"formControl","readonly"],["autosize","cdkTextareaAutosize"],["accessDepartmentRO",""],[1,"polyu-grid-cell-6"],["accessStartDateRO",""],["accessEndDateRO",""],["placeholder","Supporting Document",3,"formControl","readonly","required"],["supportingDocument",""],[1,"popover"],["peopleSummary",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl","readonly"],[1,"polyu-radio-group",3,"formControl"],["value","na",1,"polyu-radio-button",3,"disabled"],["value","hkid",1,"polyu-radio-button",3,"disabled"],["value","passport",1,"polyu-radio-button",3,"disabled"],[1,"polyu-kyc-cell"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","password",3,"formControl","readonly"],["multiple","",3,"formControl"],["matInput","","required","",3,"matDatepicker","formControl","min","max","readonly"],["matSuffix","",3,"for"],["picker1",""],["picker2",""],[1,"polyu-grid-cell-12","grid-column-start"],["href","assets/doc/Privacy Policy Statement for Visitor Access Registration.docx","download","","target","_blank"],["placeholder","Sponsor NetID",3,"formControl","readonly","required"],["consentDocument",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Requester and Sponsor Information"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"app-form-field",4),Oo(6,"app-people",5),Eo(),Eo(),Io(7,"div",6),Io(8,"mat-form-field",7),Io(9,"mat-label"),_s(10,"Sponsor"),Eo(),Io(11,"app-people-picker2",8,9),Ho("onDataSelectedEvent",(function(e){return t.onSponsorPickedUp(e)}))("mouseenter",(function(){return t.mouseEnter("sponsor")}))("mouseleave",(function(){return t.mouseLeave("sponsor")})),Eo(),Io(13,"mat-icon",10),_s(14),Eo(),Eo(),Do(15,OH,3,0,"ng-template",11),Eo(),Io(16,"div",6),Io(17,"mat-form-field",7),Io(18,"mat-label"),_s(19,"Sponsor Department"),Eo(),Do(20,PH,2,2,"ng-template",12),Do(21,YH,1,2,"ng-template",null,13,mc),Eo(),Eo(),Eo(),Oo(23,"app-divider"),Io(24,"h3",1),_s(25,"Visitor Information"),Eo(),Io(26,"div",2),Io(27,"div",3),Io(28,"mat-form-field",7),Io(29,"mat-label"),_s(30,"Surname"),Eo(),Oo(31,"input",14),Eo(),Eo(),Io(32,"div",6),Io(33,"mat-form-field",7),Io(34,"mat-label"),_s(35,"Given Name"),Eo(),Oo(36,"input",14),Eo(),Eo(),Io(37,"div",6),Io(38,"mat-form-field",7),Io(39,"mat-label"),_s(40,"Chinese Name"),Eo(),Oo(41,"input",15),Eo(),Eo(),Io(42,"div",16),Io(43,"mat-form-field",7),Io(44,"mat-label"),_s(45,"Visitor's Email Address"),Eo(),Oo(46,"input",17),Do(47,FH,2,0,"mat-error",18),Eo(),Eo(),Do(48,qH,5,2,"ng-template",11),Do(49,UH,17,8,"ng-template",11),Io(50,"div",19),Oo(51,"app-request-kyc",null,20),Eo(),Eo(),Oo(53,"app-divider"),Io(54,"h3",1),_s(55,"Supporting Information for the Request"),Eo(),Io(56,"div",2),Io(57,"div",21),Io(58,"mat-form-field",7),Io(59,"mat-label"),_s(60,"Business Justification for Granting Access"),Eo(),Oo(61,"textarea",22,23),Eo(),Eo(),Io(63,"div",21),Io(64,"mat-form-field",7),Io(65,"mat-label"),_s(66,"Departments to be accessed"),Eo(),Do(67,GH,2,2,"ng-template",12),Do(68,QH,1,2,"ng-template",null,24,mc),Eo(),Eo(),Io(70,"div",21),Io(71,"mat-form-field",7),Io(72,"mat-label"),_s(73,"Location to be accessed"),Eo(),Oo(74,"textarea",22,23),Eo(),Eo(),Io(76,"div",25),Io(77,"div"),Do(78,KH,7,6,"ng-template",12),Do(79,$H,4,2,"ng-template",null,26,mc),Eo(),Eo(),Io(81,"div",25),Io(82,"div"),Do(83,JH,7,6,"ng-template",12),Do(84,XH,4,2,"ng-template",null,27,mc),Eo(),Eo(),Io(86,"div",25),Do(87,ZH,4,2,"ng-template",11),Eo(),Io(88,"div",21),Io(89,"mat-form-field",7),Io(90,"mat-label"),_s(91,"Supporting Document"),Eo(),Oo(92,"app-file-upload2",28,29),Io(94,"mat-icon",10),_s(95),Eo(),Do(96,eN,2,0,"mat-error",18),Do(97,tN,2,0,"mat-error",18),Do(98,nN,2,0,"mat-error",18),Eo(),Eo(),Eo(),Oo(99,"app-divider"),Do(100,sN,20,8,"ng-template",11),Eo()),2&e){var n=So(12),i=So(22),a=So(69),r=So(80),o=So(85),s=So(93);Ao("formGroup",t.form),ma(5),Ao("label","Requester"),ma(1),Ao("netid",t.form.controls.requester.value)("displayField","displayName"),ma(5),Ao("formControl",t.form.controls.sponsor)("readonly",t.isReadonly.sponsor)("required",!0)("displayField","displayName"),ma(3),gs(t.isReadonly.sponsor?"":n.value?"clear":"search"),ma(1),Ao("ngIf",t.showSponsorDetail),ma(5),Ao("ngIf",!t.isReadonly.sponsorDepartment)("ngIfElse",i),ma(11),Ao("formControl",t.form.controls.surname)("readonly",t.isReadonly.surname),ma(5),Ao("formControl",t.form.controls.givenName)("readonly",t.isReadonly.givenName),ma(5),Ao("formControl",t.form.controls.chineseName)("readonly",t.isReadonly.chineseName),ma(5),Ao("formControl",t.form.controls.personalEmail)("readonly",t.isReadonly.personalEmail),ma(1),Ao("ngIf",t.form.controls.personalEmail.hasError("required")||t.form.controls.personalEmail.hasError("email")),ma(1),Ao("ngIf",t.isVisible.phone),ma(1),Ao("ngIf",t.isVisible.idtype),ma(1),Ao("hidden",!t.showKyc),ma(11),Ao("formControl",t.form.controls.businessCase)("readonly",t.isReadonly.businessCase),ma(6),Ao("ngIf",!t.isReadonly.accessDepartment)("ngIfElse",a),ma(7),Ao("formControl",t.form.controls.accessLocation)("readonly",t.isReadonly.accessLocation),ma(4),Ao("ngIf",!t.isReadonly.accessStartDate)("ngIfElse",r),ma(5),Ao("ngIf",!t.isReadonly.accessEndDate)("ngIfElse",o),ma(4),Ao("ngIf",t.isVisible.chargingAccountCode),ma(5),Ao("formControl",t.form.controls.supportingDocument)("readonly",t.isReadonly.supportingDocument)("required",!1),ma(3),gs(t.isReadonly.supportingDocument?"":s.value.fileName?"clear":"search"),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filetype")),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filename")),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("maxSize")),ma(2),Ao("ngIf",t.isVisible.consentDocument)}},directives:[jg,Y_,Qg,gH,iV,SI,gI,xH,P_,Wg,Jg,pT,kI,Ed,TH,RE,M_,rH,TE,LH,hH,lP,Ld,CD,aI,uY,hY,wS,YO,qO,EO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}.popover[_ngcontent-%COMP%]{top:auto;left:auto;background-color:#fff;border:1px solid #ddd;pointer-events:none;position:absolute;transition:all .5s ease 0s}"]}),lN);function uN(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var dN,hN=((dN=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._request=i,this.comment=new Fg(""),this.isLoading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"closeDialog",value:function(){this._dialogRef.close()}},{key:"addComment",value:function(){var e=this;this.isLoading=!0,this._applicationService.appendWorkflowComment(this._request.requestId,this.comment.value).subscribe({next:function(){e._dialogRef.close()}})}}]),e}()).\u0275fac=function(e){return new(e||dN)(Mo(Fx),Mo(_S),Mo(qx))},dN.\u0275cmp=gt({type:dN,selectors:[["app-request-comments-append"]],decls:15,vars:2,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5","required","",3,"formControl"],["autosize","cdkTextareaAutosize"],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,uN,2,0,"app-overlay",1),Io(2,"h1",2),_s(3,"Leave comment"),Eo(),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Comment"),Eo(),Oo(8,"textarea",5,6),Eo(),Eo(),Io(10,"div",7),Io(11,"button",8),Ho("click",(function(){return t.closeDialog()})),_s(12,"Close"),Eo(),Io(13,"button",8),Ho("click",(function(){return t.addComment()})),_s(14,"Leave comment"),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(7),Ao("formControl",t.comment))},directives:[Ed,Ux,Wx,SI,gI,RE,TE,M_,Jg,P_,Wg,Gx,bS,tV,nV],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),dN);function fN(e,t){1&e&&(Io(0,"th",11),_s(1," Commenter "),Eo())}function pN(e,t){if(1&e&&(Io(0,"td",12),Oo(1,"app-people",13),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.name)("displayField","displayName")}}function mN(e,t){1&e&&(Io(0,"th",11),_s(1," Comment Date "),Eo())}function _N(e,t){if(1&e&&(Io(0,"td",12),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.timestamp," ")}}function gN(e,t){1&e&&(Io(0,"th",11),_s(1," Comment "),Eo())}function vN(e,t){if(1&e&&(Io(0,"td",12),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.comment," ")}}function yN(e,t){1&e&&Oo(0,"tr",14)}function kN(e,t){1&e&&Oo(0,"tr",15)}function bN(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function wN(e,t){if(1&e){var n=Fo();Io(0,"div",16),Do(1,bN,2,0,"app-overlay",17),Io(2,"div",18),Io(3,"button",19),Ho("click",(function(){return en(n),Uo().openCommentDialog()})),_s(4,"Leave comment"),Eo(),Eo(),Eo()}if(2&e){var i=Uo();ma(1),Ao("ngIf",i.isLoading)}}var CN,DN,SN=((DN=function(){function e(t,n){_classCallCheck(this,e),this._dialog=t,this._applicationService=n,this.displayedColumns=["name","timestamp","comment"],this._dataSource=new OF([]),this.isLoading=!1,this.resetRequest(new uS,[])}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._actions=JSON.parse(JSON.stringify(t)),this._redrawUi()}},{key:"openCommentDialog",value:function(){var e=this;this._dialog.open(hN,{width:"720px",maxWidth:"100%",data:this._request}).afterClosed().subscribe((function(t){e._reloadComments()}))}},{key:"_reloadComments",value:function(){var e=this;this.isLoading=!0,this._applicationService.getRequest(this._request.requestId).subscribe((function(t){e.resetRequest(t,e._actions),e.isLoading=!1}))}},{key:"_redrawUi",value:function(){this._dataSource.data=this._request.comments.map((function(e){return{name:e.commenter,timestamp:dd(e.timestamp,"yyyy-MM-dd HH:mm","en-HK"),comment:e.comment}})),this.commentButtonFlag=["sponsor","approval1","approval2","approval3","fmocss","fmotdp"].indexOf(this._request.stage)>=0}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||DN)(Mo(Bx),Mo(_S))},DN.\u0275cmp=gt({type:DN,selectors:[["app-request-comments"]],decls:16,vars:4,consts:[[1,"polyu-section-headline"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","comment"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],[3,"ngIf"],["mat-header-cell",""],["mat-cell",""],[3,"netid","displayField"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h3",0),_s(1,"Comments"),Eo(),Io(2,"div",1),Io(3,"table",2),Ro(4,3),Do(5,fN,2,0,"th",4),Do(6,pN,2,2,"td",5),Po(),Ro(7,6),Do(8,mN,2,0,"th",4),Do(9,_N,2,1,"td",5),Po(),Ro(10,7),Do(11,gN,2,0,"th",4),Do(12,vN,2,1,"td",5),Po(),Do(13,yN,1,0,"tr",8),Do(14,kN,1,0,"tr",9),Eo(),Eo(),Do(15,wN,5,1,"ng-template",10)),2&e&&(ma(3),Ao("dataSource",t.dataSource),ma(10),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("ngIf",t.commentButtonFlag))},directives:[pF,eF,kF,vF,_F,DF,MF,Ed,wF,CF,iV,TF,LF,bS,tV,nV],styles:["table[_ngcontent-%COMP%]{width:100%}.polyu-list-search-bar[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between}.polyu-list-search-bar-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.polyu-list-search-bar-group[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:10px 5px}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-expandable-row[_ngcontent-%COMP%]{height:0}.polyu-expandable-cell-container[_ngcontent-%COMP%]{overflow:hidden;display:flex}.polyu-expandable-cell-content[_ngcontent-%COMP%]{padding:16px}"]}),DN),MN=((CN=function(){function e(t,n,i,a){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._snackBar=i,this._request=a,this.rejectReason=new Fg("")}return _createClass(e,[{key:"closeDialog",value:function(){this._dialogRef.close()}},{key:"rejectRequest",value:function(){var e=this;this._applicationService.rejectRequest(this._request.requestId,this.rejectReason.value).subscribe({complete:function(){e._dialogRef.close(!0)}})}}]),e}()).\u0275fac=function(e){return new(e||CN)(Mo(Fx),Mo(_S),Mo(EY),Mo(qx))},CN.\u0275cmp=gt({type:CN,selectors:[["app-request-action-reject"]],decls:13,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5","required","",3,"formControl"],["autosize","cdkTextareaAutosize"],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Reject Request"),Eo(),Io(2,"div",1),Io(3,"mat-form-field",2),Io(4,"mat-label"),_s(5,"Reject Reason"),Eo(),Oo(6,"textarea",3,4),Eo(),Eo(),Io(8,"div",5),Io(9,"button",6),Ho("click",(function(){return t.closeDialog()})),_s(10,"Back"),Eo(),Io(11,"button",6),Ho("click",(function(){return t.rejectRequest()})),_s(12,"Reject"),Eo(),Eo()),2&e&&(ma(6),Ao("formControl",t.rejectReason))},directives:[Ux,Wx,SI,gI,RE,TE,M_,Jg,P_,Wg,Gx,bS],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),CN),xN=function(e){return{"polyu-highlight-warn":e}};function TN(e,t){if(1&e&&(Io(0,"div",3),Io(1,"div",4),Io(2,"mat-checkbox",5),_s(3,"\xa0"),Eo(),Io(4,"span",6),_s(5,'By clicking "Confirm visitor information", I confirm that the details of the visitor personal information provided above have been verified and are correct.'),Eo(),Eo(),Io(6,"div",4),Io(7,"mat-checkbox",5),_s(8,"\xa0"),Eo(),Io(9,"span",6),_s(10,'I have communicated the Personal Information Collection Statement ("PICS") with visitor stated above and obtained his/her consent on the use of his/her personal information in accordance with the PICS.'),Eo(),Eo(),Eo()),2&e){var n=Uo();ma(2),Ao("required",!0)("formControl",n.form.get("declareCorrect")),ma(2),Ao("ngClass",Rl(6,xN,!n.form.get("declareCorrect").valid)),ma(3),Ao("required",!0)("formControl",n.form.get("declarePics")),ma(2),Ao("ngClass",Rl(8,xN,!n.form.get("declarePics").valid))}}function AN(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){return en(n),Uo().submitted.emit()})),_s(1,"Submit"),Eo()}}function LN(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){en(n);var e=Uo();return e.approved.emit(e.approveLabel)})),_s(1),Eo()}if(2&e){var i=Uo();ma(1),gs(i.approveLabel)}}function IN(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){return en(n),Uo().openRejectDialog()})),_s(1,"Reject"),Eo()}}var EN,ON=((EN=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._changeDetectorRef=i,this._dialog=a,this._request=new uS,this._generateForm(),this._request=new uS,this._requestActions=[],this.isActionSubmit=!1,this.isActionApprove=!1,this.isActionReject=!1,this.isActionReturn=!1,this.approveLabel="",this.submitted=new Gl,this.approved=new Gl,this.rejected=new Gl,this.details=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._requestActions=t,this._redrawUi()}},{key:"currentUser",value:function(){return this._applicationService.currentUser}},{key:"openRejectDialog",value:function(){var e=this;this._dialog.open(MN,{width:"720px",maxWidth:"100%",data:this._request}).afterClosed().subscribe((function(t){t&&e.rejected.emit()}))}},{key:"_redrawUi",value:function(){this.isActionSubmit=!1,this.isActionApprove=!1,this.isActionReject=!1,this.isActionReturn=!1,this._requestActions&&(this.isActionSubmit=this._requestActions.indexOf("Submit")>=0,this.isActionApprove=this._requestActions.indexOf("Approve")>=0,this.isActionReject=this._requestActions.indexOf("Reject")>=0,this.isActionReturn=this._requestActions.indexOf("Return")>=0),this.approveLabel=this.isActionApprove?"fmohd"===this._request.stage||"fmocss"===this._request.stage?"Confirm Checked":"fmotdp"===this._request.stage?"Process":"Approve":""}},{key:"_generateForm",value:function(){this._form=this._formBuilder.group({declareCorrect:["",N_.requiredTrue],declarePics:["",N_.requiredTrue]})}},{key:"form",get:function(){return this._form}},{key:"request",get:function(){return this._request}}]),e}()).\u0275fac=function(e){return new(e||EN)(Mo(_S),Mo(tv),Mo(jr),Mo(Bx))},EN.\u0275cmp=gt({type:EN,selectors:[["app-request-actions"]],outputs:{submitted:"submitted",approved:"approved",rejected:"rejected",details:"details"},decls:6,vars:5,consts:[[3,"formGroup"],[3,"ngIf"],[1,"polyu-action-bar"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],[3,"required","formControl"],[3,"ngClass"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Do(1,TN,11,10,"ng-template",1),Io(2,"div",2),Do(3,AN,2,0,"ng-template",1),Do(4,LN,2,1,"ng-template",1),Do(5,IN,2,0,"ng-template",1),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(1),Ao("ngIf",t.isActionSubmit),ma(2),Ao("ngIf",t.isActionSubmit),ma(1),Ao("ngIf",t.isActionApprove),ma(1),Ao("ngIf",t.isActionReject))},directives:[jg,Y_,Qg,Ed,gE,yE,Jg,P_,Wg,Td,bS],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}"]}),EN);function RN(e,t){1&e&&Oo(0,"mat-spinner",3)}function PN(e,t){if(1&e){var n=Fo();Io(0,"div",5),Io(1,"div",6),Io(2,"div",7),Io(3,"button",8),Ho("click",(function(){en(n);var e=t.$implicit;return Uo(2).selectUser(e)})),Io(4,"div",9),Io(5,"div",10),Io(6,"div",11),Io(7,"div",12),Io(8,"div",13),Oo(9,"div",14),Eo(),Eo(),Eo(),Io(10,"div",15),Io(11,"span",16),Io(12,"span",17),_s(13),Eo(),Eo(),Io(14,"span",18),_s(15),Eo(),Io(16,"span",19),_s(17),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()}if(2&e){var i=t.$implicit;ma(13),gs(i.displayName),ma(2),gs(i.title),ma(2),gs(i.email)}}function YN(e,t){1&e&&Do(0,PN,18,3,"div",4),2&e&&Ao("ngForOf",Uo().filteredUsers)}var FN,qN,VN=((FN=function(){function e(t,n,i){_classCallCheck(this,e),this._dialog=t,this._dialogRef=n,this._applicationService=i,this.formControl=new Fg({value:"",disabled:!1}),this.filteredUsers=[],this.searchStatus="init"}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.pipe(Uv((function(t){return e.searchStatus=t.length>=3?"searching":"init"})),gu((function(e){return e.length>=3})),Xb(300),Pv((function(t){return e._applicationService.searchApprover(String(t))}))).subscribe({next:function(t){e.filteredUsers=t,e.searchStatus=e.filteredUsers?"done":"empty"}})}},{key:"displayFn",value:function(e){if(e)return e.email}},{key:"selectUser",value:function(e){this._dialogRef.close(e)}}]),e}()).\u0275fac=function(e){return new(e||FN)(Mo(Bx),Mo(Fx),Mo(_S))},FN.\u0275cmp=gt({type:FN,selectors:[["app-approver-picker-form"]],decls:4,vars:3,consts:[[1,"polyu-input-field"],["matInput","","placeholder","Search user by Display Name, Email","aria-label","Search user by Display Name, Email",3,"formControl"],[3,"ngIf"],["diameter","50"],["class","polyu-suggestion","id","suggestion-list","role","list",4,"ngFor","ngForOf"],["id","suggestion-list","role","list",1,"polyu-suggestion"],["role","listitem"],[1,"polyu-suggestion-item"],["type","button","data-is-focusable","true",1,"polyu-button",3,"click"],[1,"polyu-button-container"],[1,"polyu-button-layout-1"],[1,"polyu-button-image"],[1,"ms-Persona","ms-Persona--size32","_3fxSw_KFta16t28JP70e_s","root-389"],[1,"ms-Persona-coin","ms-Persona--size32","coin-105"],[1,"ms-Persona-imageArea","imageArea-390"],[1,"polyu-button-layout-2"],[1,"people-text-name"],[1,"people-text-name-inner"],["ng-if","null != user.title",1,"people-text-title"],[1,"people-text-email"]],template:function(e,t){1&e&&(Io(0,"mat-form-field",0),Oo(1,"input",1),Eo(),Do(2,RN,1,0,"ng-template",2),Do(3,YN,1,1,"ng-template",2)),2&e&&(ma(1),Ao("formControl",t.formControl),ma(1),Ao("ngIf","searching"===t.searchStatus),ma(1),Ao("ngIf","done"===t.searchStatus))},directives:[SI,RE,M_,P_,Wg,Ed,tY,Ld],styles:[".polyu-input-field[_ngcontent-%COMP%]{width:100%}.polyu-option-item-img[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.polyu-suggestion[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:100%;max-height:300px}.polyu-suggestion-item[_ngcontent-%COMP%]{display:flex;align-items:stretch;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.polyu-button[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;border:1px solid transparent;background-color:transparent;padding-bottom:10px}.polyu-button-container[_ngcontent-%COMP%]{outline:medium none transparent;position:relative;box-sizing:border-box;display:inline-block;text-decoration:none;text-align:center;cursor:pointer;vertical-align:top;padding:0 4px;border-radius:2px;height:40px}.polyu-button-layout-1[_ngcontent-%COMP%]{display:flex;height:100%;flex-wrap:nowrap;justify-content:flex-start;align-items:center}.polyu-button-layout-2[_ngcontent-%COMP%]{text-align:left;min-width:0;overflow:hidden}.people-text-name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:var(--neutralPrimary)}.people-text-name-inner[_ngcontent-%COMP%]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%], .people-text-title[_ngcontent-%COMP%]{font-size:12px;font-weight:400;display:block;color:var(--neutralSecondary);position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-text-email[_ngcontent-%COMP%]{top:-2px}"]}),FN),HN=["displayField",""],NN=((qN=function(){function e(t,n,i,a,r){var o=this;_classCallCheck(this,e),this._focusMonitor=t,this._elementRef=n,this.ngControl=i,this._applicationService=a,this._dialog=r,this.stateChanges=new T,this.focused=!1,this.controlType="app-people-picker2",this.id="app-people-picker2-".concat(e.nextId++),this.describedBy="",this.onChange=function(e){},this.onTouched=function(){},this._required=!1,this._disabled=!1,this.fc=new Fg("",[]),this.fcDisplay=new Fg("",[]),this.onDataSelectedEvent=new Gl,t.monitor(n,!0).subscribe((function(e){o.focused&&!e&&o.onTouched(),o.focused=!!e,o.stateChanges.next()})),null!=this.ngControl&&(this.ngControl.valueAccessor=this),this._dialogConfig={disableClose:!1,autoFocus:!0,hasBackdrop:!0,backdropClass:"backdrop",height:"500px",width:"500px",maxWidth:"100%",maxHeight:"100%"},this.readonly=!1,this.displayField="displayName"}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"ngDoCheck",value:function(){this.stateChanges.next()}},{key:"setDescribedByIds",value:function(e){this.describedBy=e.join(" ")}},{key:"onContainerClick",value:function(e){"mat-icon"===e.target.tagName.toLowerCase()&&this.fc.value?this.handleClear():this.handlePeopleSearch()}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"handleClear",value:function(){this.readonly||(this.value="",this.onChange(""),this.stateChanges.next())}},{key:"handlePeopleSearch",value:function(){var e=this;this.readonly||this._dialogRef||(this._dialogRef=this._dialog.open(VN,this._dialogConfig),this._dialogRef.afterClosed().subscribe((function(t){t&&(e.value=t.netid,e.onChange(t.netid)),e._dialogRef=null,e.stateChanges.next()})))}},{key:"errorState",get:function(){return null!==this.ngControl.errors&&!!this.ngControl.touched}},{key:"empty",get:function(){return!this.fc.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=iw(e),this.fc.setValidators(this._required?[N_.required]:[]),this.stateChanges.next()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=iw(e),this._disabled?this.fcDisplay.disable():this.fcDisplay.enable(),this.stateChanges.next()}},{key:"value",get:function(){return this.fc.value||null},set:function(e){var t=this;this.fc.setValue(e),this.fcDisplay.setValue(e),this.stateChanges.next();var n=this._applicationService.getUser(e);n?n.subscribe({next:function(e){t.userInfo=e,t.displayField&&(t.fc.setValue(t.userInfo.netid),t.fcDisplay.setValue(t.userInfo[t.displayField])),t.onDataSelectedEvent.emit(t.userInfo),t.stateChanges.next()},error:function(e){t.userInfo=null,t.fc.setValue(""),t.fcDisplay.setValue(""),t.onDataSelectedEvent.emit(null),t.stateChanges.next()}}):(this.userInfo=null,this.fc.setValue(""),this.fcDisplay.setValue(""),this.onDataSelectedEvent.emit(null),this.stateChanges.next())}}]),e}()).nextId=0,qN.\u0275fac=function(e){return new(e||qN)(Mo(cC),Mo(js),Mo(O_,10),Mo(_S),Mo(Bx))},qN.\u0275cmp=gt({type:qN,selectors:[["app-approver-picker","displayField",""]],hostVars:2,hostBindings:function(e,t){2&e&&(ks("id",t.id),wo("aria-describedby",t.describedBy))},inputs:{placeholder:"placeholder",required:"required",disabled:"disabled",value:"value",displayField:"displayField",readonly:"readonly"},outputs:{onDataSelectedEvent:"onDataSelectedEvent"},features:[Vs([{provide:oI,useExisting:qN}])],attrs:HN,decls:2,vars:2,consts:[[1,"polyu-people-picker-container"],["aria-label","People Picker",1,"polyu-people-picker-element",3,"readonly","formControl","click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"input",1),Ho("click",(function(){return t.handlePeopleSearch()})),Eo(),Eo()),2&e&&(ma(1),Ao("readonly",!0)("formControl",t.fcDisplay))},directives:[M_,P_,Wg],styles:[".polyu-people-picker-container[_ngcontent-%COMP%]{display:flex}.polyu-people-picker-element[_ngcontent-%COMP%]{border:none;background:none;outline:none;font:inherit;width:100%}"]}),qN);function BN(e,t){if(1&e){var n=Fo();Io(0,"div",6),Ho("click",(function(){return en(n),Uo(),So(2).handlePeopleSearch()})),Io(1,"mat-icon",7),_s(2,"search"),Eo(),Eo()}}function jN(e,t){if(1&e){var n=Fo();Io(0,"div",6),Ho("click",(function(){return en(n),Uo(),So(2).handleClear()})),Io(1,"mat-icon",7),_s(2,"clear"),Eo(),Eo()}}function zN(e,t){if(1&e&&(Io(0,"div",1),Oo(1,"app-approver-picker",2,3),Do(3,BN,3,0,"ng-template",4),Do(4,jN,3,0,"ng-template",null,5,mc),Eo()),2&e){var n=So(5),i=Uo();ma(1),Ao("formControl",i.control)("readonly",!1)("placeholder",i.hints)("displayField","displayName"),ma(2),Ao("ngIf",!i.control.value)("ngIfElse",n)}}function UN(e,t){1&e&&Oo(0,"app-people",8),2&e&&Ao("netid",Uo(2).assignee)("displayField","displayName")}function WN(e,t){if(1&e&&(Oo(0,"app-people",8),_s(1," on behalf of "),Oo(2,"app-people",8)),2&e){var n=Uo(2);Ao("netid",n.handler)("displayField","displayName"),ma(2),Ao("netid",n.assignee)("displayField","displayName")}}function GN(e,t){if(1&e&&(Do(0,UN,1,2,"ng-template",0),Do(1,WN,3,4,"ng-template",0)),2&e){var n=Uo();Ao("ngIf",!n.handler||n.assignee===n.handler),ma(1),Ao("ngIf",n.handler&&n.assignee!==n.handler)}}var QN,KN=((QN=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||QN)},QN.\u0275cmp=gt({type:QN,selectors:[["app-request-action-handler"]],inputs:{assignee:"assignee",handler:"handler",editable:"editable",control:"control",hints:"hints"},decls:2,vars:2,consts:[[3,"ngIf"],[1,"polyu-div-row"],[3,"formControl","readonly","placeholder","displayField"],["ppComp",""],[3,"ngIf","ngIfElse"],["clear",""],[3,"click"],["matsuffix","","role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],[3,"netid","displayField"]],template:function(e,t){1&e&&(Do(0,zN,6,6,"ng-template",0),Do(1,GN,2,2,"ng-template",0)),2&e&&(Ao("ngIf",t.editable),ma(1),Ao("ngIf",!t.editable))},directives:[Ed,NN,P_,Wg,pT,iV],styles:[".polyu-div-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),QN);function $N(e,t){1&e&&Oo(0,"th",14)}var JN=function(e){return{"polyu-highlight-warn":e}};function XN(e,t){if(1&e&&(Io(0,"td",15),Io(1,"span",16),_s(2),Eo(),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngClass",Rl(2,JN,n.formControl&&n.formControl.hasError("required"))),ma(1),gs(n.handlerRole)}}function ZN(e,t){1&e&&(Io(0,"th",14),_s(1," Requester/Approver "),Eo())}function eB(e,t){if(1&e&&(Io(0,"td",15),Oo(1,"app-request-action-handler",17),Eo()),2&e){var n=t.$implicit;ma(1),Ao("assignee",n.assignee)("handler",n.handler)("editable",n.isEditable)("hints",n.hints)("control",n.formControl)}}function tB(e,t){1&e&&(Io(0,"th",14),_s(1," Action Taken "),Eo())}function nB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.actionDone," ")}}function iB(e,t){1&e&&(Io(0,"th",14),_s(1," Date "),Eo())}function aB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.timestamp?jl(2,1,n.timestamp,"dd-MM-yyyy HH:mm"):"\xa0"," ")}}function rB(e,t){1&e&&Oo(0,"tr",18)}function oB(e,t){if(1&e&&Oo(0,"tr",19),2&e){var n=t.$implicit;rs("polyu-table-row-expanded",Uo().request.stage===n.stage)}}function sB(e,t){1&e&&Oo(0,"th",14)}function lB(e,t){if(1&e&&(Io(0,"td",15),Io(1,"span",16),_s(2),Eo(),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngClass",Rl(2,JN,n.formControl&&n.formControl.hasError("required"))),ma(1),gs(n.handlerRole)}}function cB(e,t){1&e&&(Io(0,"th",14),_s(1," Reviewer/Processor "),Eo())}function uB(e,t){if(1&e&&(Io(0,"td",15),Oo(1,"app-request-action-handler",17),Eo()),2&e){var n=t.$implicit;ma(1),Ao("assignee",n.assignee)("handler",n.handler)("editable",n.isEditable)("hints",n.hints)("control",n.formControl)}}function dB(e,t){1&e&&(Io(0,"th",14),_s(1," Action Taken "),Eo())}function hB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.actionDone," ")}}function fB(e,t){1&e&&(Io(0,"th",14),_s(1," Date "),Eo())}function pB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.timestamp?jl(2,1,n.timestamp,"dd-MM-yyyy HH:mm"):"\xa0"," ")}}function mB(e,t){1&e&&Oo(0,"tr",18)}function _B(e,t){if(1&e&&Oo(0,"tr",19),2&e){var n=t.$implicit;rs("polyu-table-row-expanded",Uo().request.stage===n.stage)}}function gB(e,t){if(1&e&&(Io(0,"div",20),Io(1,"div",21),Io(2,"mat-form-field",22),Io(3,"mat-label"),_s(4,"Reject Reason"),Eo(),Oo(5,"textarea",23,24),Eo(),Eo(),Eo()),2&e){var n=Uo();ma(5),Ko("value",n.request.rejectReason),Ao("readonly",!0)}}var vB,yB,kB,bB,wB=function e(t,n){_classCallCheck(this,e),this.stage=t,this.handlerRole=Wq(t),this.assignee=null,this.handler=null,this.action=null,this.timestamp=null,this.isVisible=!1,this.isEditable=!1,this.hints=n},CB=function e(){_classCallCheck(this,e),this.requester=new wB("requester","Click here to select requester"),this.sponsor=new wB("sponsor","Click here to select sponsor"),this.approval1=new wB("approval1","Click here to select approver"),this.approval2=new wB("approval2","[Optional] Click here to select approver"),this.approval3=new wB("approval3","[Optional] Click here to select approver"),this.fmohd=new wB("fmohd",null),this.fmocss=new wB("fmocss",null),this.fmotdp=new wB("fmotdp",null)},DB=((bB=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this.displayedColumns=["stage","handler","action","timestamp"],this._request=new uS,this._actions=[],this._dataSource=new OF([]),this._dataSourceFmo=new OF([]),this._generateForm(),this.changed=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._redrawUi(),this._form.valueChanges.pipe(Xb(300),NS()).subscribe((function(t){e.changed.emit(e.evalHandler())}))}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._actions=JSON.parse(JSON.stringify(t)),this._request.workflowConfig.requester.assignee=e.requestInput.requester,this._request.workflowConfig.requester.handler=e.requestInput.requester,this._request.workflowConfig.sponsor.assignee=e.requestInput.sponsor,this._request.workflowConfig.sponsor.handler=e.requestInput.sponsor,this._form.get("approval1").setValue(this._request.workflowConfig.approval1.assignee),this._form.get("approval2").setValue(this._request.workflowConfig.approval2.assignee),this._form.get("approval3").setValue(this._request.workflowConfig.approval3.assignee),this._redrawUi(),this.changed.emit(this.evalHandler())}},{key:"updateRequesterSponsorCardType",value:function(e,t,n){this._request.workflowConfig.requester.assignee=e,this._request.workflowConfig.requester.handler=e,this._request.workflowConfig.sponsor.assignee=t,this._request.workflowConfig.sponsor.handler=t,this._request.requestInput.cardType=n,this._redrawUi(),this.changed.emit(this.evalHandler())}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.valid}},{key:"evalHandler",value:function(){var e=new cS;return e.approval1={assignee:""===this._form.get("approval1").value?null:this._form.get("approval1").value,handler:null,timestamp:null,action:null},e.approval2={assignee:""===this._form.get("approval2").value?null:this._form.get("approval2").value,handler:null,timestamp:null,action:null},e.approval3={assignee:""===this._form.get("approval3").value?null:this._form.get("approval3").value,handler:null,timestamp:null,action:null},e}},{key:"_redrawUi",value:function(){var e=this,t=new CB;t.requester.isEditable=!1,t.sponsor.isEditable=!1,t.approval1.isEditable=this._actions.length>0&&["requester","sponsor"].indexOf(this._request.stage)>=0,t.approval2.isEditable=this._actions.length>0&&["requester","sponsor","approval1"].indexOf(this._request.stage)>=0,t.approval3.isEditable=this._actions.length>0&&["requester","sponsor","approval1","approval2"].indexOf(this._request.stage)>=0,t.fmohd.isEditable=!1,t.fmocss.isEditable=!1,t.fmotdp.isEditable=!1,t.requester.isVisible=this._hasWorkflowStage("requester"),t.sponsor.isVisible=this._hasWorkflowStage("sponsor"),t.approval1.isVisible=this._hasWorkflowStageAssignee("approval1")||t.approval1.isEditable,t.approval2.isVisible=this._hasWorkflowStageAssignee("approval2")||t.approval2.isEditable,t.approval3.isVisible=this._hasWorkflowStageAssignee("approval3")||t.approval3.isEditable,t.fmohd.isVisible=!0,t.fmocss.isVisible=!0,t.fmotdp.isVisible="card"===this._request.requestInput.cardType,t.approval1.formControl=this._form.get("approval1"),t.approval2.formControl=this._form.get("approval2"),t.approval3.formControl=this._form.get("approval3"),["requester","sponsor","approval1","approval2","approval3","fmohd","fmocss","fmotdp"].forEach((function(n){t[n].isVisible&&(t[n].assignee=e._request.workflowConfig[n].assignee,t[n].handler=e._request.workflowConfig[n].handler,t[n].action=e._request.workflowConfig[n].action,e._request.workflowConfig[n].action?t[n].actionDone=Gq(e._request.workflowConfig[n].action):e._request.stage===n&&e._actions.length>0&&(t[n].actionDone=e._request.workflowConfig[n].assignee===e._applicationService.currentUser.netid?"Assigned to you":"Delegated to you"),t[n].action=e._request.workflowConfig[n].action,t[n].timestamp=e._request.workflowConfig[n].timestamp)}));var n=[];["requester","sponsor","approval1","approval2","approval3"].forEach((function(e){t[e].isVisible&&n.push(t[e])})),this._dataSource.data=n,n=[],["fmohd","fmocss","fmotdp"].forEach((function(e){t[e].isVisible&&n.push(t[e])})),this._dataSourceFmo.data=n}},{key:"_hasWorkflowStage",value:function(e){return!!this._request.workflowConfig[e]}},{key:"_hasWorkflowStageAssignee",value:function(e){return this._hasWorkflowStage(e)&&!!this._request.workflowConfig[e].assignee}},{key:"_generateForm",value:function(){var e=this;this._form=this._formBuilder.group({approval1:["",N_.required],approval2:[""],approval3:[""]}),this._form.get("approval3").valueChanges.subscribe({next:function(t){t&&""!==t?(e.form.get("approval1").setValidators([N_.required]),e.form.get("approval2").setValidators([N_.required]),e.form.get("approval1").markAllAsTouched(),e.form.get("approval2").markAllAsTouched(),e.form.get("approval1").updateValueAndValidity(),e.form.get("approval2").updateValueAndValidity()):(e.form.get("approval2").setValidators([]),e.form.get("approval2").markAllAsTouched(),e.form.get("approval2").updateValueAndValidity())}})}},{key:"form",get:function(){return this._form}},{key:"request",get:function(){return this._request}},{key:"dataSource",get:function(){return this._dataSource}},{key:"dataSourceFmo",get:function(){return this._dataSourceFmo}}]),e}()).\u0275fac=function(e){return new(e||bB)(Mo(_S),Mo(tv))},bB.\u0275cmp=gt({type:bB,selectors:[["app-request-handler"]],outputs:{changed:"changed"},decls:42,vars:8,consts:[[3,"formGroup"],[1,"polyu-inner-content","polyu-expandable-cell-content"],[1,"polyu-section-headline"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","stage"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","handler"],["matColumnDef","action"],["matColumnDef","timestamp"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded",4,"matRowDef","matRowDefColumns"],[3,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"assignee","handler","editable","hints","control"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5",3,"value","readonly"],["autosize","cdkTextareaAutosize"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"h3",2),_s(3,"Endorsers / Approvers"),Eo(),Io(4,"div",3),Io(5,"table",4),Ro(6,5),Do(7,$N,1,0,"th",6),Do(8,XN,3,4,"td",7),Po(),Ro(9,8),Do(10,ZN,2,0,"th",6),Do(11,eB,2,5,"td",7),Po(),Ro(12,9),Do(13,tB,2,0,"th",6),Do(14,nB,2,1,"td",7),Po(),Ro(15,10),Do(16,iB,2,0,"th",6),Do(17,aB,3,4,"td",7),Po(),Do(18,rB,1,0,"tr",11),Do(19,oB,1,2,"tr",12),Eo(),Eo(),Eo(),Io(20,"p"),_s(21,"HoDs or delegates of all departments that the visitor intends to access have to be included as approvers of this request."),Eo(),Io(22,"div",1),Io(23,"h3",2),_s(24,"FMO Reviewer / Processor"),Eo(),Io(25,"div",3),Io(26,"table",4),Ro(27,5),Do(28,sB,1,0,"th",6),Do(29,lB,3,4,"td",7),Po(),Ro(30,8),Do(31,cB,2,0,"th",6),Do(32,uB,2,5,"td",7),Po(),Ro(33,9),Do(34,dB,2,0,"th",6),Do(35,hB,2,1,"td",7),Po(),Ro(36,10),Do(37,fB,2,0,"th",6),Do(38,pB,3,4,"td",7),Po(),Do(39,mB,1,0,"tr",11),Do(40,_B,1,2,"tr",12),Eo(),Eo(),Eo(),Do(41,gB,7,2,"ng-template",13),Eo()),2&e&&(Ao("formGroup",t.form),ma(5),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(7),Ao("dataSource",t.dataSourceFmo),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("ngIf","rejected"===t.request.stage&&t.request.rejectReason))},directives:[jg,Y_,Qg,pF,eF,kF,vF,_F,DF,MF,Ed,wF,sF,CF,Td,KN,TF,LF,SI,gI,RE,TE],pipes:[oh],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}.polyu-workflow-config-tr[_ngcontent-%COMP%]{background:#dfdfdf}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}"]}),bB),SB=((kB=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._request=new uS,this._form=this._generateDataForm(this._formBuilder),this.isReadonly={},this.isVisible={}}return _createClass(e,[{key:"ngOnInit",value:function(){this._updateUi()}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._actions=JSON.parse(JSON.stringify(t)),this._form.setValue({libraryId:e.requestInputFmotdp.libraryId?e.requestInputFmotdp.libraryId:"",serialNumber:e.requestInputFmotdp.serialNumber?e.requestInputFmotdp.serialNumber:""}),this._updateUi()}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.valid}},{key:"evalInput",value:function(){return{libraryId:this._form.get("libraryId").value,serialNumber:this._form.get("serialNumber").value}}},{key:"_updateUi",value:function(){this.isReadonly=this._request&&"N"===this._request.requestType&&"fmotdp"===this._request.stage&&(this._actions.length>0||this._request.workflowConfig.fmotdp.assignee===this._applicationService.currentUser.netid)?{libraryId:!1,serialNumber:!1}:{libraryId:!0,serialNumber:!0},this.isVisible={libraryId:!0,serialNumber:!0}}},{key:"_generateDataForm",value:function(e){return e.group({libraryId:["",N_.required],serialNumber:["",[N_.required,N_.minLength(1),N_.maxLength(50)]]})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||kB)(Mo(_S),Mo(tv))},kB.\u0275cmp=gt({type:kB,selectors:[["app-request-input-fmotdp"]],decls:14,vars:5,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-6","grid-column-start"],["appearance","standard"],["matInput","","required","",3,"formControl","readonly"],[1,"polyu-grid-cell-6"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Physical Access Card Information"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Access ID (888XXXXXX or 777XXXXXX)"),Eo(),Oo(8,"input",5),Eo(),Eo(),Io(9,"div",6),Io(10,"mat-form-field",4),Io(11,"mat-label"),_s(12,"MiFare Card UID"),Eo(),Oo(13,"input",5),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(8),Ao("formControl",t.form.controls.libraryId)("readonly",t.isReadonly.libraryId),ma(5),Ao("formControl",t.form.controls.serialNumber)("readonly",t.isReadonly.serialNumber))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}"]}),kB),MB=((yB=function(){function e(t){_classCallCheck(this,e),this.dialogRef=t}return _createClass(e,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||yB)(Mo(Fx))},yB.\u0275cmp=gt({type:yB,selectors:[["app-popup-guideline-request"]],decls:8,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Guidance Notes on Request for Activation of Departmental Smart Card (for Users other than Staff and Students) (\u201cthe Guidance Notes\u201d)"),Eo(),Io(2,"div",1),Io(3,"p"),_s(4," 1.\tPurpose Departments may issue the Departmental Smart Card to individuals whom they deemed as eligible departmental smart card users, and are required to apply for the activation of the Departmental Smart Card from the Facilities Management Office (\u201cFMO\u201d) before issuance. The purpose of the Guidance Notes is to provide information to facilitate the application for Departmental Smart Card activation. 2.\tDefinitions a)\t\u201cDepartmental Applicants\u201d shall mean the Faculties, Schools, Departments, Administrative & Supporting Offices applying for activation of Departmental Smart Cards. b)\t\u201cDepartmental Representatives\u201d shall mean the nominated staff in the Department who make requests for Departmental Smart Card activation. c)\t\u201cEligible departmental smart card users\u201d shall mean individuals who are considered by the Departmental Applicant to have genuine needs to access designated departmental spaces for the purpose of participating in activities or programmes recognized by the University and are not staff or students. d)\t\u201cDepartmental Smart Cards\u201d shall mean cards owned and issued by the Departmental Applicant for the purpose of allowing access of eligible departmental smart card users to designated departmental spaces where a departmental smart card access control system is provided. Department should print the name of the card user and the expiry date on each Departmental Smart Card. e)\t\u201cDepartmental smart card access control system\u201d shall mean the smart card access system administered and controlled by the Faculties, Schools, Departments, Administrative & Supporting Offices for allowing access of their staff and/or students/authorized individuals to the designated departmental space within a specified access period. 3.\tVerification of Identities Departmental Applicant should verify an individual\u2019s identity and eligibility for the Department Smart Card before they apply for card activation from FMO. 4.\tRequest for Card Activation Departmental Applicant should complete the application form (Form CS27) and return it to the Administration and Ancillary Services Section (P005) of FMO. The application form shall be endorsed by the Head of Department. The application form is available from FMO\u2019s website ( https://www.polyu.edu.hk/fmo/en/useful-information/downloadable-forms-for-fmo-services ). 5.\tProcessing Time Having checked that the completed application form is in order, the Administration and Ancillary Services Section of FMO will contact the Departmental Applicant for collection of the Departmental Smart Card via email. Departmental Applicant is advised to allow at least 10 working days for the activation of Departmental Smart Cards. 6.\tCollection of Departmental Smart Cards The Departmental Representative should sign in and collect their Departmental Smart Card(s) from the Central Mailing Room (P005, Main Campus) 7.\tTerms and Conditions a)\tThe Departmental Smart Card is non-transferable.\nb)\tFMO reserves the right to reject any request for activation of Departmental Smart Card.\nc)\tFMO reserves the right to update the Guidance Notes without prior notice. 8.\tEnquiries Contact Help Desk of FMO at 2766 7777 regarding activation of Departmental Smart Cards. "),Eo(),Eo(),Io(5,"div",2),Io(6,"button",3),_s(7,"Close"),Eo(),Eo())},directives:[Ux,Wx,Gx,bS,zx],styles:[""]}),yB),xB=((vB=function(){function e(t){_classCallCheck(this,e),this.dialogRef=t}return _createClass(e,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||vB)(Mo(Fx))},vB.\u0275cmp=gt({type:vB,selectors:[["app-popup-guideline-management"]],decls:8,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Guidelines on Departmental Smart Card Control Management"),Eo(),Io(2,"div",1),Io(3,"p"),_s(4," 1.\tIn the interests of safety and security of staff, students and property of the University, Departments are strongly advised to put in place internal control procedures to ensure the proper use of the Departmental Smart Card during its entire life cycle, and provide a copy of such procedures to FMO. Departmental control procedures may include, but not limited to the following: a)\tEstablish a task force (\u201cTF\u201d) to develop and administer Departmental Smart Card control procedures, including the authority to issue Departmental Smart Cards and level keys. b)\tMaintain a proper record of Departmental Smart Cards issued to and returned by card users. c)\tSet a specified card access period. d)\tPlace a deposit on each Departmental Smart Card issued. e)\tEstablish a mechanism for reporting and replacement of a lost, stolen or damaged card. f)\tImpose a penalty for misuse of the Departmental Smart card, such as unauthorized transfer and duplication. g)\tProvide a Personal Information Collection Statement to card users when collecting their data. h)\tMake an agreement with individual card users to govern the use of Departmental Smart Cards, specifying the arrangements for items c), d), e), f) and g) above. 2.\tDepartmental Smart Cards should show the card user\u2019s name and the expiry date. 3.\tDepartmental Smart Cards can only be kept and distributed by staff members authorized by the TF. 4.\tAccess rights can only be granted and assigned to the departmental smart card control system by the TF or staff members authorized by the TF. 5.\tDepartments shall remove access permissions from the departmental smart card control system and request the return of the card when no longer required. 6.\tDepartments shall ensure that Departmental Smart Cards are kept secure from unauthorized access or accidental damage. 7.\tDepartments shall ensure that all departmental access controlled doors are not held open. 8.\tDepartmental Smart Cards are the property of Departments. Departments shall make known to card users that they must: a)\tuse the Departmental Smart Cards for access to designated departmental spaces within a specified access period only. b)\tsafeguard the Departmental Smart Cards at all times. c)\tnot allow anyone to use their Departmental Smart Card(s). d)\tnot give access to unauthorized individuals to departmental spaces. e)\tnot damage the Departmental Smart Card(s). f)\timmediately report to the Department if the card is lost, stolen, damaged or suspected to be misused. g)\tReturn the Department Smart Card to the Department when it is expired or no longer required. "),Eo(),Eo(),Io(5,"div",2),Io(6,"button",3),_s(7,"Close"),Eo(),Eo())},directives:[Ux,Wx,Gx,bS,zx],styles:[""]}),vB);function TB(e,t){if(1&e&&(Io(0,"h1"),_s(1),Eo()),2&e){var n=Uo();ma(1),gs(n.title)}}var AB,LB,IB=["*"],EB=((LB=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||LB)},LB.\u0275cmp=gt({type:LB,selectors:[["app-alert-box"]],inputs:{icon:"icon",title:"title"},ngContentSelectors:IB,decls:7,vars:3,consts:[[1,"polyu-alert-box"],[1,"polyu-alert-box-icon-container",3,"hidden"],["aria-hidden","false","aria-label","Error",1,"polyu-alert-box-icon"],[1,"polyu-alert-box-message-container"],[3,"ngIf"]],template:function(e,t){1&e&&(Go(),Io(0,"div",0),Io(1,"div",1),Io(2,"mat-icon",2),_s(3),Eo(),Eo(),Io(4,"div",3),Do(5,TB,2,1,"ng-template",4),Qo(6),Eo(),Eo()),2&e&&(ma(1),Ao("hidden",!t.icon),ma(2),gs(t.icon),ma(2),Ao("ngIf",t.title))},directives:[pT,Ed],styles:[".polyu-alert-box[_ngcontent-%COMP%]{margin:0;width:99%;display:inline-flex;justify-content:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{width:30%;height:150px;text-align:right}.polyu-alert-box-icon[_ngcontent-%COMP%]{font-size:112px;height:112px;width:112px;line-height:112px}.polyu-alert-box-message-container[_ngcontent-%COMP%]{padding-top:10px;padding-left:10px;width:65%;min-height:150px;text-align:left}"]}),LB),OB=((AB=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||AB)},AB.\u0275cmp=gt({type:AB,selectors:[["app-pics"]],decls:12,vars:0,consts:[["href","https://www.polyu.edu.hk/fmo/en/contact-us","target","_blank"]],template:function(e,t){1&e&&(Io(0,"p"),Io(1,"u"),_s(2,"Personal Information Collection Statement"),Eo(),Eo(),Io(3,"p"),_s(4,"Please note that it is mandatory for visitor who request issue PolyU Visitor Access Card or Mobile ID for gaining access to designated PolyU facilities to complete registration via University Visitor Registration System."),Eo(),Io(5,"p"),_s(6,"The personal information collected for registration will be used solely for identification purpose. The Identity Card number or Passport number will be stored in Visitor Registration System in encrypted format. University will not share the information with any other parties without your prior consent. "),Eo(),Io(7,"p"),_s(8,"You have the right to request access to and correction of information about you that is held by us. If you wish to access or correct your personal data, please visit our web site ("),Io(9,"a",0),_s(10,"https://www.polyu.edu.hk/fmo/en/contact-us"),Eo(),_s(11,")."),Eo())},styles:["p[_ngcontent-%COMP%]{font-size:.8em}"]}),AB),RB=["requestInput"],PB=["requestInputFmotdp"],YB=["requestComments"],FB=["requestHandler"],qB=["requestActions"],VB=["requestVisitor"];function HB(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var NB,BB=((NB=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this.actionDone=new Gl,this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!1,this.showComments=!1,this.showFmotdp=!1,this.showPics=!1,this.showActions=!1,this.showVisitor=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"onApprovalFlowChanged",value:function(e){this._request&&(this._request.requestInput=JSON.parse(JSON.stringify(e)),this._requestHandler.updateRequesterSponsorCardType(e.requester,e.sponsor,e.cardType))}},{key:"onHandlerChanged",value:function(e){this._request&&(this._request.workflowConfig=JSON.parse(JSON.stringify(e)))}},{key:"resetRequest",value:function(e){var t=this;if(null===e)return this.showActionDone("error_outline","Request not found or you are not authorized to access the request"),void(this.isLoading=!1);var n=this;this.isLoading=!0,m_({request:this._applicationService.getRequest(e),actions:this._applicationService.listRequestAction(e)}).pipe(Qv((function(){return t.isLoading=!1}))).subscribe({next:function(e){var n=e.request,i=e.actions;t._request=n,t._requestInput.resetRequest(n),t._requestInputFmotdp.resetRequest(n,i),t._requestComments.resetRequest(n,i),t._requestHandler.resetRequest(n,i),t._requestActions.resetRequest(n,i),t._requestVisitor.resetData(n.dataId),t.showComments="requester"!==n.stage,t.showFmotdp="fmotdp"===n.stage||"R"==n.requestType,t.showPics="requester"===n.stage,t.showActions=i.length>0,t.showVisitor="completed"===n.stage,t.pageState="visible",t.actionDoneIcon="",t.actionDoneMessage=""},error:function(e){n.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Unable to create a new request. Please try again later.")}})}},{key:"onSubmit",value:function(){var e=this,t=m_({input:this._requestInput.validateForm(),handler:mu(this._requestHandler.validateForm())}).pipe(V((function(e){var t=e.input,n=e.handler;return t&&n}))),n=t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),i=t.pipe(gu((function(e){return e})),Uv((function(){e._request.requestInput=JSON.parse(JSON.stringify(e._requestInput.evalInput())),e._request.workflowConfig=JSON.parse(JSON.stringify(e._requestHandler.evalHandler()))})),Pv((function(){return e._applicationService.saveRequest(0,e._request.requestInput,e._requestInput.getSupportingDocument(),e._requestInput.getConsentDocument(),e._request.workflowConfig)})),Uv((function(t){e.showActionDone("done","Request ID "+t.requestId+" submitted")}))),a=this;this.isLoading=!0,K(n,i).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({error:function(e){a.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Unable to submit request. Please try again later.")}})}},{key:"onApprove",value:function(e){var t=this;if(this._requestHandler.validateForm()){if(this._request.workflowConfig=JSON.parse(JSON.stringify(this._requestHandler.evalHandler())),"fmotdp"===this._request.stage){if(!this._requestInputFmotdp.validateForm())return void this._snackBar.open("Some input fields are incorrect. Please fix them and approve again.",null,{duration:2e3});this._request.requestInputFmotdp=JSON.parse(JSON.stringify(this._requestInputFmotdp.evalInput()))}this.isLoading=!0;var n,i=this;n="fmohd"===this._request.stage||"fmocss"===this._request.stage?"confirmed checked":"fmotdp"===this._request.stage?"processed":"approved",this._applicationService.processRequest(this._request.requestId,this._request.stage,"approve",this._request.requestInputFmotdp,this._request.workflowConfig).pipe(Qv((function(){t.isLoading=!1}))).subscribe({next:function(e){t.showActionDone("done","Request ID "+t._request.requestId+" "+n)},error:function(e){i.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Unable to approve request. Please try again later.")}})}else this._snackBar.open("Some input fields are incorrect. Please fix them and approve again.",null,{duration:2e3})}},{key:"onReject",value:function(){this.showActionDone("error_outline","Request ID "+this._request.requestId+" rejected")}},{key:"openGuidelineRequest",value:function(){this._dialog.open(MB,{minHeight:"80%",minWidth:"80%"})}},{key:"openGuidelineManagement",value:function(){this._dialog.open(xB,{minHeight:"80%",minWidth:"80%"})}},{key:"showActionDone",value:function(e,t){this.pageState="actionDone",this.actionDoneIcon=e,this.actionDoneMessage=t,this.actionDone.emit()}}]),e}()).\u0275fac=function(e){return new(e||NB)(Mo(_S),Mo(EY),Mo(Bx))},NB.\u0275cmp=gt({type:NB,selectors:[["app-request"]],viewQuery:function(e,t){var n;1&e&&(rc(RB,!0),rc(PB,!0),rc(YB,!0),rc(FB,!0),rc(qB,!0),rc(VB,!0)),2&e&&(ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestInputFmotdp=n.first),ac(n=dc())&&(t._requestComments=n.first),ac(n=dc())&&(t._requestHandler=n.first),ac(n=dc())&&(t._requestActions=n.first),ac(n=dc())&&(t._requestVisitor=n.first))},outputs:{actionDone:"actionDone"},decls:44,vars:11,consts:[[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[3,"icon","title"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","grid-column-start"],["href","https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement","target","_blank"],[3,"approvalFlowChanged"],["requestInput",""],["requestInputFmotdp",""],["requestComments",""],[3,"changed"],["requestHandler",""],[3,"submitted","approved","rejected"],["requestActions",""],["requestVisitor",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Do(2,HB,2,0,"app-overlay",2),Io(3,"div",3),Io(4,"app-alert-box",4),_s(5),Eo(),Eo(),Io(6,"div",3),Io(7,"h3",5),_s(8,"Guidelines"),Eo(),Io(9,"div",6),Io(10,"div",7),Io(11,"p"),_s(12," Please read the Guidance Notes on Request for Activation of Departmental Smart Card (for Users other than Staff and Students) before completing this form. The Guidance Notes can be downloaded from FMO website at ("),Io(13,"a",8),_s(14,"https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement"),Eo(),_s(15,"). "),Eo(),Io(16,"p"),_s(17," Please send the completed form and the blank smart cards to Administration and Ancillary Services Section (P005, Main Campus), of Facilities Management Office (FMO) for processing. For inquiry, please contact FMO Help Desk at ext. 7777. "),Eo(),Eo(),Eo(),Oo(18,"app-divider"),Io(19,"app-request-input",9,10),Ho("approvalFlowChanged",(function(e){return t.onApprovalFlowChanged(e)})),Eo(),Oo(21,"app-divider"),Io(22,"div",3),Oo(23,"app-request-input-fmotdp",null,11),Oo(25,"app-divider"),Eo(),Io(26,"div",3),Oo(27,"app-request-comments",null,12),Oo(29,"app-divider"),Eo(),Io(30,"app-request-handler",13,14),Ho("changed",(function(e){return t.onHandlerChanged(e)})),Eo(),Oo(32,"app-divider"),Io(33,"div",3),Io(34,"app-request-actions",15,16),Ho("submitted",(function(){return t.onSubmit()}))("approved",(function(e){return t.onApprove(e)}))("rejected",(function(){return t.onReject()})),Eo(),Oo(36,"app-divider"),Eo(),Io(37,"div",3),Oo(38,"app-pics"),Oo(39,"app-divider"),Eo(),Io(40,"div",3),Oo(41,"app-request-visitor",null,17),Oo(43,"app-divider"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","actionDone"!==t.pageState),ma(1),Ao("icon",t.actionDoneIcon)("title",""),ma(1),gs(t.actionDoneMessage),ma(1),Ao("hidden","visible"!==t.pageState),ma(16),Ao("hidden",!t.showFmotdp),ma(4),Ao("hidden",!t.showComments),ma(7),Ao("hidden",!t.showActions),ma(4),Ao("hidden",!t.showPics),ma(3),Ao("hidden",!t.showVisitor))},directives:[Ed,EB,TH,cN,SB,SN,DB,ON,OB,LV,tV,nV],styles:[""]}),NB);function jB(e,t){1&e&&Oo(0,"th",14)}var zB=function(e){return{"polyu-highlight-warn":e}};function UB(e,t){if(1&e&&(Io(0,"td",15),Io(1,"span",16),_s(2),Eo(),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngClass",Rl(2,zB,n.formControl&&n.formControl.hasError("required"))),ma(1),gs(n.handlerRole)}}function WB(e,t){1&e&&(Io(0,"th",14),_s(1," Requester/Approver "),Eo())}function GB(e,t){if(1&e&&(Io(0,"td",15),Oo(1,"app-request-action-handler",17),Eo()),2&e){var n=t.$implicit;ma(1),Ao("assignee",n.assignee)("handler",n.handler)("editable",n.isEditable)("hints",n.hints)("control",n.formControl)}}function QB(e,t){1&e&&(Io(0,"th",14),_s(1," Action Taken "),Eo())}function KB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.actionDone," ")}}function $B(e,t){1&e&&(Io(0,"th",14),_s(1," Date "),Eo())}function JB(e,t){if(1&e&&(Io(0,"td",15),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.timestamp?jl(2,1,n.timestamp,"yyyy-MM-dd HH:mm"):"\xa0"," ")}}function XB(e,t){1&e&&Oo(0,"tr",18)}function ZB(e,t){if(1&e&&Oo(0,"tr",19),2&e){var n=t.$implicit;rs("polyu-table-row-expanded",Uo().request.stage===n.stage)}}function ej(e,t){1&e&&Oo(0,"th",14)}function tj(e,t){if(1&e&&(Io(0,"td",15),Io(1,"span",16),_s(2),Eo(),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngClass",Rl(2,zB,n.formControl&&n.formControl.hasError("required"))),ma(1),gs(n.handlerRole)}}function nj(e,t){1&e&&(Io(0,"th",14),_s(1," Reviewer/Processor "),Eo())}function ij(e,t){if(1&e&&(Io(0,"td",15),Oo(1,"app-request-action-handler",17),Eo()),2&e){var n=t.$implicit;ma(1),Ao("assignee",n.assignee)("handler",n.handler)("editable",n.isEditable)("hints",n.hints)("control",n.formControl)}}function aj(e,t){1&e&&(Io(0,"th",14),_s(1," Action Taken "),Eo())}function rj(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.actionDone," ")}}function oj(e,t){1&e&&(Io(0,"th",14),_s(1," Date "),Eo())}function sj(e,t){if(1&e&&(Io(0,"td",15),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.timestamp?jl(2,1,n.timestamp,"yyyy-MM-dd HH:mm"):"\xa0"," ")}}function lj(e,t){1&e&&Oo(0,"tr",18)}function cj(e,t){if(1&e&&Oo(0,"tr",19),2&e){var n=t.$implicit;rs("polyu-table-row-expanded",Uo().request.stage===n.stage)}}function uj(e,t){if(1&e&&(Io(0,"div",20),Io(1,"div",21),Io(2,"mat-form-field",22),Io(3,"mat-label"),_s(4,"Reject Reason"),Eo(),Oo(5,"textarea",23,24),Eo(),Eo(),Eo()),2&e){var n=Uo();ma(5),Ko("value",n.request.rejectReason),Ao("readonly",!0)}}var dj,hj=function e(t,n){_classCallCheck(this,e),this.stage=t,this.handlerRole=Wq(t),this.assignee=null,this.handler=null,this.action=null,this.timestamp=null,this.isVisible=!1,this.isEditable=!1,this.hints=n},fj=function e(){_classCallCheck(this,e),this.requester=new hj("requester","Click here to select requester"),this.sponsor=new hj("sponsor","Click here to select sponsor"),this.approval1=new hj("approval1","Click here to select approver"),this.approval2=new hj("approval2","[Optional] Click here to select approver"),this.approval3=new hj("approval3","[Optional] Click here to select approver"),this.fmohd=new hj("fmohd",null),this.fmocss=new hj("fmocss",null)},pj=((dj=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this.displayedColumns=["stage","handler","action","timestamp"],this._request=new uS,this._actions=[],this._dataSource=new OF([]),this._dataSourceFmo=new OF([]),this._generateForm(),this.changed=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._redrawUi(),this._form.valueChanges.pipe(Xb(300),NS()).subscribe((function(t){e.changed.emit(e.evalHandler())}))}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._actions=JSON.parse(JSON.stringify(t)),this._request.workflowConfig.requester.assignee=e.requestInput.requester,this._request.workflowConfig.requester.handler=e.requestInput.requester,this._request.workflowConfig.sponsor.assignee=e.requestInput.sponsor,this._request.workflowConfig.sponsor.handler=e.requestInput.sponsor,this._form.get("approval1").setValue(this._request.workflowConfig.approval1.assignee),this._form.get("approval2").setValue(this._request.workflowConfig.approval2.assignee),this._form.get("approval3").setValue(this._request.workflowConfig.approval3.assignee),this._redrawUi(),this.changed.emit(this.evalHandler())}},{key:"updateRequesterSponsorCardType",value:function(e,t,n){this._request.workflowConfig.requester.assignee=e,this._request.workflowConfig.requester.handler=e,this._request.workflowConfig.sponsor.assignee=t,this._request.workflowConfig.sponsor.handler=t,this._request.requestInput.cardType=n,this._redrawUi(),this.changed.emit(this.evalHandler())}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.valid}},{key:"evalHandler",value:function(){var e=new cS;return e.approval1={assignee:""===this._form.get("approval1").value?null:this._form.get("approval1").value,handler:null,timestamp:null,action:null},e.approval2={assignee:""===this._form.get("approval2").value?null:this._form.get("approval2").value,handler:null,timestamp:null,action:null},e.approval3={assignee:""===this._form.get("approval3").value?null:this._form.get("approval3").value,handler:null,timestamp:null,action:null},e}},{key:"_redrawUi",value:function(){var e=this,t=new fj;t.requester.isEditable=!1,t.sponsor.isEditable=!1,t.approval1.isEditable=this._actions.length>0&&["requester","sponsor"].indexOf(this._request.stage)>=0,t.approval2.isEditable=this._actions.length>0&&["requester","sponsor","approval1"].indexOf(this._request.stage)>=0,t.approval3.isEditable=this._actions.length>0&&["requester","sponsor","approval1","approval2"].indexOf(this._request.stage)>=0,t.fmohd.isEditable=!1,t.fmocss.isEditable=!1,t.requester.isVisible=this._hasWorkflowStage("requester"),t.sponsor.isVisible=this._hasWorkflowStage("sponsor"),t.approval1.isVisible=this._hasWorkflowStageAssignee("approval1")||t.approval1.isEditable,t.approval2.isVisible=this._hasWorkflowStageAssignee("approval2")||t.approval2.isEditable,t.approval3.isVisible=this._hasWorkflowStageAssignee("approval3")||t.approval3.isEditable,t.fmohd.isVisible=!0,t.fmocss.isVisible=!0,t.approval1.formControl=this._form.get("approval1"),t.approval2.formControl=this._form.get("approval2"),t.approval3.formControl=this._form.get("approval3"),["requester","sponsor","approval1","approval2","approval3","fmohd","fmocss"].forEach((function(n){t[n].isVisible&&(t[n].assignee=e._request.workflowConfig[n].assignee,t[n].handler=e._request.workflowConfig[n].handler,t[n].action=e._request.workflowConfig[n].action,e._request.workflowConfig[n].action?t[n].actionDone=Gq(e._request.workflowConfig[n].action):e._request.stage===n&&e._actions.length>0&&(t[n].actionDone=e._request.workflowConfig[n].assignee===e._applicationService.currentUser.netid?"Assigned to you":"Delegated to you"),t[n].action=e._request.workflowConfig[n].action,t[n].timestamp=e._request.workflowConfig[n].timestamp)}));var n=[];["requester","sponsor","approval1","approval2","approval3"].forEach((function(e){t[e].isVisible&&n.push(t[e])})),this._dataSource.data=n,n=[],["fmohd","fmocss"].forEach((function(e){t[e].isVisible&&n.push(t[e])})),this._dataSourceFmo.data=n}},{key:"_hasWorkflowStage",value:function(e){return!!this._request.workflowConfig[e]}},{key:"_hasWorkflowStageAssignee",value:function(e){return this._hasWorkflowStage(e)&&!!this._request.workflowConfig[e].assignee}},{key:"_generateForm",value:function(){var e=this;this._form=this._formBuilder.group({approval1:["",N_.required],approval2:[""],approval3:[""]}),this._form.get("approval3").valueChanges.subscribe({next:function(t){t&&""!==t?(e.form.get("approval1").setValidators([N_.required]),e.form.get("approval2").setValidators([N_.required]),e.form.get("approval1").markAllAsTouched(),e.form.get("approval2").markAllAsTouched(),e.form.get("approval1").updateValueAndValidity(),e.form.get("approval2").updateValueAndValidity()):(e.form.get("approval2").setValidators([]),e.form.get("approval2").markAllAsTouched(),e.form.get("approval2").updateValueAndValidity())}})}},{key:"form",get:function(){return this._form}},{key:"request",get:function(){return this._request}},{key:"dataSource",get:function(){return this._dataSource}},{key:"dataSourceFmo",get:function(){return this._dataSourceFmo}}]),e}()).\u0275fac=function(e){return new(e||dj)(Mo(_S),Mo(tv))},dj.\u0275cmp=gt({type:dj,selectors:[["app-renew-handler"]],outputs:{changed:"changed"},decls:42,vars:8,consts:[[3,"formGroup"],[1,"polyu-inner-content","polyu-expandable-cell-content"],[1,"polyu-section-headline"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","stage"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","handler"],["matColumnDef","action"],["matColumnDef","timestamp"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded",4,"matRowDef","matRowDefColumns"],[3,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"assignee","handler","editable","hints","control"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5",3,"value","readonly"],["autosize","cdkTextareaAutosize"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"h3",2),_s(3,"Endorsers / Approvers"),Eo(),Io(4,"p"),_s(5,"HoDs or delegates of all departments that the visitor intends to access have to be included as approvers of this request."),Eo(),Io(6,"div",3),Io(7,"table",4),Ro(8,5),Do(9,jB,1,0,"th",6),Do(10,UB,3,4,"td",7),Po(),Ro(11,8),Do(12,WB,2,0,"th",6),Do(13,GB,2,5,"td",7),Po(),Ro(14,9),Do(15,QB,2,0,"th",6),Do(16,KB,2,1,"td",7),Po(),Ro(17,10),Do(18,$B,2,0,"th",6),Do(19,JB,3,4,"td",7),Po(),Do(20,XB,1,0,"tr",11),Do(21,ZB,1,2,"tr",12),Eo(),Eo(),Eo(),Io(22,"div",1),Io(23,"h3",2),_s(24,"FMO Reviewer / Processor"),Eo(),Io(25,"div",3),Io(26,"table",4),Ro(27,5),Do(28,ej,1,0,"th",6),Do(29,tj,3,4,"td",7),Po(),Ro(30,8),Do(31,nj,2,0,"th",6),Do(32,ij,2,5,"td",7),Po(),Ro(33,9),Do(34,aj,2,0,"th",6),Do(35,rj,2,1,"td",7),Po(),Ro(36,10),Do(37,oj,2,0,"th",6),Do(38,sj,3,4,"td",7),Po(),Do(39,lj,1,0,"tr",11),Do(40,cj,1,2,"tr",12),Eo(),Eo(),Eo(),Do(41,uj,7,2,"ng-template",13),Eo()),2&e&&(Ao("formGroup",t.form),ma(7),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(5),Ao("dataSource",t.dataSourceFmo),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("ngIf","rejected"===t.request.stage&&t.request.rejectReason))},directives:[jg,Y_,Qg,pF,eF,kF,vF,_F,DF,MF,Ed,wF,sF,CF,Td,KN,TF,LF,SI,gI,RE,TE],pipes:[oh],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}.polyu-workflow-config-tr[_ngcontent-%COMP%]{background:#dfdfdf}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}"]}),dj),mj=["peopleSummary"],_j=["requestHandler"],gj=["requestComments"];function vj(e,t){if(1&e&&(Io(0,"mat-form-field",10),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",34),Oo(4,"mat-datepicker-toggle",35),Oo(5,"mat-datepicker",null,36),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessStartDate)("min",i.startDateMin)("max",i.startDateMax)("readonly",!0),ma(1),Ao("for",n)}}function yj(e,t){if(1&e&&(Io(0,"mat-form-field",10),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessStartDate)("readonly",!0)}}function kj(e,t){if(1&e&&(Io(0,"mat-form-field",10),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",34),Oo(4,"mat-datepicker-toggle",35),Oo(5,"mat-datepicker",null,37),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessEndDate)("min",i.endDateMin)("max",i.endDateMax)("readonly",!0),ma(1),Ao("for",n)}}function bj(e,t){if(1&e&&(Io(0,"mat-form-field",10),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessEndDate)("readonly",!0)}}function wj(e,t){1&e&&(Io(0,"div",38),Oo(1,"app-people-summary",null,39),Eo())}function Cj(e,t){if(1&e&&(Io(0,"mat-option",42),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function Dj(e,t){if(1&e&&(Io(0,"mat-select",40),Do(1,Cj,2,2,"mat-option",41),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function Sj(e,t){if(1&e&&Oo(0,"input",14),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment)("readonly",n.isReadonly.sponsorDepartment)}}function Mj(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid email address. "),Eo())}function xj(e,t){if(1&e&&(Io(0,"div",5),Io(1,"mat-form-field",10),Io(2,"mat-label"),_s(3,"Visitor's Phone Number"),Eo(),Oo(4,"input",43),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.phone)("readonly",n.isReadonly.phone)}}function Tj(e,t){if(1&e&&(Io(0,"mat-option",42),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function Aj(e,t){if(1&e&&(Io(0,"mat-select",44),Do(1,Tj,2,2,"mat-option",41),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function Lj(e,t){if(1&e&&Oo(0,"input",14),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment)("readonly",n.isReadonly.accessDepartment)}}function Ij(e,t){if(1&e&&(Io(0,"mat-form-field",10),Io(1,"mat-label"),_s(2,"Account Code for Charging"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.chargingAccountCode)("readonly",n.isReadonly.chargingAccountCode)}}function Ej(e,t){1&e&&(Io(0,"mat-error"),_s(1," Consent file must be an image (PNG, JPG, GIF, TIF), a PDF file, a word document, or a compressed file (ZIP, RAR, 7Z) "),Eo())}function Oj(e,t){1&e&&(Io(0,"mat-error"),_s(1," Filename must not exceed 50 characters "),Eo())}function Rj(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please upload a consent document signed by the visitor "),Eo())}function Pj(e,t){1&e&&(Io(0,"mat-error"),_s(1," Consent file must be an image (PNG, JPG, GIF, TIF), a PDF file, or a word document "),Eo())}function Yj(e,t){1&e&&(Io(0,"mat-error"),_s(1," Filename must not exceed 50 characters "),Eo())}function Fj(e,t){if(1&e&&(Io(0,"div",9),Io(1,"mat-form-field",10),Io(2,"mat-label"),_s(3,"Declaration of Consent for Personal Data Collection"),Eo(),Oo(4,"app-file-upload2",45,46),Io(6,"mat-icon",21),_s(7),Eo(),Do(8,Rj,2,0,"mat-error",26),Do(9,Pj,2,0,"mat-error",26),Do(10,Yj,2,0,"mat-error",26),Eo(),Eo()),2&e){var n=So(5),i=Uo();ma(4),Ao("formControl",i.form.controls.consentDocument)("readonly",i.isReadonly.consentDocument)("required",!0),ma(3),gs(i.isReadonly.consentDocument?"":n.value.fileName?"clear":"search"),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("required")),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("filetype")),ma(1),Ao("ngIf",i.form.controls.consentDocument.hasError("filename"))}}var qj,Vj=((qj=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._cd=i,this._form=this._generateDataForm(this._formBuilder),this._request=new uS,this.sponsorNetId=null,this.approvalFlowChanged=new Gl,this.departmentList=[],this.isReadonly={},this.isVisible={},this.showSponsorDetail=!1,this.showKyc=!0,this.showTitle=!0,this.summaryOpened=!0,this.showComments=!1;var a=new Date;a.setFullYear(a.getFullYear()+1),this.startDateMin=null,this.startDateMax=a,this.endDateMin=null,this.endDateMax=a}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.departmentList=this._applicationService.departments,this._form.get("idtype").valueChanges.subscribe((function(t){e._updateUi()})),K(this._form.get("requester").valueChanges,this._form.get("sponsor").valueChanges).pipe(Xb(300),NS()).subscribe((function(t){e.approvalFlowChanged.emit(e.evalInput())})),this._form.get("accessStartDate").valueChanges.subscribe({next:function(t){e.endDateMin=new Date(t)}}),this.resetRequest(this._request,[])}},{key:"setShowTitle",value:function(e){this.showTitle=e}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._form.setValue({surname:e.requestInput.surname?e.requestInput.surname:"",givenName:e.requestInput.givenName?e.requestInput.givenName:"",chineseName:e.requestInput.chineseName?e.requestInput.chineseName:"",personalEmail:e.requestInput.personalEmail?e.requestInput.personalEmail:"",phone:"",idtype:"na",hkid:"",passport:"",mainlandId:"",businessCase:e.requestInput.businessCase?e.requestInput.businessCase:"",accessDepartment:e.requestInput.accessDepartment?e.requestInput.accessDepartment.split(","):"",accessLocation:e.requestInput.accessLocation?e.requestInput.accessLocation:"",accessStartDate:e.requestInput.accessStartDate?dd(e.requestInput.accessStartDate,"yyyy-MM-dd","en-HK"):"",accessEndDate:e.requestInput.accessEndDate?dd(e.requestInput.accessEndDate,"yyyy-MM-dd","en-HK"):"",cardType:"card",requester:e.requestInput.requester?e.requestInput.requester:"",requesterEmail:e.requestInput.requesterEmail?e.requestInput.requesterEmail:"",sponsor:e.requestInput.sponsor?e.requestInput.sponsor:"",sponsorEmail:e.requestInput.sponsorEmail?e.requestInput.sponsorEmail:"",sponsorDepartment:e.requestInput.sponsor?e.requestInput.sponsorDepartment:"",chargingAccountCode:e.requestInput.chargingAccountCode?e.requestInput.chargingAccountCode:"",supportingDocument:{attachmentId:e.requestInput.supportingDocument},consentDocument:{attachmentId:e.requestInput.consentDocument},reason:e.requestInput.reason?e.requestInput.reason:"",libraryId:e.requestInputFmotdp.libraryId?e.requestInputFmotdp.libraryId:"",serialNumber:e.requestInputFmotdp.serialNumber?e.requestInputFmotdp.serialNumber:""}),this._updateUi(),this._request.requestId&&this.refreshKyc(),this._requestHandler.resetRequest(e,t),this._requestComments.resetRequest(e,t),this.showComments="requester"!==e.stage}},{key:"onSponsorPickedUp",value:function(e){e?(this._form.get("sponsorEmail").setValue(e.email),this.sponsorNetId=e.netid):(this._form.get("sponsorEmail").setValue(""),this.sponsorNetId=null)}},{key:"setShowKyc",value:function(e){this.showKyc=e,this._cd.detectChanges()}},{key:"setEditable",value:function(e){this.isReadonly=0==e?{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!0,supportingDocument:!0,consentDocument:!0,reason:!0,libraryId:!0,serialNumber:!0}:{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!1,accessDepartment:!0,accessLocation:!0,accessStartDate:!1,accessEndDate:!1,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!0,supportingDocument:!0,consentDocument:!0,reason:!0,libraryId:!0,serialNumber:!0}}},{key:"refreshKyc",value:function(){if(this.showKyc)if(0===this._request.requestId){if(this._form.get("surname").markAsTouched(),this._form.get("givenName").markAsTouched(),this._form.get("personalEmail").markAsTouched(),!this._form.get("surname").valid||!this._form.get("givenName").valid||!this._form.get("personalEmail").valid)return;this._applicationService.kycReqeustByPersonalId(String(this._form.get("surname").value),String(this._form.get("givenName").value),String(this._form.get("personalEmail").value))}else this._applicationService.kycReqeustByRequestId(this._request.requestId)}},{key:"validateForm",value:function(){var e=this;return console.log("DEBUG: RequestInput.validateForm: "+JSON.stringify(this._form.get("consentDocument").errors)+JSON.stringify(this._form.get("supportingDocument").errors)),this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(t){return console.log("RequestInput.form.statuschanges: "+JSON.stringify(t)+" / "+JSON.stringify(e._form.valid))})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"validateHandler",value:function(){return this._requestHandler.validateForm()}},{key:"setValidationLevel",value:function(e){switch(this._form.get("supportingDocument").clearValidators(),this._form.get("consentDocument").clearValidators(),e){case 0:this._form.get("supportingDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50)]),this._form.get("consentDocument").setValidators([RV,EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50)]);break;case 1:this._form.get("supportingDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50)]),this._form.get("consentDocument").setValidators([EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50)])}}},{key:"evalInput",value:function(){return{surname:this._form.get("surname").value,givenName:this._form.get("givenName").value,chineseName:this._form.get("chineseName").value,personalEmail:this._form.get("personalEmail").value,phone:this._form.get("phone").value,hkid:"hkid"===this._form.get("idtype").value?this._form.get("hkid").value:null,passport:"passport"===this._form.get("idtype").value?this._form.get("passport").value:null,mainlandId:"mainlandId"===this._form.get("idtype").value?this._form.get("mainlandId").value:null,businessCase:this._form.get("businessCase").value,accessDepartment:String(this._form.get("accessDepartment").value),accessLocation:this._form.get("accessLocation").value,accessStartDate:this._form.get("accessStartDate").value,accessEndDate:this._form.get("accessEndDate").value,cardType:this._form.get("cardType").value,requester:this._form.get("requester").value,requesterEmail:this._form.get("requesterEmail").value,sponsor:this._form.get("sponsor").value,sponsorEmail:this._form.get("sponsorEmail").value,sponsorDepartment:this._form.get("sponsorDepartment").value,chargingAccountCode:""!==this._form.get("chargingAccountCode").value?this._form.get("chargingAccountCode").value:null,supportingDocument:this._form.get("supportingDocument").value.attachmentId,consentDocument:this._form.get("consentDocument").value.attachmentId,reason:this._form.get("reason").value}}},{key:"evalHandler",value:function(){return this._requestHandler.evalHandler()}},{key:"_updateUi",value:function(){this.isReadonly=this._request&&"requester"===this._request.stage&&this._request.requestInput.requester===this._applicationService.currentUser.netid?{surname:!1,givenName:!1,chineseName:!1,personalEmail:!1,phone:!1,idtype:!1,hkid:!1,passport:!1,mainlandId:!1,businessCase:!1,accessDepartment:!1,accessLocation:!1,accessStartDate:!1,accessEndDate:!1,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!1,sponsorEmail:!0,sponsorDepartment:!1,chargingAccountCode:!1,supportingDocument:!1,consentDocument:!1,reason:!1,libraryId:!1,serialNumber:!1}:{surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!0,idtype:!0,hkid:!0,passport:!0,mainlandId:!0,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0,consentDocument:!0,reason:!0,libraryId:!0,serialNumber:!0},this.isVisible={surname:!0,givenName:!0,chineseName:!0,personalEmail:!0,phone:!this.isReadonly.phone,idtype:!this.isReadonly.idtype,hkid:!this.isReadonly.hkid&&"hkid"===this._form.get("idtype").value,passport:!this.isReadonly.passport&&"passport"===this._form.get("idtype").value,mainlandId:!1,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!1,requester:!0,requesterEmail:!1,sponsor:!0,sponsorEmail:!1,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0,consentDocument:!0,reason:!0,libraryId:!0,serialNumber:!0}}},{key:"_generateDataForm",value:function(e){var t=e.group({surname:["",N_.required],givenName:["",N_.required],chineseName:[""],personalEmail:["",[N_.required,N_.email]],phone:[""],idtype:["na",N_.required],hkid:[""],passport:[""],mainlandId:[""],businessCase:["",N_.required],accessDepartment:[[],N_.required],accessLocation:["",N_.required],accessStartDate:["",N_.required],accessEndDate:["",N_.required],cardType:["card",N_.required],requester:[this._applicationService.currentUser.netid],requesterEmail:[this._applicationService.currentUser.email],sponsor:["",N_.required],sponsorEmail:["",N_.required],sponsorDepartment:["",N_.required],chargingAccountCode:[""],supportingDocument:[new VV,[EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50)]],consentDocument:[new VV,[RV,EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf"]),OV(50)]],reason:["",N_.required],libraryId:["",N_.required],serialNumber:["",N_.required]});return t.get("idtype").valueChanges.subscribe({next:function(e){"hkid"===e?(t.get("hkid").setValidators([N_.required,IV]),t.get("passport").setValidators([]),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity()):"passport"===e?(t.get("hkid").setValidators([]),t.get("passport").setValidators([N_.required]),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity()):"na"===e&&(t.get("hkid").clearValidators(),t.get("hkid").reset(),t.get("passport").clearValidators(),t.get("passport").reset(),t.get("hkid").markAllAsTouched(),t.get("hkid").updateValueAndValidity(),t.get("passport").markAllAsTouched(),t.get("passport").updateValueAndValidity())}}),t.statusChanges.subscribe({next:function(e){return console.log("DEBUG: RequestInputComponent: form.statusChanges: "+JSON.stringify(e))}}),t}},{key:"dummyAsyncValidatorFn",value:function(){return function(e){return mu({custom:!0}).pipe(xI(2e3),Uv((function(){return console.log("DEBUG: CustomAsyncValidator")})))}}},{key:"mouseEnter",value:function(e){"sponsor"===e&&this._form.get(e).value&&this.isReadonly[e]&&(this.showSponsorDetail=!0,this._cd.detectChanges(),this._sponsorSummary.setId(this._form.get(e).value))}},{key:"mouseLeave",value:function(e){"sponsor"===e&&(this.showSponsorDetail=!1)}},{key:"onHandlerChanged",value:function(e){this._request&&(this._request.workflowConfig=JSON.parse(JSON.stringify(e)))}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||qj)(Mo(_S),Mo(tv),Mo(jr))},qj.\u0275cmp=gt({type:qj,selectors:[["app-renew-input-display"]],viewQuery:function(e,t){var n;1&e&&(oc(mj,!0),rc(_j,!0),rc(gj,!0)),2&e&&(ac(n=dc())&&(t._sponsorSummary=n.first),ac(n=dc())&&(t._requestHandler=n.first),ac(n=dc())&&(t._requestComments=n.first))},outputs:{approvalFlowChanged:"approvalFlowChanged"},decls:154,vars:49,consts:[[3,"formGroup"],[1,"polyu-page-headline",3,"hidden"],[3,"expanded"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-6"],[3,"ngIf","ngIfElse"],["accessStartDateRO",""],["accessEndDateRO",""],[1,"polyu-grid-cell-12"],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","required","",3,"formControl","readonly"],["autosize","cdkTextareaAutosize"],[1,"polyu-grid-cell-6","grid-column-start"],["matInput","","required","",3,"formControl","readonly"],[1,"polyu-grid-cell-4","grid-column-start"],[3,"label"],[3,"netid","displayField"],[1,"polyu-grid-cell-4"],["placeholder","Sponsor NetID",3,"formControl","readonly","required","displayField","onDataSelectedEvent","mouseenter","mouseleave"],["ppSponsor",""],["matSuffix",""],[3,"ngIf"],["sponsorDepartmentRO",""],["matInput","","requried","",3,"formControl","readonly"],["matInput","","type","email","required","",3,"formControl","readonly"],[4,"ngIf"],["accessDepartmentRO",""],["placeholder","Supporting Document",3,"formControl","readonly","required"],["supportingDocument",""],[3,"changed"],["requestHandler",""],[3,"hidden"],["requestComments",""],["matInput","","required","",3,"matDatepicker","formControl","min","max","readonly"],["matSuffix","",3,"for"],["picker1",""],["picker2",""],[1,"popover"],["peopleSummary",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl","readonly"],["multiple","",3,"formControl"],["placeholder","Sponsor NetID",3,"formControl","readonly","required"],["consentDocument",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Renew Request Information"),Eo(),Io(3,"mat-accordion"),Io(4,"mat-expansion-panel",2),Io(5,"mat-expansion-panel-header"),Io(6,"mat-panel-title"),Io(7,"h3",3),Io(8,"b"),_s(9,"Summary"),Eo(),Eo(),Eo(),Eo(),Io(10,"div",4),Io(11,"div",5),Io(12,"div"),Do(13,vj,7,6,"ng-template",6),Do(14,yj,4,2,"ng-template",null,7,mc),Eo(),Eo(),Io(16,"div",5),Io(17,"div"),Do(18,kj,7,6,"ng-template",6),Do(19,bj,4,2,"ng-template",null,8,mc),Eo(),Eo(),Io(21,"div",9),Io(22,"mat-form-field",10),Io(23,"mat-label"),_s(24,"Reason"),Eo(),Oo(25,"textarea",11,12),Eo(),Eo(),Eo(),Eo(),Io(27,"mat-expansion-panel"),Io(28,"mat-expansion-panel-header"),Io(29,"mat-panel-title"),Io(30,"h3",3),Io(31,"b"),_s(32,"Physical Access Card"),Eo(),Eo(),Eo(),Eo(),Io(33,"div",4),Io(34,"div",13),Io(35,"mat-form-field",10),Io(36,"mat-label"),_s(37,"Access ID"),Eo(),Oo(38,"input",14),Eo(),Eo(),Io(39,"div",13),Io(40,"mat-form-field",10),Io(41,"mat-label"),_s(42,"MiFare Card UID"),Eo(),Oo(43,"input",14),Eo(),Eo(),Eo(),Eo(),Io(44,"mat-expansion-panel"),Io(45,"mat-expansion-panel-header"),Io(46,"mat-panel-title"),Io(47,"h3",3),Io(48,"b"),_s(49,"Requester and Sponsor"),Eo(),Eo(),Eo(),Eo(),Io(50,"div",4),Io(51,"div",15),Io(52,"app-form-field",16),Oo(53,"app-people",17),Eo(),Eo(),Io(54,"div",18),Io(55,"mat-form-field",10),Io(56,"mat-label"),_s(57,"Sponsor"),Eo(),Io(58,"app-people-picker2",19,20),Ho("onDataSelectedEvent",(function(e){return t.onSponsorPickedUp(e)}))("mouseenter",(function(){return t.mouseEnter("sponsor")}))("mouseleave",(function(){return t.mouseLeave("sponsor")})),Eo(),Io(60,"mat-icon",21),_s(61),Eo(),Eo(),Do(62,wj,3,0,"ng-template",22),Eo(),Io(63,"div",18),Io(64,"mat-form-field",10),Io(65,"mat-label"),_s(66,"Sponsor Department"),Eo(),Do(67,Dj,2,2,"ng-template",6),Do(68,Sj,1,2,"ng-template",null,23,mc),Eo(),Eo(),Eo(),Eo(),Io(70,"mat-expansion-panel"),Io(71,"mat-expansion-panel-header"),Io(72,"mat-panel-title"),Io(73,"h3",3),Io(74,"b"),_s(75,"Visitor"),Eo(),Eo(),Eo(),Eo(),Io(76,"div",4),Io(77,"div",15),Io(78,"mat-form-field",10),Io(79,"mat-label"),_s(80,"Surname"),Eo(),Oo(81,"input",14),Eo(),Eo(),Io(82,"div",18),Io(83,"mat-form-field",10),Io(84,"mat-label"),_s(85,"Given Name"),Eo(),Oo(86,"input",14),Eo(),Eo(),Io(87,"div",18),Io(88,"mat-form-field",10),Io(89,"mat-label"),_s(90,"Chinese Name"),Eo(),Oo(91,"input",24),Eo(),Eo(),Eo(),Io(92,"div",13),Io(93,"mat-form-field",10),Io(94,"mat-label"),_s(95,"Visitor's Email Address"),Eo(),Oo(96,"input",25),Do(97,Mj,2,0,"mat-error",26),Eo(),Eo(),Do(98,xj,5,2,"ng-template",22),Eo(),Io(99,"mat-expansion-panel"),Io(100,"mat-expansion-panel-header"),Io(101,"mat-panel-title"),Io(102,"h3",3),Io(103,"b"),_s(104,"Supporting Information"),Eo(),Eo(),Eo(),Eo(),Io(105,"div",4),Io(106,"div",9),Io(107,"mat-form-field",10),Io(108,"mat-label"),_s(109,"Business Justification for Granting Access"),Eo(),Oo(110,"textarea",11,12),Eo(),Eo(),Io(112,"div",9),Io(113,"mat-form-field",10),Io(114,"mat-label"),_s(115,"Departments to be accessed"),Eo(),Do(116,Aj,2,2,"ng-template",6),Do(117,Lj,1,2,"ng-template",null,27,mc),Eo(),Eo(),Io(119,"div",9),Io(120,"mat-form-field",10),Io(121,"mat-label"),_s(122,"Location to be accessed"),Eo(),Oo(123,"textarea",11,12),Eo(),Eo(),Io(125,"div",5),Do(126,Ij,4,2,"ng-template",22),Eo(),Io(127,"div",9),Io(128,"mat-form-field",10),Io(129,"mat-label"),_s(130,"Supporting Document"),Eo(),Oo(131,"app-file-upload2",28,29),Io(133,"mat-icon",21),_s(134),Eo(),Do(135,Ej,2,0,"mat-error",26),Do(136,Oj,2,0,"mat-error",26),Eo(),Eo(),Do(137,Fj,11,7,"ng-template",22),Eo(),Eo(),Io(138,"mat-expansion-panel"),Io(139,"mat-expansion-panel-header"),Io(140,"mat-panel-title"),Io(141,"h3",3),Io(142,"b"),_s(143,"Endorsers / Approvers"),Eo(),Eo(),Eo(),Eo(),Io(144,"app-renew-handler",30,31),Ho("changed",(function(e){return t.onHandlerChanged(e)})),Eo(),Eo(),Io(146,"mat-expansion-panel",32),Io(147,"mat-expansion-panel-header"),Io(148,"mat-panel-title"),Io(149,"h3",3),Io(150,"b"),_s(151,"Miscellaneous"),Eo(),Eo(),Eo(),Eo(),Oo(152,"app-request-comments",null,33),Eo(),Eo(),Eo()),2&e){var n=So(15),i=So(20),a=So(59),r=So(69),o=So(118),s=So(132);Ao("formGroup",t.form),ma(1),Ao("hidden",!t.showTitle),ma(3),Ao("expanded",t.summaryOpened),ma(9),Ao("ngIf",!t.isReadonly.accessStartDate)("ngIfElse",n),ma(5),Ao("ngIf",!t.isReadonly.accessEndDate)("ngIfElse",i),ma(7),Ao("formControl",t.form.controls.reason)("readonly",t.isReadonly.reason),ma(13),Ao("formControl",t.form.controls.libraryId)("readonly",t.isReadonly.libraryId),ma(5),Ao("formControl",t.form.controls.serialNumber)("readonly",t.isReadonly.serialNumber),ma(9),Ao("label","Requester"),ma(1),Ao("netid",t.form.controls.requester.value)("displayField","displayName"),ma(5),Ao("formControl",t.form.controls.sponsor)("readonly",t.isReadonly.sponsor)("required",!0)("displayField","displayName"),ma(3),gs(t.isReadonly.sponsor?"":a.value?"clear":"search"),ma(1),Ao("ngIf",t.showSponsorDetail),ma(5),Ao("ngIf",!t.isReadonly.sponsorDepartment)("ngIfElse",r),ma(14),Ao("formControl",t.form.controls.surname)("readonly",t.isReadonly.surname),ma(5),Ao("formControl",t.form.controls.givenName)("readonly",t.isReadonly.givenName),ma(5),Ao("formControl",t.form.controls.chineseName)("readonly",t.isReadonly.chineseName),ma(5),Ao("formControl",t.form.controls.personalEmail)("readonly",t.isReadonly.personalEmail),ma(1),Ao("ngIf",t.form.controls.personalEmail.hasError("required")||t.form.controls.personalEmail.hasError("email")),ma(1),Ao("ngIf",t.isVisible.phone),ma(12),Ao("formControl",t.form.controls.businessCase)("readonly",t.isReadonly.businessCase),ma(6),Ao("ngIf",!t.isReadonly.accessDepartment)("ngIfElse",o),ma(7),Ao("formControl",t.form.controls.accessLocation)("readonly",t.isReadonly.accessLocation),ma(3),Ao("ngIf",t.isVisible.chargingAccountCode),ma(5),Ao("formControl",t.form.controls.supportingDocument)("readonly",t.isReadonly.supportingDocument)("required",!1),ma(3),gs(t.isReadonly.supportingDocument?"":s.value.fileName?"clear":"search"),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filetype")),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filename")),ma(1),Ao("ngIf",t.isVisible.consentDocument),ma(9),Ao("hidden",!t.showComments)}},directives:[jg,Y_,Qg,_R,fR,pR,mR,Ed,SI,gI,RE,TE,M_,Jg,P_,Wg,gH,iV,xH,pT,kI,LH,pj,SN,YO,qO,EO,hH,lP,Ld,CD,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}.popover[_ngcontent-%COMP%]{top:auto;left:auto;background-color:#fff;border:1px solid #ddd;pointer-events:none;position:absolute;transition:all .5s ease 0s}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}"]}),qj),Hj=function(e){return{"polyu-highlight-warn":e}};function Nj(e,t){if(1&e&&(Io(0,"div",3),Io(1,"div",4),Io(2,"mat-checkbox",5),_s(3,"\xa0"),Eo(),Io(4,"span",6),_s(5,'By clicking "Confirm visitor information", I confirm that the details of the visitor personal information provided above have been verified and are correct.'),Eo(),Eo(),Io(6,"div",4),Io(7,"mat-checkbox",5),_s(8,"\xa0"),Eo(),Io(9,"span",6),_s(10,'I have communicated the Personal Information Collection Statement ("PICS") with visitor stated above and obtained his/her consent on the use of his/her personal information in accordance with the PICS.'),Eo(),Eo(),Eo()),2&e){var n=Uo();ma(2),Ao("required",!0)("formControl",n.form.get("declareCorrect")),ma(2),Ao("ngClass",Rl(6,Hj,!n.form.get("declareCorrect").valid)),ma(3),Ao("required",!0)("formControl",n.form.get("declarePics")),ma(2),Ao("ngClass",Rl(8,Hj,!n.form.get("declarePics").valid))}}function Bj(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){return en(n),Uo().submitted.emit()})),_s(1,"Submit"),Eo()}}function jj(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){en(n);var e=Uo();return e.approved.emit(e.approveLabel)})),_s(1),Eo()}if(2&e){var i=Uo();ma(1),gs(i.approveLabel)}}function zj(e,t){if(1&e){var n=Fo();Io(0,"button",7),Ho("click",(function(){return en(n),Uo().openRejectDialog()})),_s(1,"Reject"),Eo()}}var Uj,Wj=((Uj=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._changeDetectorRef=i,this._dialog=a,this._request=new uS,this._generateForm(),this._request=new uS,this._requestActions=[],this.isActionSubmit=!1,this.isActionApprove=!1,this.isActionReject=!1,this.isActionReturn=!1,this.showHistory=!0,this.approveLabel="",this.submitted=new Gl,this.approved=new Gl,this.rejected=new Gl,this.history=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetRequest",value:function(e,t){this._request=JSON.parse(JSON.stringify(e)),this._requestActions=t,this._redrawUi()}},{key:"setHistoryBtnVisibile",value:function(e){this.showHistory=e}},{key:"currentUser",value:function(){return this._applicationService.currentUser}},{key:"openRejectDialog",value:function(){var e=this;this._dialog.open(MN,{width:"720px",maxWidth:"100%",data:this._request}).afterClosed().subscribe((function(t){t&&e.rejected.emit()}))}},{key:"_redrawUi",value:function(){this.isActionSubmit=!1,this.isActionApprove=!1,this.isActionReject=!1,this.isActionReturn=!1,this._requestActions&&(this.isActionSubmit=this._requestActions.indexOf("Submit")>=0,this.isActionApprove=this._requestActions.indexOf("Approve")>=0,this.isActionReject=this._requestActions.indexOf("Reject")>=0,this.isActionReturn=this._requestActions.indexOf("Return")>=0),this.approveLabel=this.isActionApprove?"fmohd"===this._request.stage?"Confirm Checked":"fmocss"===this._request.stage?"Process":"Approve":""}},{key:"_generateForm",value:function(){this._form=this._formBuilder.group({declareCorrect:["",N_.requiredTrue],declarePics:["",N_.requiredTrue]})}},{key:"form",get:function(){return this._form}},{key:"request",get:function(){return this._request}}]),e}()).\u0275fac=function(e){return new(e||Uj)(Mo(_S),Mo(tv),Mo(jr),Mo(Bx))},Uj.\u0275cmp=gt({type:Uj,selectors:[["app-renew-actions"]],outputs:{submitted:"submitted",approved:"approved",rejected:"rejected",history:"history"},decls:6,vars:5,consts:[[3,"formGroup"],[3,"ngIf"],[1,"polyu-action-bar"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],[3,"required","formControl"],[3,"ngClass"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Do(1,Nj,11,10,"ng-template",1),Io(2,"div",2),Do(3,Bj,2,0,"ng-template",1),Do(4,jj,2,1,"ng-template",1),Do(5,zj,2,0,"ng-template",1),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(1),Ao("ngIf",t.isActionSubmit),ma(2),Ao("ngIf",t.isActionSubmit),ma(1),Ao("ngIf",t.isActionApprove),ma(1),Ao("ngIf",t.isActionReject))},directives:[jg,Y_,Qg,Ed,gE,yE,Jg,P_,Wg,Td,bS],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}"]}),Uj),Gj=function(){function e(t){_classCallCheck(this,e),this._cd=t,this._requestsSubject=new av([]),this._loadingSubject=new av(!1),this._errorSubject=new av(null),this.error=this._errorSubject.asObservable(),this.loading=this._loadingSubject.asObservable(),this._listener=null,this.currentData=[]}return _createClass(e,[{key:"setListener",value:function(e){this._listener=e}},{key:"connect",value:function(e){return this._requestsSubject.asObservable()}},{key:"disconnect",value:function(e){this._requestsSubject.complete(),this._loadingSubject.complete(),this._errorSubject.complete()}},{key:"load",value:function(e){var t=this;this._loadingSubject.next(!0);var n=this._listener;this.onLoadData(e).pipe(Mv((function(e){return t._errorSubject.next(e),mu(e.statusText)})),Qv((function(){t._loadingSubject.next(!1)}))).subscribe((function(i){if(i){var a=i;t.paginator&&(t.paginator.length=a.totalCount),t._requestsSubject.next(a.data),t._loadingSubject.next(!1),t.currentData=a.data,n&&n.onLoaded(e,a),t._cd.detectChanges()}}))}},{key:"clear",value:function(){this.paginator&&(this.paginator.length=0),this.currentData=[],this._requestsSubject.next([]),this._loadingSubject.next(!1)}}]),e}(),Qj=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchEventHistory(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),Kj=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchRequest(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj);function $j(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var Jj,Xj,Zj,ez=((Zj=function(){function e(t,n,i,a){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._snackBar=i,this._dataId=a,this.isLoading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"closeDialog",value:function(){this._dialogRef.close()}},{key:"terminateVisitor",value:function(){var e=this;this.isLoading=!0,this._applicationService.terminateVisitor(this._dataId).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e._snackBar.open("Visitor "+t.visitor.userId+" terminated",null,{duration:2e3}),e._dialogRef.close()},error:function(t){e._snackBar.open(JSON.stringify(t),null,{duration:2e3})}})}}]),e}()).\u0275fac=function(e){return new(e||Zj)(Mo(Fx),Mo(_S),Mo(EY),Mo(qx))},Zj.\u0275cmp=gt({type:Zj,selectors:[["app-data-visitor-terminate"]],decls:12,vars:1,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,$j,2,0,"app-overlay",1),Io(2,"h1",2),_s(3,"Terminate Visitor"),Eo(),Io(4,"div",3),Io(5,"p"),_s(6,' Upon clicking "Terminate Visitor", access granted to the visitor will be terminated. This action cannot be undone. '),Eo(),Eo(),Io(7,"div",4),Io(8,"button",5),Ho("click",(function(){return t.closeDialog()})),_s(9,"Back"),Eo(),Io(10,"button",5),Ho("click",(function(){return t.terminateVisitor()})),_s(11,"Terminate Visitor"),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading))},directives:[Ed,Ux,Wx,Gx,bS,tV,nV],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),Zj),tz=((Xj=function(){function e(t,n,i,a){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._snackBar=i,this._data=a,this.libraryNo=new Fg("",N_.required),this.serialNumber=new Fg("",N_.required)}return _createClass(e,[{key:"closeDialog",value:function(){this._dialogRef.close()}},{key:"revokeCard",value:function(){var e=this;this._applicationService.reissueDataCard(this._data.dataId,this.libraryNo.value,this.serialNumber.value).subscribe({complete:function(){e._snackBar.open("Physical Access Card reissued",null,{duration:2e3}),e._dialogRef.close()}})}}]),e}()).\u0275fac=function(e){return new(e||Xj)(Mo(Fx),Mo(_S),Mo(EY),Mo(qx))},Xj.\u0275cmp=gt({type:Xj,selectors:[["app-data-card-reissue"]],decls:16,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","standard"],["matInput","","required","",3,"formControl"],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Reissue Physical Access Card"),Eo(),Io(2,"div",1),Io(3,"mat-form-field",2),Io(4,"mat-label"),_s(5,"Access ID (888XXXXXX or 777XXXXXX)"),Eo(),Oo(6,"input",3),Eo(),Io(7,"mat-form-field",2),Io(8,"mat-label"),_s(9,"MiFare Card UID"),Eo(),Oo(10,"input",3),Eo(),Eo(),Io(11,"div",4),Io(12,"button",5),Ho("click",(function(){return t.closeDialog()})),_s(13,"Back"),Eo(),Io(14,"button",5),Ho("click",(function(){return t.revokeCard()})),_s(15,"Reissue"),Eo(),Eo()),2&e&&(ma(6),Ao("formControl",t.libraryNo),ma(4),Ao("formControl",t.serialNumber))},directives:[Ux,Wx,SI,gI,RE,M_,Jg,P_,Wg,Gx,bS],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),Xj),nz=((Jj=function(){function e(t,n,i,a){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._snackBar=i,this._data=a,this.rejectReason=new Fg("")}return _createClass(e,[{key:"closeDialog",value:function(){this._dialogRef.close()}},{key:"revokeCard",value:function(){var e=this;this._applicationService.revokeDataCard(this._data.dataId).subscribe({complete:function(){e._snackBar.open("Physical Access Card revoked",null,{duration:2e3}),e._dialogRef.close()}})}}]),e}()).\u0275fac=function(e){return new(e||Jj)(Mo(Fx),Mo(_S),Mo(EY),Mo(qx))},Jj.\u0275cmp=gt({type:Jj,selectors:[["app-data-card-revoke"]],decls:10,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Revoke Physical Access Card"),Eo(),Io(2,"div",1),Io(3,"p"),_s(4,' Upon clicking "Revoke Physical Card", access granted to the physical card will be revoked. '),Eo(),Eo(),Io(5,"div",2),Io(6,"button",3),Ho("click",(function(){return t.closeDialog()})),_s(7,"Back"),Eo(),Io(8,"button",3),Ho("click",(function(){return t.revokeCard()})),_s(9,"Revoke"),Eo(),Eo())},directives:[Ux,Wx,Gx,bS],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),Jj);function iz(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function az(e,t){1&e&&(Io(0,"th",15),_s(1," Visitor No. "),Eo())}function rz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitorNo," ")}}function oz(e,t){1&e&&(Io(0,"th",15),_s(1," Access ID "),Eo())}function sz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.libraryId," ")}}function lz(e,t){1&e&&(Io(0,"th",15),_s(1," MiFare Card UID "),Eo())}function cz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.serialNumber," ")}}function uz(e,t){1&e&&(Io(0,"th",15),_s(1," Issue Date (dd-mm-yyyy) "),Eo())}function dz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.issueDate," ")}}function hz(e,t){1&e&&(Io(0,"th",15),_s(1," Access Start (dd-mm-yyyy) "),Eo())}function fz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStart," ")}}function pz(e,t){1&e&&(Io(0,"th",15),_s(1," Access End (dd-mm-yyyy) "),Eo())}function mz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEnd," ")}}function _z(e,t){1&e&&(Io(0,"th",15),_s(1," Status "),Eo())}function gz(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.status," ")}}function vz(e,t){1&e&&Oo(0,"tr",17)}function yz(e,t){1&e&&Oo(0,"tr",18)}var kz,bz,wz=((bz=function(){function e(t,n,i){_classCallCheck(this,e),this._formBuilder=t,this._dialog=n,this._applicationService=i,this.displayedColumns=["visitorNo","libraryId","serialNumber","issueDate","accessStart","accessEnd","status"],this._data=new BD,this._role="",this._form=t.group({libraryId:["",N_.required],serialNumber:["",N_.required]}),this.onRowClickedEvent=new Gl,this._dataSource=new OF([]),this.isLoading=!1,this.showReissue=!1,this.showRevoke=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetData",value:function(e,t){this._data=e,this._role=t,this.resetCardList(e.dataId)}},{key:"resetCardList",value:function(e){var t=this;this.isLoading=!0,this.showReissue=!1,this.showRevoke=!1;var n=this;this.dataSource.data=[],this._applicationService.listDataCardRecords(e).pipe(Qv((function(){t.isLoading=!1}))).subscribe({next:function(e){if(t._data.visitor.cardRecords=e,t.dataSource.data=t._data.visitor.cardRecords.map((function(e){return{cardId:e.cardRecordId,visitorNo:e.universityId,libraryId:e.libraryId,serialNumber:e.serialNumber,issueDate:dd(e.issueDate,"dd-MM-yyyy","en-HK"),accessStart:"issued"===e.status?dd(n._data.visitor.accessStartDate,"dd-MM-yyyy","en-HK"):"/",accessEnd:"issued"===e.status?dd(n._data.visitor.accessEndDate,"dd-MM-yyyy","en-HK"):"/",status:"issued"===e.status?"Issued":"revoked"===e.status?"Revoked":e.status,reportLost:"issued"===e.status}})),"fmoadmin"===t._role){var i,a=_createForOfIteratorHelper(t._data.visitor.cardRecords);try{for(a.s();!(i=a.n()).done;)"issued"===i.value.status&&(t.showRevoke=!0)}catch(r){a.e(r)}finally{a.f()}t.showReissue=!t.showRevoke}},error:function(e){t._data.visitor.cardRecords=[]}})}},{key:"openRevokeDialog",value:function(){var e=this;this._dialog.open(nz,{width:"720px",maxWidth:"100%",data:this._data}).afterClosed().subscribe((function(){e.resetCardList(e._data.dataId)}))}},{key:"openReissueDialog",value:function(){var e=this;this._dialog.open(tz,{width:"720px",maxWidth:"100%",data:this._data}).afterClosed().subscribe((function(){e.resetCardList(e._data.dataId)}))}},{key:"reissueCard",value:function(){var e=this;this.isLoading=!0,this._applicationService.reissueDataCard(this._data.dataId,String(this._form.get("libraryId").value),String(this._form.get("serialNumber").value)).pipe(Pv((function(){return e._applicationService.getData(e._data.dataId)})),Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e.resetCardList(e._data.dataId)},error:function(t){e.resetCardList(e._data.dataId)}})}},{key:"revokeCard",value:function(){var e=this;this.isLoading=!0,this._applicationService.revokeDataCard(this._data.dataId).pipe(Pv((function(){return e._applicationService.getData(e._data.dataId)})),Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e.resetCardList(e._data.dataId)},error:function(t){e.resetCardList(e._data.dataId)}})}},{key:"onRowClicked",value:function(e){this.onRowClickedEvent.emit(e)}},{key:"form",get:function(){return this._form}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||bz)(Mo(tv),Mo(Bx),Mo(_S))},bz.\u0275cmp=gt({type:bz,selectors:[["app-data-card"]],outputs:{onRowClickedEvent:"onRowClickedEvent"},decls:28,vars:4,consts:[[1,"polyu-section-headline"],[1,"polyu-overlay-container"],[4,"ngIf"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","visitorNo"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","libraryId"],["matColumnDef","serialNumber"],["matColumnDef","issueDate"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Io(0,"h3",0),_s(1,"Physical Access Card"),Eo(),Io(2,"div",1),Do(3,iz,2,0,"app-overlay",2),Io(4,"table",3),Ro(5,4),Do(6,az,2,0,"th",5),Do(7,rz,2,1,"td",6),Po(),Ro(8,7),Do(9,oz,2,0,"th",5),Do(10,sz,2,1,"td",6),Po(),Ro(11,8),Do(12,lz,2,0,"th",5),Do(13,cz,2,1,"td",6),Po(),Ro(14,9),Do(15,uz,2,0,"th",5),Do(16,dz,2,1,"td",6),Po(),Ro(17,10),Do(18,hz,2,0,"th",5),Do(19,fz,2,1,"td",6),Po(),Ro(20,11),Do(21,pz,2,0,"th",5),Do(22,mz,2,1,"td",6),Po(),Ro(23,12),Do(24,_z,2,0,"th",5),Do(25,gz,2,1,"td",6),Po(),Do(26,vz,1,0,"tr",13),Do(27,yz,1,0,"tr",14),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf",t.isLoading),ma(1),Ao("dataSource",t.dataSource),ma(22),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,tV,nV,wF,CF,TF,LF],styles:[".mat-column-lost[_ngcontent-%COMP%], .mat-column-renewal[_ngcontent-%COMP%]{padding:0!important}"]}),bz),Cz=((kz=function(){function e(){_classCallCheck(this,e),this._data=new BD,this.accessMediaLabel="",this.statusLabel=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetData",value:function(e){this._data=null===e?new BD:e,this._redrawUi()}},{key:"_redrawUi",value:function(){this.accessMediaLabel=this._data.visitor.cardFlag?Uq("card"):""+this._data.visitor.mobileFlag?Uq("mobile"):"",this.statusLabel=this._data.visitor.suspendFlag?"Suspended":this._data.visitor.active?"Active":"Expired"}},{key:"data",get:function(){return this._data}}]),e}()).\u0275fac=function(e){return new(e||kz)},kz.\u0275cmp=gt({type:kz,selectors:[["app-data-visitor"]],decls:86,vars:21,consts:[[1,"polyu-inner-content","polyu-expandable-cell-content"],[1,"polyu-section-headline"],[1,"mat-elevation-z8","mat-table","polyu-info-table"],[1,"mat-header-column"],[1,"mat-header-cell","polyu-visitor-table-column1"],[1,"mat-cell","polyu-visitor-table-column2"],[1,"mat-header-cell"],[1,"mat-cell"],[1,"mat-cell","polyu-visitor-table-column3"],[3,"netid","displayField"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h3",1),_s(2,"Visitor Information"),Eo(),Io(3,"table",2),Io(4,"tbody"),Io(5,"tr",3),Io(6,"th",4),_s(7,"Visitor ID"),Eo(),Io(8,"td",5),_s(9),Eo(),Eo(),Io(10,"tr",3),Io(11,"th",6),_s(12,"Surname"),Eo(),Io(13,"td",7),_s(14),Eo(),Eo(),Io(15,"tr",3),Io(16,"th",6),_s(17,"Given Name"),Eo(),Io(18,"td",7),_s(19),Eo(),Eo(),Io(20,"tr",3),Io(21,"th",6),_s(22,"Chinese Name"),Eo(),Io(23,"td",7),_s(24),Eo(),Eo(),Io(25,"tr",3),Io(26,"th",6),_s(27,"Visitor's Email Address"),Eo(),Io(28,"td",7),_s(29),Eo(),Eo(),Io(30,"tr",3),Io(31,"th",6),_s(32,"Visitor Status"),Eo(),Io(33,"td",7),_s(34),Eo(),Eo(),Eo(),Eo(),Oo(35,"app-divider"),Io(36,"h3",1),_s(37,"Supporting Information for the Visitor"),Eo(),Io(38,"table",2),Io(39,"tbody"),Io(40,"tr",3),Io(41,"th",4),_s(42,"Business Case for Gaining Access"),Eo(),Io(43,"td",5),_s(44),Eo(),Eo(),Io(45,"tr",3),Io(46,"th",6),_s(47,"Location to be accessed"),Eo(),Io(48,"td",8),_s(49),Eo(),Eo(),Io(50,"tr",3),Io(51,"th",6),_s(52,"Access Department"),Eo(),Io(53,"td",7),_s(54),Eo(),Eo(),Io(55,"tr",3),Io(56,"th",6),_s(57,"Access Start Date"),Oo(58,"br"),_s(59,"(dd-mm-yyyy)"),Eo(),Io(60,"td",7),_s(61),Nl(62,"date"),Eo(),Eo(),Io(63,"tr",3),Io(64,"th",6),_s(65,"Access End Date"),Oo(66,"br"),_s(67,"(dd-mm-yyyy)"),Eo(),Io(68,"td",7),_s(69),Nl(70,"date"),Eo(),Eo(),Io(71,"tr",3),Io(72,"th",6),_s(73,"Access Media"),Eo(),Io(74,"td",7),_s(75),Eo(),Eo(),Io(76,"tr",3),Io(77,"th",6),_s(78,"Sponsor"),Eo(),Io(79,"td",7),Oo(80,"app-people",9),Eo(),Eo(),Io(81,"tr",3),Io(82,"th",6),_s(83,"SponsorDepartment"),Eo(),Io(84,"td",7),_s(85),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(9),gs(t.data.visitor.userId),ma(5),gs(t.data.visitor.surname),ma(5),gs(t.data.visitor.givenName),ma(5),gs(t.data.visitor.chineseName),ma(5),gs(t.data.visitor.personalEmail),ma(5),vs(" ",t.statusLabel," "),ma(10),gs(t.data.visitor.businessCase),ma(5),gs(t.data.visitor.accessLocation),ma(5),gs(t.data.visitor.accessDepartment),ma(7),gs(t.data.visitor.accessStartDate?jl(62,15,t.data.visitor.accessStartDate,"dd-MM-yyyy"):"N/A"),ma(8),gs(t.data.visitor.accessEndDate?jl(70,18,t.data.visitor.accessEndDate,"dd-MM-yyyy"):"N/A"),ma(6),vs(" ",t.accessMediaLabel," "),ma(5),Ao("netid",t.data.visitor.sponsor)("displayField","displayName"),ma(5),vs(" ",t.data.visitor.sponsorDepartment," "))},directives:[TH,iV],pipes:[oh],styles:[".polyu-visitor-table-column1[_ngcontent-%COMP%]{width:35%}.polyu-visitor-table-column2[_ngcontent-%COMP%]{width:65%;white-space:pre-wrap}.polyu-visitor-table-column3[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),kz),Dz=["reasonInput"];function Sz(e,t){if(1&e&&(Io(0,"mat-form-field",4),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",11),Oo(4,"mat-datepicker-toggle",12),Oo(5,"mat-datepicker",null,13),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessStartDate)("min",i.startDateMin)("max",i.startDateMax)("readonly",!0),ma(1),Ao("for",n)}}function Mz(e,t){if(1&e&&(Io(0,"mat-form-field",4),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessStartDate)("readonly",!0)}}function xz(e,t){if(1&e&&(Io(0,"mat-form-field",4),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",11),Oo(4,"mat-datepicker-toggle",12),Oo(5,"mat-datepicker",null,15),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessEndDate)("min",i.endDateMin)("max",i.endDateMax)("readonly",!0),ma(1),Ao("for",n)}}function Tz(e,t){if(1&e&&(Io(0,"mat-form-field",4),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",14),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessEndDate)("readonly",!0)}}var Az,Lz=((Az=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._cd=i,this._form=this._generateDataForm(this._formBuilder),this._request=new UD,this.approvalFlowChanged=new Gl,this.isReadonly={},this.isVisible={},this.showTitle=!0;var a=new Date;a.setFullYear(a.getFullYear()+1),this.startDateMin=null,this.startDateMax=a,this.endDateMin=null,this.endDateMax=a}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=this;this._form.get("accessStartDate").valueChanges.subscribe({next:function(e){t.endDateMin=new Date(t._form.get("accessStartDate").value),t.endDateMax=new Date(t.endDateMin),t.endDateMax.setFullYear(t.endDateMax.getFullYear()+1),t._form.controls.accessEndDate.markAsTouched()}}),this._form.get("accessEndDate").valueChanges.subscribe({next:function(t){e._form.controls.accessStartDate.markAsTouched()}})}},{key:"setTitleVisible",value:function(e){this.showTitle=e}},{key:"resetRenewRequest",value:function(e){this._request=JSON.parse(JSON.stringify(e)),this._form.setValue({accessStartDate:e.accessStartDate?dd(e.accessStartDate,"yyyy-MM-dd","en-HK"):"",accessEndDate:e.accessEndDate?dd(e.accessEndDate,"yyyy-MM-dd","en-HK"):"",reason:e.reason?e.reason:null,cardRecordId:e.cardRecordId?e.cardRecordId:""}),this.reasonInputElement.nativeElement.focus()}},{key:"setEditable",value:function(e){this.isReadonly=0===e?{accessStartDate:!0,accessEndDate:!0,reason:!0,cardRecordId:!0}:{accessStartDate:!1,accessEndDate:!1,reason:!1,cardRecordId:!1}}},{key:"validateForm",value:function(){var e=this;return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(t){return console.log("RequestInput.form.statuschanges: "+JSON.stringify(t)+" / "+JSON.stringify(e._form.valid))})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){var e=this._form.get("accessStartDate").value,t=this._form.get("accessEndDate").value;return{accessStartDate:new Date(dd(e,"yyyy-MM-dd","en-HK")),accessEndDate:new Date(dd(t,"yyyy-MM-dd","en-HK")),reason:this._form.get("reason").value,cardRecordId:this._form.get("cardRecordId").value,workflowConfig:null}}},{key:"_generateDataForm",value:function(e){return e.group({accessStartDate:["",N_.required],accessEndDate:["",N_.required],reason:["",N_.required],cardRecordId:["",N_.required]})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||Az)(Mo(_S),Mo(tv),Mo(jr))},Az.\u0275cmp=gt({type:Az,selectors:[["app-renew-input"]],viewQuery:function(e,t){var n;1&e&&rc(Dz,!0),2&e&&ac(n=dc())&&(t.reasonInputElement=n.first)},outputs:{approvalFlowChanged:"approvalFlowChanged"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:21,vars:7,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12"],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","required","",3,"formControl","readonly"],["autosize","cdkTextareaAutosize","reasonInput",""],[1,"polyu-grid-cell-6"],[3,"ngIf","ngIfElse"],["accessStartDateRO",""],["accessEndDateRO",""],["matInput","","required","",3,"matDatepicker","formControl","min","max","readonly"],["matSuffix","",3,"for"],["picker1",""],["matInput","",3,"formControl","readonly"],["picker2",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Renew"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Reason"),Eo(),Oo(8,"textarea",5,6),Eo(),Eo(),Io(11,"div",7),Io(12,"div"),Do(13,Sz,7,6,"ng-template",8),Do(14,Mz,4,2,"ng-template",null,9,mc),Eo(),Eo(),Io(16,"div",7),Io(17,"div"),Do(18,xz,7,6,"ng-template",8),Do(19,Tz,4,2,"ng-template",null,10,mc),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(15),i=So(20);Ao("formGroup",t.form),ma(8),Ao("formControl",t.form.controls.reason)("readonly",t.isReadonly.reason),ma(5),Ao("ngIf",!t.isReadonly.accessStartDate)("ngIfElse",n),ma(5),Ao("ngIf",!t.isReadonly.accessEndDate)("ngIfElse",i)}},directives:[jg,Y_,Qg,SI,gI,RE,TE,M_,Jg,P_,Wg,Ed,YO,qO,kI,EO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}.popover[_ngcontent-%COMP%]{top:auto;left:auto;background-color:#fff;border:1px solid #ddd;pointer-events:none;position:absolute;transition:all .5s ease 0s}"]}),Az),Iz=["dataVisitor"],Ez=["dataCard"],Oz=["requestInput"],Rz=["requestHandler"];function Pz(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var Yz,Fz,qz,Vz,Hz=((Vz=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._snackBar=i,this._dialog=a,this.error="",this.pageState="visible",this.isLoading=!1,this.dataId=0,this.role=null,this.isCardVisible=!1,this.isMobileVisible=!1,this.isTerminateVisible=!1,this.isRenewVisitorEnable=!1,this.isGuidelinesVisible=!0}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setGuidelinesVisible",value:function(e){this.isGuidelinesVisible=e}},{key:"resetData",value:function(e,t){var n=this;if(null===e)return this.error="Request not found, or request is not in requester stage.",this.pageState="error",this.isLoading=!1,this.isCardVisible=!1,this.isMobileVisible=!1,void(this.isTerminateVisible=!1);this.isLoading=!0,this._applicationService.getData(e).pipe(Qv((function(){return n.isLoading=!1}))).subscribe({next:function(i){n._dataVisitor.resetData(i),n._dataCard.resetData(i,t),n.dataId=e,n.role=t,n.isCardVisible=i.visitor.cardFlag,n.isMobileVisible=i.visitor.mobileFlag,n.isTerminateVisible="fmoadmin"===t&&!i.visitor.suspendFlag&&i.visitor.active,n.pageState="visible"},error:function(e){n.error=e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Data not found.",n.pageState="error"}})}},{key:"openGuidelineRequest",value:function(){this._dialog.open(MB,{minHeight:"80%",minWidth:"80%"})}},{key:"openGuidelineManagement",value:function(){this._dialog.open(xB,{minHeight:"80%",minWidth:"80%"})}},{key:"openTerminateVisitor",value:function(){var e=this;this._dialog.open(ez,{minHeight:"80%",minWidth:"80%",data:this.dataId}).afterClosed().subscribe((function(){e.resetData(e.dataId,e.role)}))}},{key:"renewCard",value:function(e){this._router.navigate(["/ma/request/renew",this.dataId],{state:{card:e}})}}]),e}()).\u0275fac=function(e){return new(e||Vz)(Mo(_S),Mo(mb),Mo(EY),Mo(Bx))},Vz.\u0275cmp=gt({type:Vz,selectors:[["app-data"]],viewQuery:function(e,t){var n;1&e&&(rc(Iz,!0),rc(Ez,!0),oc(Oz,!0),oc(Rz,!0)),2&e&&(ac(n=dc())&&(t._dataVisitor=n.first),ac(n=dc())&&(t._dataCard=n.first),ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestHandler=n.first))},decls:28,vars:5,consts:[[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","grid-column-start"],["href","https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement","target","_blank"],["dataVisitor",""],[3,"onRowClickedEvent"],["dataCard",""],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Do(2,Pz,2,0,"app-overlay",2),Io(3,"div",3),_s(4),Eo(),Io(5,"h3",4),_s(6,"Guidelines"),Eo(),Io(7,"div",5),Io(8,"div",6),Io(9,"p"),_s(10," Please read the Guidance Notes on Request for Activation of Departmental Smart Card (for Users other than Staff and Students) before completing this form. The Guidance Notes can be downloaded from FMO website at ("),Io(11,"a",7),_s(12,"https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement"),Eo(),_s(13,"). "),Eo(),Io(14,"p"),_s(15," Please send the completed form and the blank smart cards to Administration and Ancillary Services Section (P005, Main Campus), of Facilities Management Office (FMO) for processing. For inquiry, please contact FMO Help Desk at ext. 7777. "),Eo(),Eo(),Eo(),Oo(16,"app-divider"),Oo(17,"app-data-visitor",null,8),Io(19,"div",3),Oo(20,"app-divider"),Io(21,"app-data-card",9,10),Ho("onRowClickedEvent",(function(e){return t.renewCard(e)})),Eo(),Eo(),Io(23,"div",3),Oo(24,"app-divider"),Io(25,"div",11),Io(26,"button",12),Ho("click",(function(){return t.openTerminateVisitor()})),_s(27,"Terminate User"),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","error"!==t.pageState),ma(1),vs(" ",t.error," "),ma(15),Ao("hidden",!t.isCardVisible),ma(4),Ao("hidden",!t.isTerminateVisible))},directives:[Ed,TH,Cz,wz,bS,tV,nV],styles:[""]}),Vz),Nz=((qz=function(){function e(){_classCallCheck(this,e),this.message=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setErrorMessage",value:function(e){this.message=e}}]),e}()).\u0275fac=function(e){return new(e||qz)},qz.\u0275cmp=gt({type:qz,selectors:[["app-error-message"]],decls:4,vars:1,consts:[[1,"polyu-error-dialog-container"],[1,"polyu-unordered-list"],[1,"polyu-error-text"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"ul",1),Io(2,"li",2),_s(3),Eo(),Eo(),Eo()),2&e&&(ma(3),gs(t.message))},styles:[".polyu-error-text[_ngcontent-%COMP%]{color:red}.polyu-unordered-list[_ngcontent-%COMP%]{list-style-type:disc}"]}),qz),Bz=((Fz=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case 0:return"Create Visitor";case 1:case 2:case 3:return"Update Status";case 4:return"Renew Card";case 5:case 6:case 7:return"Update Status";case 8:return"Revoke Card";case 9:return"Reissue Card";case 10:return"Reissue Mobile ID"}return"N/A"}}]),e}()).\u0275fac=function(e){return new(e||Fz)},Fz.\u0275pipe=Dt({name:"historyTypePipe",type:Fz,pure:!0}),Fz),jz=((Yz=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case 0:return"";case 1:return"Approve";case 2:return"Completed";case 3:return"Rejected";case 4:return"";case 5:return"Approve";case 6:return"Complete";case 7:return"Reject";case 8:case 9:case 10:return""}return"N/A"}}]),e}()).\u0275fac=function(e){return new(e||Yz)},Yz.\u0275pipe=Dt({name:"historyTypeDetailsPipe",type:Yz,pure:!0}),Yz),zz=["errorComponent"];function Uz(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,12),Eo())}function Wz(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function Gz(e,t){1&e&&(Io(0,"th",13),_s(1," Action "),Eo())}function Qz(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"historyTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.eventType)," ")}}function Kz(e,t){1&e&&(Io(0,"th",13),_s(1," Details "),Eo())}function $z(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"historyTypeDetailsPipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.eventType)," ")}}function Jz(e,t){1&e&&(Io(0,"th",13),_s(1," Description "),Eo())}function Xz(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.description," ")}}function Zz(e,t){1&e&&(Io(0,"th",13),_s(1," Date "),Eo())}function eU(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.createdAt,"dd-MM-yyyy","en-HK")," ")}}function tU(e,t){1&e&&Oo(0,"tr",15)}function nU(e,t){1&e&&Oo(0,"tr",16)}var iU,aU,rU,oU=((rU=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["eventType","eventDetails","description","createdAt"],this.showDetails=new Gl,this.onDataLoaded=new Gl,this.reissue=new Gl,this.size=10}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setSize",value:function(e){this.size=e}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onReissueBtnClicked",value:function(e,t){this.reissue.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||rU)(Mo(jr))},rU.\u0275cmp=gt({type:rU,selectors:[["app-history-list"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(zz,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",reissue:"reissue",onDataLoaded:"onDataLoaded"},decls:21,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","eventType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","eventDetails"],["matColumnDef","description"],["matColumnDef","createdAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,Uz,3,0,"div",0),Io(1,"div"),Do(2,Wz,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,Gz,2,0,"th",4),Do(8,Qz,3,3,"td",5),Po(),Ro(9,6),Do(10,Kz,2,0,"th",4),Do(11,$z,3,3,"td",5),Po(),Ro(12,7),Do(13,Jz,2,0,"th",4),Do(14,Xz,2,1,"td",5),Po(),Ro(15,8),Do(16,Zz,2,0,"th",4),Do(17,eU,3,5,"td",5),Po(),Do(18,tU,1,0,"tr",9),Do(19,nU,1,0,"tr",10),Eo(),Io(20,"mat-paginator",11),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",t.size))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,TF,LF],pipes:[ih,Bz,jz,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.mat-cell[_ngcontent-%COMP%]{padding:5px 0 5px 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}"]}),rU),sU=((aU=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case"N":return"New";case"R":return"Renew"}return e}}]),e}()).\u0275fac=function(e){return new(e||aU)},aU.\u0275pipe=Dt({name:"requestTypePipe",type:aU,pure:!0}),aU),lU=((iU=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case"requester":return"Requester";case"sponsor":return"Sponsor";case"cancelled":return"Cancelled";case"approval1":return"Approver 1";case"approval2":return"Approver 2";case"approval3":return"Approver 3";case"approval4":return"Approver 4";case"fmohd":return"FMOHD";case"fmocss":return"FMOCSS";case"fmotdp":return"FMOTDP";case"completed":return"Completed";case"rejected":return"Rejected"}return e}}]),e}()).\u0275fac=function(e){return new(e||iU)},iU.\u0275pipe=Dt({name:"requestStagePipe",type:iU,pure:!0}),iU),cU=["errorComponent"];function uU(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,17),Eo())}function dU(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function hU(e,t){1&e&&(Io(0,"th",18),_s(1," Request ID "),Eo())}function fU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function pU(e,t){1&e&&(Io(0,"th",18),_s(1," Request Type "),Eo())}function mU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"requestTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.requestType)," ")}}function _U(e,t){1&e&&(Io(0,"th",18),_s(1," Requestor "),Eo())}function gU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.requester," ")}}function vU(e,t){1&e&&(Io(0,"th",18),_s(1," Stage "),Eo())}function yU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"requestStagePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.stage)," ")}}function kU(e,t){1&e&&(Io(0,"th",18),_s(1," Access Start "),Eo())}function bU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.requestInput.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function wU(e,t){1&e&&(Io(0,"th",18),_s(1," Access Start "),Eo())}function CU(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.requestInput.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function DU(e,t){1&e&&Oo(0,"th",18)}function SU(e,t){if(1&e&&(Io(0,"td",19),Io(1,"button",20),Io(2,"mat-icon"),_s(3),Eo(),Eo(),Eo()),2&e){var n=t.$implicit,i=Uo();ma(3),vs(" ",n==i.selectedRow?"keyboard_arrow_up":"keyboard_arrow_down"," ")}}function MU(e,t){if(1&e&&(Io(0,"tr",26),Io(1,"th",27),_s(2,"Renew Reason"),Eo(),Io(3,"td",28),_s(4),Eo(),Eo()),2&e){var n=Uo().$implicit;ma(4),gs(n.requestInput.reason)}}function xU(e,t){if(1&e&&(Io(0,"tr",26),Io(1,"th",27),_s(2,"Reject Reason"),Eo(),Io(3,"td",28),_s(4),Eo(),Eo()),2&e){var n=Uo().$implicit;ma(4),gs(n.requestInput.rejectReason)}}var TU=function(e){return["request",e]};function AU(e,t){if(1&e&&(Io(0,"td",19),Io(1,"div",21),Io(2,"div",22),Io(3,"div",23),Io(4,"table",24),Io(5,"tbody"),Do(6,MU,5,1,"ng-template",25),Do(7,xU,5,1,"ng-template",25),Io(8,"tr",26),Io(9,"th",27),_s(10,"Business Justification"),Eo(),Io(11,"td",28),_s(12),Eo(),Eo(),Io(13,"tr",26),Io(14,"th",27),_s(15,"Sponsor"),Eo(),Io(16,"td",28),_s(17),Eo(),Eo(),Io(18,"tr",26),Io(19,"th",27),_s(20,"Sponsor Department"),Eo(),Io(21,"td",28),_s(22),Eo(),Eo(),Io(23,"tr",26),Io(24,"th",27),_s(25,"Requester"),Eo(),Io(26,"td",28),_s(27),Eo(),Eo(),Io(28,"tr",26),Io(29,"th",27),_s(30,"Access Department"),Eo(),Io(31,"td",28),_s(32),Eo(),Eo(),Io(33,"tr",26),Io(34,"th",27),_s(35,"Access Location"),Eo(),Io(36,"td",28),_s(37),Eo(),Eo(),Io(38,"tr",26),Io(39,"th",27),_s(40,"Original Request"),Eo(),Io(41,"td",28),Io(42,"a",29),_s(43,"Show in new window"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=t.$implicit,i=Uo();wo("colspan",i.displayedColumns.length),ma(1),Ao("@detailExpand",n==i.selectedRow?"expanded":"collapsed"),ma(5),Ao("ngIf","R"===n.requestType),ma(1),Ao("ngIf",n.rejectReason),ma(5),gs(n.requestInput.businessCase),ma(5),gs(n.requestInput.sponsor),ma(5),gs(n.requestInput.sponsorDepartment),ma(5),gs(n.requestInput.requester),ma(5),gs(n.requestInput.accessDepartment),ma(5),gs(n.requestInput.accessLocation),ma(5),Ao("routerLink",Rl(11,TU,n.requestId))}}function LU(e,t){1&e&&Oo(0,"tr",30)}function IU(e,t){if(1&e){var n=Fo();Io(0,"tr",31),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().setSelection(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}function EU(e,t){1&e&&Oo(0,"tr",32)}var OU,RU,PU=function(){return["expandedDetail"]},YU=((OU=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["requestId","requestType","stage","accessStart","accessEnd","details"],this.showDetails=new Gl,this.onDataLoaded=new Gl,this.reissue=new Gl,this.size=10}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setSize",value:function(e){this.size=e}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=this.selectedRow===e?null:e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onReissueBtnClicked",value:function(e,t){this.reissue.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||OU)(Mo(jr))},OU.\u0275cmp=gt({type:OU,selectors:[["app-request-search-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(cU,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",reissue:"reissue",onDataLoaded:"onDataLoaded"},decls:33,vars:11,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","requestType"],["matColumnDef","requestor"],["matColumnDef","stage"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","details"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-icon-button",""],[1,"request-details"],[1,"mat-row","details-container"],[1,"table-container"],[1,"mat-table"],[3,"ngIf"],[1,"mat-header-column"],[1,"mat-header-cell"],[1,"mat-cell"],["target","_blank",3,"routerLink"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"],["mat-row","",1,"detail-row"]],template:function(e,t){1&e&&(Do(0,uU,3,0,"div",0),Io(1,"div"),Do(2,dU,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,hU,2,0,"th",4),Do(8,fU,2,1,"td",5),Po(),Ro(9,6),Do(10,pU,2,0,"th",4),Do(11,mU,3,3,"td",5),Po(),Ro(12,7),Do(13,_U,2,0,"th",4),Do(14,gU,2,1,"td",5),Po(),Ro(15,8),Do(16,vU,2,0,"th",4),Do(17,yU,3,3,"td",5),Po(),Ro(18,9),Do(19,kU,2,0,"th",4),Do(20,bU,3,5,"td",5),Po(),Ro(21,10),Do(22,wU,2,0,"th",4),Do(23,CU,3,5,"td",5),Po(),Ro(24,11),Do(25,DU,1,0,"th",4),Do(26,SU,4,1,"td",5),Po(),Ro(27,12),Do(28,AU,44,13,"td",5),Po(),Do(29,LU,1,0,"tr",13),Do(30,IU,1,2,"tr",14),Do(31,EU,1,0,"tr",15),Eo(),Io(32,"mat-paginator",16),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,8,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(24),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("matRowDefColumns",Ol(10,PU)),ma(1),Ao("hidePageSize",!0)("pageSize",t.size))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,pT,gb,TF,LF],pipes:[ih,sU,lU,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.request-details[_ngcontent-%COMP%]{overflow:hidden;display:flex}tr.detail-row[_ngcontent-%COMP%]{height:0}.mat-column-expandedDetail[_ngcontent-%COMP%]{padding:0!important;border-bottom-width:0}.details-container[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid rgba(0,0,0,.12)}.details-container[_ngcontent-%COMP%]   .mat-cell[_ngcontent-%COMP%], .details-container[_ngcontent-%COMP%]   .mat-header-cell[_ngcontent-%COMP%]{border-bottom-width:0;width:50%}"],data:{animation:[Nf("detailExpand",[Wf("collapsed",Uf({height:"0px",minHeight:"0"})),Wf("expanded",Uf({height:"*"})),Qf("expanded <=> collapsed",Bf("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),OU),FU=["dataView"],qU=["requestList"],VU=["historyList"],HU=((RU=function(){function e(t,n,i,a){_classCallCheck(this,e),this._dialogRef=t,this._applicationService=n,this._cd=i,this._router=a,this._role=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataComponent.setGuidelinesVisible(!1),this._historyDataSource=new Qj(this._applicationService,this._cd),this._historyListcomponent.setDataStore(this._historyDataSource),this._historyListcomponent.setSize(5),this._requestDataSource=new Kj(this._applicationService,this._cd),this._requestSearchComponent.setDataStore(this._requestDataSource),this._requestSearchComponent.setSize(5)}},{key:"setVisitor",value:function(e){this._dataComponent.resetData(e,this._role),this._historyQuery=new nS,this._historyQuery.offset=0,this._historyQuery.row=5,this._historyQuery.dataId=e,this._historyListcomponent.setQueryCriteria(this._historyQuery),this._historyListcomponent.refresh(),this._requestQuery=new iS,this._requestQuery.offset=0,this._requestQuery.row=5,this._requestQuery.dataId=e,this._requestSearchComponent.setQueryCriteria(this._requestQuery),this._requestSearchComponent.refresh()}},{key:"showRequestDetails",value:function(e){e&&this._router.navigate(["/request",e.requestId])}},{key:"closeModal",value:function(){this._dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||RU)(Mo(Fx),Mo(_S),Mo(jr),Mo(mb))},RU.\u0275cmp=gt({type:RU,selectors:[["app-renew-visitor-modal"]],viewQuery:function(e,t){var n;1&e&&(rc(FU,!0),rc(qU,!0),rc(VU,!0)),2&e&&(ac(n=dc())&&(t._dataComponent=n.first),ac(n=dc())&&(t._requestSearchComponent=n.first),ac(n=dc())&&(t._historyListcomponent=n.first))},decls:20,vars:0,consts:[[1,"popup-action-bar"],["mat-icon-button","","type","button","onclick","this.blur()","tabindex","-1",3,"click"],[1,"polyu-page-headline"],[1,"modal-body"],["label","Visitor"],[1,"tab-container"],["dataView",""],["label","Requests"],[3,"showDetails"],["requestList",""],["label","Log"],["historyList",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"button",1),Ho("click",(function(){return t.closeModal()})),Io(2,"mat-icon"),_s(3,"close"),Eo(),Eo(),Eo(),Io(4,"h3",2),_s(5,"Details"),Eo(),Io(6,"div",3),Io(7,"mat-tab-group"),Io(8,"mat-tab",4),Io(9,"div",5),Oo(10,"app-data",null,6),Eo(),Eo(),Io(12,"mat-tab",7),Io(13,"div",5),Io(14,"app-request-search-table",8,9),Ho("showDetails",(function(e){return t.showRequestDetails(e)})),Eo(),Eo(),Eo(),Io(16,"mat-tab",10),Io(17,"div",5),Oo(18,"app-history-list",null,11),Eo(),Eo(),Eo(),Eo())},directives:[bS,pT,Eq,wq,Hz,YU,oU],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.popup-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.tab-container[_ngcontent-%COMP%]{overflow-y:auto!important;height:70vh;padding:0 10px}[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,94.1%,.5)}"]}),RU),NU=["requestInput"],BU=["requestActions"];function jU(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var zU,UU=((zU=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._location=a,this.actionDone=new Gl,this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!1,this.isEditable=!0,this.isLoading=!1,this.showActions=!0}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setShowAction",value:function(e){this.showActions=e}},{key:"setTitleVisible",value:function(e){this._requestInput.setShowTitle(e)}},{key:"onApprovalFlowChanged",value:function(e){this._request&&(this._request.requestInput=JSON.parse(JSON.stringify(e)))}},{key:"setEditable",value:function(e){this.isEditable=e}},{key:"resetRequest",value:function(e){var t=this;if(null===e)return this.showActionDone("error_outline","Request not found or you are not authorized to access the request"),void(this.isLoading=!1);this.isLoading=!0;var n=m_({request:this._applicationService.getRequest(e),actions:this.isEditable?this._applicationService.listRequestAction(e):mu([])}),i=this;n.pipe(Qv((function(){return t.isLoading=!1}))).subscribe({next:function(e){var n=e.request,a=e.actions;t._request=n,i._requestInput.resetRequest(n,a),i._requestActions.resetRequest(n,a),i._requestInput.setEditable(0),i.pageState="visible",i.actionDoneIcon="",i.actionDoneMessage=""},error:function(e){i.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Request not found or you are not authorized to access the request")}})}},{key:"onApprove",value:function(e){var t=this;if(this._requestInput.validateHandler()){var n;this._request.workflowConfig=JSON.parse(JSON.stringify(this._requestInput.evalHandler())),this.isLoading=!0,n="fmohd"===this._request.stage||"fmocss"===this._request.stage?"confirmed checked":"fmotdp"===this._request.stage?"processed":"approved";var i=this;this._applicationService.processRequest(this._request.requestId,this._request.stage,"approve",this._request.requestInputFmotdp,this._request.workflowConfig).pipe(Qv((function(){t.isLoading=!1}))).subscribe({next:function(e){t.showActionDone("done","Request ID "+t._request.requestId+" "+n)},error:function(e){i.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Unable to approver request.")}})}else this._snackBar.open("Some input fields are incorrect. Please fix them and approve again.",null,{duration:2e3})}},{key:"onReject",value:function(){this.showActionDone("error_outline","Request ID "+this._request.requestId+" rejected")}},{key:"showActionDone",value:function(e,t){this.pageState="actionDone",this.actionDoneIcon=e,this.actionDoneMessage=t,this.actionDone.emit()}},{key:"back",value:function(){this._location.back()}},{key:"openHistoryModal",value:function(e){var t=this;if(this._request&&this._request.dataId){var n=new Mx;n.disableClose=!1,n.id="visitor-modal-component",n.width=Math.floor(.8*window.screen.width)+"px";var i=this._dialog.open(HU,n);i.afterOpened().subscribe((function(){i.componentInstance.setVisitor(t._request.dataId)}))}}}]),e}()).\u0275fac=function(e){return new(e||zU)(Mo(_S),Mo(EY),Mo(Bx),Mo(ju))},zU.\u0275cmp=gt({type:zU,selectors:[["app-renew-display"]],viewQuery:function(e,t){var n;1&e&&(rc(NU,!0),rc(BU,!0)),2&e&&(ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestActions=n.first))},outputs:{actionDone:"actionDone"},decls:13,vars:7,consts:[[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[3,"icon","title"],[3,"approvalFlowChanged"],["requestInput",""],[3,"approved","rejected"],["requestActions",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Do(2,jU,2,0,"app-overlay",2),Io(3,"div",3),Io(4,"app-alert-box",4),_s(5),Eo(),Eo(),Io(6,"div",3),Io(7,"app-renew-input-display",5,6),Ho("approvalFlowChanged",(function(e){return t.onApprovalFlowChanged(e)})),Eo(),Oo(9,"app-divider"),Io(10,"div",3),Io(11,"app-renew-actions",7,8),Ho("approved",(function(e){return t.onApprove(e)}))("rejected",(function(){return t.onReject()})),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","actionDone"!==t.pageState),ma(1),Ao("icon",t.actionDoneIcon)("title",""),ma(1),gs(t.actionDoneMessage),ma(1),Ao("hidden","visible"!==t.pageState),ma(4),Ao("hidden",!t.showActions))},directives:[Ed,EB,Vj,TH,Wj,tV,nV],styles:[""]}),zU),WU=["pendingRequestList"],GU=["fullRequestList"],QU=["request"];function KU(e,t){1&e&&(Io(0,"div",0),Oo(1,"app-divider"),Eo())}function $U(e,t){}var JU,XU,ZU=((JU=function(){function e(t,n){_classCallCheck(this,e),this._componentFactoryResolver=t,this._location=n}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"showRequest",value:function(e,t){var n=this;if(this.isRequestVisible=!1,"pending"===t?this._fullRequestList.unselectRow():"full"===t&&this._pendingRequestList.unselectRow(),this.isRequestVisible=!0,"N"===e.requestType){var i=this._componentFactoryResolver.resolveComponentFactory(BB),a=this._request.viewContainerRef;a&&a.clear();var r=a.createComponent(i);r.instance.resetRequest(e.requestId),r.instance.actionDone.subscribe({next:function(){n._fullRequestList.refresh(),n._pendingRequestList.refresh()}})}else if("R"===e.requestType){var o=this._componentFactoryResolver.resolveComponentFactory(UU),s=this._request.viewContainerRef;s&&s.clear();var l=s.createComponent(o);l.instance.resetRequest(e.requestId),l.instance.actionDone.subscribe({next:function(){n._fullRequestList.refresh(),n._pendingRequestList.refresh()}})}}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||JU)(Mo(Bs),Mo(ju))},JU.\u0275cmp=gt({type:JU,selectors:[["app-ma-request-page"]],viewQuery:function(e,t){var n;1&e&&(rc(WU,!0),rc(GU,!0),rc(QU,!0,zq)),2&e&&(ac(n=dc())&&(t._pendingRequestList=n.first),ac(n=dc())&&(t._fullRequestList=n.first),ac(n=dc())&&(t._request=n.first))},decls:16,vars:3,consts:[[1,"polyu-block"],[3,"role","selected"],["pendingRequestList",""],["fullRequestList",""],[3,"ngIf"],["appCompHost",""],["request",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h2"),_s(2,"Request cases pending for your action"),Eo(),Io(3,"app-request-list",1,2),Ho("selected",(function(e){return t.showRequest(e,"pending")})),Eo(),Eo(),Io(5,"div",0),Io(6,"h2"),_s(7,"Request cases pending others' actions / completed"),Eo(),Io(8,"app-request-list",1,3),Ho("selected",(function(e){return t.showRequest(e,"full")})),Eo(),Eo(),Do(10,KU,2,0,"ng-template",4),Do(11,$U,0,0,"ng-template",5,6,mc),Io(13,"div",7),Io(14,"button",8),Ho("click",(function(){return t.back()})),_s(15,"Back"),Eo(),Eo()),2&e&&(ma(3),Ao("role","handler"),ma(5),Ao("role","participant"),ma(2),Ao("ngIf",t.isRequestVisible))},directives:[xV,Ed,zq,bS,TH],styles:[""]}),JU),eW=["request"],tW=((XU=function(){function e(t){_classCallCheck(this,e),this._location=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._request.resetRequest(0)}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||XU)(Mo(ju))},XU.\u0275cmp=gt({type:XU,selectors:[["app-ma-request-create-page"]],viewQuery:function(e,t){var n;1&e&&rc(eW,!0),2&e&&ac(n=dc())&&(t._request=n.first)},decls:5,vars:0,consts:[["request",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Oo(0,"app-request",null,0),Io(2,"div",1),Io(3,"button",2),Ho("click",(function(){return t.back()})),_s(4,"Back"),Eo(),Eo())},directives:[BB,bS],styles:[".polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.polyu-radio-button[_ngcontent-%COMP%]{margin:5px}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}"]}),XU),nW=["requestKycComponent"];function iW(e,t){if(1&e&&(Io(0,"mat-option",26),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function aW(e,t){if(1&e&&(Io(0,"mat-select",24),Do(1,iW,2,2,"mat-option",25),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function rW(e,t){1&e&&Oo(0,"input",27),2&e&&Ao("readonly",Uo().isReadonly.sponsorDepartment)}function oW(e,t){if(1&e&&(Io(0,"mat-option",26),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function sW(e,t){if(1&e&&(Io(0,"mat-select",28),Do(1,oW,2,2,"mat-option",25),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function lW(e,t){if(1&e&&Oo(0,"input",29),2&e){var n=Uo();Ao("formControl",n.form.controls.accessDepartment)("readonly",n.isReadonly.accessDepartment)}}function cW(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",30),Oo(4,"mat-datepicker-toggle",31),Oo(5,"mat-datepicker",null,32),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessStartDate)("min",i.startDateMin)("max",i.startDateMax)("readonly",!0),ma(1),Ao("for",n)}}function uW(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access Start Date"),Eo(),Oo(3,"input",33),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessStartDate)("readonly",!0)}}function dW(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",30),Oo(4,"mat-datepicker-toggle",31),Oo(5,"mat-datepicker",null,34),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessEndDate)("min",i.endDateMin)("max",i.endDateMax)("readonly",!0),ma(1),Ao("for",n)}}function hW(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Access End Date"),Eo(),Oo(3,"input",33),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.accessEndDate)("readonly",!0)}}function fW(e,t){if(1&e&&(Io(0,"mat-form-field",7),Io(1,"mat-label"),_s(2,"Account Code for Charging"),Eo(),Oo(3,"input",29),Eo()),2&e){var n=Uo();ma(3),Ao("formControl",n.form.controls.chargingAccountCode)("readonly",n.isReadonly.chargingAccountCode)}}function pW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Consent file must be an image (PNG, JPG, GIF, TIF), a PDF file, a word document, or a compressed file (ZIP, RAR, 7Z) "),Eo())}function mW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Filename must not exceed 50 characters "),Eo())}var _W,gW=((_W=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._form=this._generateDataForm(this._formBuilder),this._request=new uS,this.approvalFlowChanged=new Gl,this.departmentList=[],this.isReadonly={},this.isVisible={};var i=new Date;i.setFullYear(i.getFullYear()+1),this.startDateMin=null,this.startDateMax=i,this.endDateMin=null,this.endDateMax=i}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.departmentList=this._applicationService.departments,K(this._form.get("requester").valueChanges,this._form.get("sponsor").valueChanges).pipe(Xb(300),NS()).subscribe((function(t){e.approvalFlowChanged.emit(e.evalInput())})),this._form.get("accessStartDate").valueChanges.subscribe({next:function(t){e.endDateMin=new Date(t)}}),this.resetRequest(this._request)}},{key:"resetRequest",value:function(e){this._request=JSON.parse(JSON.stringify(e)),this._form.setValue({businessCase:e.requestInput.businessCase?e.requestInput.businessCase:"",accessDepartment:e.requestInput.accessDepartment?e.requestInput.accessDepartment.split(","):"",accessLocation:e.requestInput.accessLocation?e.requestInput.accessLocation:"",accessStartDate:e.requestInput.accessStartDate?dd(e.requestInput.accessStartDate,"yyyy-MM-dd","en-HK"):"",accessEndDate:e.requestInput.accessEndDate?dd(e.requestInput.accessEndDate,"yyyy-MM-dd","en-HK"):"",cardType:"card",requester:e.requestInput.requester?e.requestInput.requester:"",requesterEmail:e.requestInput.requesterEmail?e.requestInput.requesterEmail:"",sponsor:e.requestInput.sponsor?e.requestInput.sponsor:"",sponsorEmail:e.requestInput.sponsorEmail?e.requestInput.sponsorEmail:"",sponsorDepartment:e.requestInput.sponsor?e.requestInput.sponsorDepartment:"",chargingAccountCode:e.requestInput.chargingAccountCode?e.requestInput.chargingAccountCode:"",supportingDocument:{attachmentId:e.requestInput.supportingDocument}}),this._updateUi()}},{key:"validateForm",value:function(){var e=this;return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(t){return console.log("RequestInput.form.statuschanges: "+JSON.stringify(t)+" / "+JSON.stringify(e._form.valid))})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){return{surname:null,givenName:null,chineseName:null,personalEmail:null,phone:null,hkid:null,passport:null,mainlandId:null,businessCase:this._form.get("businessCase").value,accessDepartment:String(this._form.get("accessDepartment").value),accessLocation:this._form.get("accessLocation").value,accessStartDate:this._form.get("accessStartDate").value,accessEndDate:this._form.get("accessEndDate").value,cardType:this._form.get("cardType").value,requester:this._form.get("requester").value,requesterEmail:this._form.get("requesterEmail").value,sponsor:this._form.get("sponsor").value,sponsorEmail:this._form.get("sponsorEmail").value,sponsorDepartment:this._form.get("sponsorDepartment").value,chargingAccountCode:""!==this._form.get("chargingAccountCode").value?this._form.get("chargingAccountCode").value:null,supportingDocument:this._form.get("supportingDocument").value.attachmentId,consentDocument:null,reason:null}}},{key:"getSupportingDocument",value:function(){return this._form.get("supportingDocument").value.localFile}},{key:"_updateUi",value:function(){this.isReadonly=this._request&&"requester"===this._request.stage&&this._request.requestInput.requester===this._applicationService.currentUser.netid?{businessCase:!1,accessDepartment:!1,accessLocation:!1,accessStartDate:!1,accessEndDate:!1,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!1,sponsorEmail:!0,sponsorDepartment:!1,chargingAccountCode:!1,supportingDocument:!1}:{mainlandId:!0,businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!0,requester:!0,requesterEmail:!0,sponsor:!0,sponsorEmail:!0,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0},this.isVisible={businessCase:!0,accessDepartment:!0,accessLocation:!0,accessStartDate:!0,accessEndDate:!0,cardType:!1,requester:!0,requesterEmail:!1,sponsor:!0,sponsorEmail:!1,sponsorDepartment:!0,chargingAccountCode:!1,supportingDocument:!0}}},{key:"_generateDataForm",value:function(e){var t=e.group({businessCase:["",N_.required],accessDepartment:[[],N_.required],accessLocation:["",N_.required],accessStartDate:["",N_.required],accessEndDate:["",N_.required],cardType:["card",N_.required],requester:[this._applicationService.currentUser.netid],requesterEmail:[this._applicationService.currentUser.email],sponsor:["",N_.required],sponsorEmail:["",N_.required],sponsorDepartment:["",N_.required],chargingAccountCode:[""],supportingDocument:[new VV,[EV(["png","jpg","jpeg","gif","tif","tiff","doc","docx","pdf","zip","rar","7z"]),OV(50)]]});return t.statusChanges.subscribe({next:function(e){return console.log("DEBUG: RequestInputComponent: form.statusChanges: "+JSON.stringify(e))}}),t}},{key:"onSponPickedUp",value:function(e){e?this._form.get("sponsorEmail").setValue(e.email):this._form.get("sponsorEmail").setValue("")}},{key:"dummyAsyncValidatorFn",value:function(){return function(e){return mu({custom:!0}).pipe(xI(2e3),Uv((function(){return console.log("DEBUG: CustomAsyncValidator")})))}}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||_W)(Mo(_S),Mo(tv))},_W.\u0275cmp=gt({type:_W,selectors:[["app-request-email-input"]],viewQuery:function(e,t){var n;1&e&&rc(nW,!0),2&e&&ac(n=dc())&&(t._requestKycComponent=n.first)},outputs:{approvalFlowChanged:"approvalFlowChanged"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:67,vars:28,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-4","grid-column-start"],[3,"label"],[3,"netid","displayField"],[1,"polyu-grid-cell-4"],["appearance","standard"],["placeholder","Sponsor NetID",3,"formControl","readonly","required","displayField","onDataSelectedEvent"],["ppSponsor",""],["matSuffix",""],[3,"ngIf","ngIfElse"],["sponsorDepartmentRO",""],[1,"polyu-grid-cell-12"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","cdkAutosizeMaxRows","5","required","",3,"formControl","readonly"],["autosize","cdkTextareaAutosize"],["accessDepartmentRO",""],[1,"polyu-grid-cell-6"],["accessStartDateRO",""],["accessEndDateRO",""],[3,"ngIf"],["placeholder","Supporting Document",3,"formControl","readonly","required"],["supportingDocument",""],[4,"ngIf"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","required","",3,"readonly"],["multiple","",3,"formControl"],["matInput","","required","",3,"formControl","readonly"],["matInput","","required","",3,"matDatepicker","formControl","min","max","readonly"],["matSuffix","",3,"for"],["picker1",""],["matInput","",3,"formControl","readonly"],["picker2",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Requester and Sponsor Information"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"app-form-field",4),Oo(6,"app-people",5),Eo(),Eo(),Io(7,"div",6),Io(8,"mat-form-field",7),Io(9,"mat-label"),_s(10,"Sponsor"),Eo(),Io(11,"app-people-picker2",8,9),Ho("onDataSelectedEvent",(function(e){return t.onSponPickedUp(e)})),Eo(),Io(13,"mat-icon",10),_s(14),Eo(),Eo(),Eo(),Io(15,"div",6),Io(16,"mat-form-field",7),Io(17,"mat-label"),_s(18,"Sponsor Department"),Eo(),Do(19,aW,2,2,"ng-template",11),Do(20,rW,1,1,"ng-template",null,12,mc),Eo(),Eo(),Eo(),Oo(22,"app-divider"),Io(23,"h3",1),_s(24,"Supporting Information for the Request"),Eo(),Io(25,"div",2),Io(26,"div",13),Io(27,"mat-form-field",7),Io(28,"mat-label"),_s(29,"Business Justification for Granting Access"),Eo(),Oo(30,"textarea",14,15),Eo(),Eo(),Io(32,"div",13),Io(33,"mat-form-field",7),Io(34,"mat-label"),_s(35,"Departments to be accessed"),Eo(),Do(36,sW,2,2,"ng-template",11),Do(37,lW,1,2,"ng-template",null,16,mc),Eo(),Eo(),Io(39,"div",13),Io(40,"mat-form-field",7),Io(41,"mat-label"),_s(42,"Location to be accessed"),Eo(),Oo(43,"textarea",14,15),Eo(),Eo(),Io(45,"div",17),Io(46,"div"),Do(47,cW,7,6,"ng-template",11),Do(48,uW,4,2,"ng-template",null,18,mc),Eo(),Eo(),Io(50,"div",17),Io(51,"div"),Do(52,dW,7,6,"ng-template",11),Do(53,hW,4,2,"ng-template",null,19,mc),Eo(),Eo(),Io(55,"div",17),Do(56,fW,4,2,"ng-template",20),Eo(),Io(57,"div",13),Io(58,"mat-form-field",7),Io(59,"mat-label"),_s(60,"Supporting Document"),Eo(),Oo(61,"app-file-upload2",21,22),Io(63,"mat-icon",10),_s(64),Eo(),Do(65,pW,2,0,"mat-error",23),Do(66,mW,2,0,"mat-error",23),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(12),i=So(21),a=So(38),r=So(49),o=So(54),s=So(62);Ao("formGroup",t.form),ma(5),Ao("label","Requester"),ma(1),Ao("netid",t.form.controls.requester.value)("displayField","displayName"),ma(5),Ao("formControl",t.form.controls.sponsor)("readonly",t.isReadonly.sponsor)("required",!0)("displayField","displayName"),ma(3),gs(t.isReadonly.sponsor?"":n.value?"clear":"search"),ma(5),Ao("ngIf",!t.isReadonly.sponsorDepartment)("ngIfElse",i),ma(11),Ao("formControl",t.form.controls.businessCase)("readonly",t.isReadonly.businessCase),ma(6),Ao("ngIf",!t.isReadonly.accessDepartment)("ngIfElse",a),ma(7),Ao("formControl",t.form.controls.accessLocation)("readonly",t.isReadonly.accessLocation),ma(4),Ao("ngIf",!t.isReadonly.accessStartDate)("ngIfElse",r),ma(5),Ao("ngIf",!t.isReadonly.accessEndDate)("ngIfElse",o),ma(4),Ao("ngIf",t.isVisible.chargingAccountCode),ma(5),Ao("formControl",t.form.controls.supportingDocument)("readonly",t.isReadonly.supportingDocument)("required",!1),ma(3),gs(t.isReadonly.supportingDocument?"":s.value.fileName?"clear":"search"),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filetype")),ma(1),Ao("ngIf",t.form.controls.supportingDocument.hasError("filename"))}},directives:[jg,Y_,Qg,gH,iV,SI,gI,xH,P_,Wg,Jg,pT,kI,Ed,TH,RE,TE,M_,LH,lP,Ld,CD,YO,qO,EO,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),_W);function vW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid email address. "),Eo())}var yW,kW=((yW=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._changeDetectorRef=i,this._dialog=a,this._request=new uS,this._generateForm(),this.sendEmail=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"resetRequest",value:function(e){this._request=JSON.parse(JSON.stringify(e)),this._redrawUi()}},{key:"currentUser",value:function(){return this._applicationService.currentUser}},{key:"_redrawUi",value:function(){}},{key:"_generateForm",value:function(){this._form=this._formBuilder.group({personalEmail:["",[N_.required,N_.email]]})}},{key:"getEmail",value:function(){return this._form.get("personalEmail").value}},{key:"onSendEmail",value:function(){this.sendEmail.emit(this.getEmail())}},{key:"form",get:function(){return this._form}},{key:"request",get:function(){return this._request}}]),e}()).\u0275fac=function(e){return new(e||yW)(Mo(_S),Mo(tv),Mo(jr),Mo(Bx))},yW.\u0275cmp=gt({type:yW,selectors:[["app-request-email-action"]],outputs:{sendEmail:"sendEmail"},decls:13,vars:3,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],["appearance","standard"],["matInput","","type","email","required","",3,"formControl"],[4,"ngIf"],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Send an Invitation"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Visitor's Email Address"),Eo(),Oo(8,"input",5),Do(9,vW,2,0,"mat-error",6),Eo(),Eo(),Eo(),Io(10,"div",7),Io(11,"button",8),Ho("click",(function(){return t.sendEmail.emit(t.form.get("personalEmail").value)})),_s(12,"Send Email"),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(8),Ao("formControl",t.form.controls.personalEmail),ma(1),Ao("ngIf",t.form.controls.personalEmail.hasError("required")||t.form.controls.personalEmail.hasError("email")))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,bS,aI],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}"]}),yW),bW=["requestInput"],wW=["requestHandler"],CW=["requestActions"];function DW(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var SW,MW,xW,TW=((SW=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this.actionDone=new Gl,this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!1,this.showComments=!1,this.showFmotdp=!1,this.showPics=!1,this.showActions=!1,this.showVisitor=!1,this.invitation=new WD}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"onApprovalFlowChanged",value:function(e){this._request&&(this._request.requestInput=JSON.parse(JSON.stringify(e)),this._requestHandler.updateRequesterSponsorCardType(e.requester,e.sponsor,e.cardType))}},{key:"onHandlerChanged",value:function(e){this._request&&(this._request.workflowConfig=JSON.parse(JSON.stringify(e)))}},{key:"resetRequest",value:function(e){var t=this;if(null===e)return this.showActionDone("error_outline","Request not found or you are not authorized to access the request"),void(this.isLoading=!1);this.isLoading=!0,m_({request:this._applicationService.getRequest(e),actions:this._applicationService.listRequestAction(e)}).pipe(Qv((function(){return t.isLoading=!1}))).subscribe({next:function(e){var n=e.request,i=e.actions;t._request=n,t._requestInput.resetRequest(n),t._requestHandler.resetRequest(n,i),t._requestActions.resetRequest(n),t.showComments="requester"!==n.stage,t.showFmotdp="fmotdp"===n.stage,t.showPics="requester"===n.stage,t.showActions=i.length>0,t.showVisitor="completed"===n.stage,t.pageState="visible",t.actionDoneIcon="",t.actionDoneMessage=""},error:function(e){t.showActionDone("error_outline","Request not found or you are not authorized to access the request")}})}},{key:"onSendEmail",value:function(){var e=this,t=m_({input:this._requestInput.validateForm(),handler:mu(this._requestHandler.validateForm())}).pipe(V((function(e){var t=e.input,n=e.handler;return t&&n}))),n=t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})})));this.invitation.email=this._requestActions.getEmail(),this._request.requestInput.personalEmail=this.invitation.email;var i=t.pipe(gu((function(e){return e})),Uv((function(){e._request.requestInput=JSON.parse(JSON.stringify(e._requestInput.evalInput())),e._request.workflowConfig=JSON.parse(JSON.stringify(e._requestHandler.evalHandler()))})),Pv((function(){return e._applicationService.saveEmailRequest(0,e.invitation,e._request.requestInput,e._requestInput.getSupportingDocument(),e._request.workflowConfig)})),Uv((function(t){e.showActionDone("done","Request ID "+t.requestId+" submitted")})));this.isLoading=!0,K(n,i).pipe(Qv((function(){return e.isLoading=!1}))).subscribe(),console.log("done")}},{key:"openGuidelineRequest",value:function(){this._dialog.open(MB,{minHeight:"80%",minWidth:"80%"})}},{key:"openGuidelineManagement",value:function(){this._dialog.open(xB,{minHeight:"80%",minWidth:"80%"})}},{key:"showActionDone",value:function(e,t){this.pageState="actionDone",this.actionDoneIcon=e,this.actionDoneMessage=t,this.actionDone.emit()}}]),e}()).\u0275fac=function(e){return new(e||SW)(Mo(_S),Mo(EY),Mo(Bx))},SW.\u0275cmp=gt({type:SW,selectors:[["app-request-email"]],viewQuery:function(e,t){var n;1&e&&(rc(bW,!0),rc(wW,!0),rc(CW,!0)),2&e&&(ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestHandler=n.first),ac(n=dc())&&(t._requestActions=n.first))},outputs:{actionDone:"actionDone"},decls:29,vars:6,consts:[[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[3,"icon","title"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","grid-column-start"],["href","https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement","target","_blank"],[3,"approvalFlowChanged"],["requestInput",""],[3,"changed"],["requestHandler",""],[3,"sendEmail"],["requestActions",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Do(2,DW,2,0,"app-overlay",2),Io(3,"div",3),Io(4,"app-alert-box",4),_s(5),Eo(),Eo(),Io(6,"div",3),Io(7,"h3",5),_s(8,"Guidelines"),Eo(),Io(9,"div",6),Io(10,"div",7),Io(11,"p"),_s(12," Please read the Guidance Notes on Request for Activation of Departmental Smart Card (for Users other than Staff and Students) before completing this form. The Guidance Notes can be downloaded from FMO website at ("),Io(13,"a",8),_s(14,"https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement"),Eo(),_s(15,"). "),Eo(),Io(16,"p"),_s(17," Please send the completed form and the blank smart cards to Administration and Ancillary Services Section (P005, Main Campus), of Facilities Management Office (FMO) for processing. For inquiry, please contact FMO Help Desk at ext. 7777. "),Eo(),Eo(),Eo(),Oo(18,"app-divider"),Io(19,"app-request-email-input",9,10),Ho("approvalFlowChanged",(function(e){return t.onApprovalFlowChanged(e)})),Eo(),Oo(21,"app-divider"),Io(22,"app-request-handler",11,12),Ho("changed",(function(e){return t.onHandlerChanged(e)})),Eo(),Oo(24,"app-divider"),Io(25,"div"),Io(26,"app-request-email-action",13,14),Ho("sendEmail",(function(){return t.onSendEmail()})),Eo(),Oo(28,"app-divider"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","actionDone"!==t.pageState),ma(1),Ao("icon",t.actionDoneIcon)("title",""),ma(1),gs(t.actionDoneMessage),ma(1),Ao("hidden","visible"!==t.pageState))},directives:[Ed,EB,TH,gW,DB,kW,tV,nV],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),SW),AW=["request"],LW=((MW=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){this._request.resetRequest(0)}}]),e}()).\u0275fac=function(e){return new(e||MW)},MW.\u0275cmp=gt({type:MW,selectors:[["app-ma-request-email-page"]],viewQuery:function(e,t){var n;1&e&&rc(AW,!0),2&e&&ac(n=dc())&&(t._request=n.first)},decls:2,vars:0,consts:[["request",""]],template:function(e,t){1&e&&Oo(0,"app-request-email",null,0)},directives:[TW],styles:[".polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.polyu-radio-button[_ngcontent-%COMP%]{margin:5px}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}"]}),MW),IW=function(e){return{"polyu-highlight-warn":e}},EW=((xW=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._dialog=i,this._generateForm(),this.submitted=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateForm",value:function(){this._form=this._formBuilder.group({declareCorrect:["",N_.requiredTrue],privatePoliState:["",N_.requiredTrue]})}},{key:"validateForm",value:function(){var e=this;return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(t){return console.log("RequestInput.form.statuschanges: "+JSON.stringify(t)+" / "+JSON.stringify(e._form.valid))})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||xW)(Mo(_S),Mo(tv),Mo(Bx))},xW.\u0275cmp=gt({type:xW,selectors:[["app-registration-action"]],outputs:{submitted:"submitted"},decls:18,vars:11,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-12","polyu-grid-start"],[3,"required","formControl"],[3,"ngClass"],[1,"polyu-grid-cell-12","grid-column-start"],["href","assets/doc/Privacy Policy Statement for Visitor Access Registration.docx","download","","target","_blank"],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-checkbox",3),_s(4,"\xa0"),Eo(),Io(5,"span",4),_s(6,'By clicking "Submit", I confirm that the details of the personal information provided above have been verified and are correct.'),Eo(),Eo(),Io(7,"div",5),Io(8,"mat-checkbox",3),_s(9,"\xa0"),Eo(),Io(10,"span",4),_s(11,"I accepted the "),Io(12,"a",6),_s(13,"Privacy Policy Statement for Visitor Access Registration"),Eo(),_s(14," on the use of my personal information in accordance with the PICS."),Eo(),Eo(),Eo(),Io(15,"div",7),Io(16,"button",8),Ho("click",(function(){return t.submitted.emit()})),_s(17,"Submit"),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(3),Ao("required",!0)("formControl",t.form.get("declareCorrect")),ma(2),Ao("ngClass",Rl(7,IW,!t.form.get("declareCorrect").valid)),ma(3),Ao("required",!0)("formControl",t.form.get("privatePoliState")),ma(2),Ao("ngClass",Rl(9,IW,!t.form.get("privatePoliState").valid)))},directives:[jg,Y_,Qg,gE,yE,Jg,P_,Wg,Td,bS],styles:["mat-form-field[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}"]}),xW);function OW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid email address. "),Eo())}function RW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid HKID No. "),Eo())}function PW(e,t){if(1&e&&(Io(0,"div",6),Io(1,"mat-form-field",4),Io(2,"mat-label"),_s(3,"HKID No."),Eo(),Oo(4,"input",19),Do(5,RW,2,0,"mat-error",10),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.hkid),ma(1),Ao("ngIf",n.form.controls.hkid.hasError("required")||n.form.controls.hkid.hasError("hkid"))}}function YW(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid Passport No. "),Eo())}function FW(e,t){if(1&e&&(Io(0,"div",6),Io(1,"mat-form-field",4),Io(2,"mat-label"),_s(3,"Passport No."),Eo(),Oo(4,"input",19),Do(5,YW,2,0,"mat-error",10),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.passport),ma(1),Ao("ngIf",n.form.controls.passport.hasError("required")||n.form.controls.passport.hasError("pattern"))}}var qW,VW=((qW=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this._formBuilder=n,this._applicationService=i}return _createClass(e,[{key:"ngOnInit",value:function(){this._form=this._generateDataForm(this._formBuilder),this._updateUIFlag()}},{key:"_updateUIFlag",value:function(){this.isVisible={hkid:"hkid"===this._form.get("idtype").value,passport:"passport"===this._form.get("idtype").value}}},{key:"_generateDataForm",value:function(e){var t=this,n=e.group({surname:["",N_.required],givenName:["",N_.required],chineseName:[""],personalEmail:["",[N_.required,N_.email]],phone:[""],idtype:["na",N_.required],hkid:[""],passport:[""],mainlandId:[""]});return n.get("idtype").valueChanges.subscribe({next:function(e){"hkid"===e?(n.get("hkid").setValidators([N_.required,IV]),n.get("passport").setValidators([]),n.get("hkid").markAllAsTouched(),n.get("hkid").updateValueAndValidity(),n.get("passport").markAllAsTouched(),n.get("passport").updateValueAndValidity()):"passport"===e?(n.get("hkid").setValidators([]),n.get("passport").setValidators([N_.required]),n.get("hkid").markAllAsTouched(),n.get("hkid").updateValueAndValidity(),n.get("passport").markAllAsTouched(),n.get("passport").updateValueAndValidity()):"na"===e&&(n.get("hkid").clearValidators(),n.get("hkid").reset(),n.get("passport").clearValidators(),n.get("passport").reset(),n.get("hkid").markAllAsTouched(),n.get("hkid").updateValueAndValidity(),n.get("passport").markAllAsTouched(),n.get("passport").updateValueAndValidity()),t._updateUIFlag()}}),n}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"setValue",value:function(e){this._form.setValue({surname:e.surname?e.surname:"",givenName:e.givenName?e.givenName:"",chineseName:e.chineseName?e.chineseName:"",personalEmail:e.personalEmail?e.personalEmail:"",phone:e.phone?e.phone:"",idtype:"na",hkid:"",passport:"",mainlandId:""})}},{key:"evalInput",value:function(){return{surname:this._form.get("surname").value,givenName:this._form.get("givenName").value,chineseName:this._form.get("chineseName").value,personalEmail:this._form.get("personalEmail").value,phone:this._form.get("phone").value,hkid:"hkid"===this._form.get("idtype").value?this._form.get("hkid").value:null,passport:"passport"===this._form.get("idtype").value?this._form.get("passport").value:null,mainlandId:null,businessCase:null,accessDepartment:null,accessLocation:null,accessStartDate:null,accessEndDate:null,cardType:null,requester:null,requesterEmail:null,sponsor:null,sponsorEmail:null,sponsorDepartment:null,chargingAccountCode:null,supportingDocument:null,consentDocument:null,reason:null}}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||qW)(Mo(rk),Mo(tv),Mo(_S))},qW.\u0275cmp=gt({type:qW,selectors:[["app-registration-input"]],decls:41,vars:11,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-4","grid-column-start"],["appearance","standard"],["matInput","","required","",3,"formControl"],[1,"polyu-grid-cell-4"],["matInput","","requried","",3,"formControl"],[1,"polyu-grid-cell-6","grid-column-start"],["matInput","","type","email","required","",3,"formControl"],[4,"ngIf"],[1,"polyu-grid-cell-6"],["matInput","",3,"formControl"],[3,"label"],[1,"polyu-radio-group",3,"formControl"],["value","na",1,"polyu-radio-button"],["value","hkid",1,"polyu-radio-button"],["value","passport",1,"polyu-radio-button"],[3,"ngIf"],["matInput","","type","password",3,"formControl"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Visitor Information"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Surname"),Eo(),Oo(8,"input",5),Eo(),Eo(),Io(9,"div",6),Io(10,"mat-form-field",4),Io(11,"mat-label"),_s(12,"Given Name"),Eo(),Oo(13,"input",5),Eo(),Eo(),Io(14,"div",6),Io(15,"mat-form-field",4),Io(16,"mat-label"),_s(17,"Chinese Name"),Eo(),Oo(18,"input",7),Eo(),Eo(),Io(19,"div",8),Io(20,"mat-form-field",4),Io(21,"mat-label"),_s(22,"Email Address"),Eo(),Oo(23,"input",9),Do(24,OW,2,0,"mat-error",10),Eo(),Eo(),Io(25,"div",11),Io(26,"mat-form-field",4),Io(27,"mat-label"),_s(28,"Phone Number"),Eo(),Oo(29,"input",12),Eo(),Eo(),Io(30,"div",6),Io(31,"app-form-field",13),Io(32,"mat-radio-group",14),Io(33,"mat-radio-button",15),_s(34,"N/A "),Eo(),Io(35,"mat-radio-button",16),_s(36,"HK ID. "),Eo(),Io(37,"mat-radio-button",17),_s(38,"Passport "),Eo(),Eo(),Eo(),Eo(),Do(39,PW,6,2,"ng-template",18),Do(40,FW,6,2,"ng-template",18),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(8),Ao("formControl",t.form.controls.surname),ma(5),Ao("formControl",t.form.controls.givenName),ma(5),Ao("formControl",t.form.controls.chineseName),ma(5),Ao("formControl",t.form.controls.personalEmail),ma(1),Ao("ngIf",t.form.controls.personalEmail.hasError("required")||t.form.controls.personalEmail.hasError("email")),ma(5),Ao("formControl",t.form.controls.phone),ma(2),Ao("label","ID Type"),ma(1),Ao("formControl",t.form.controls.idtype),ma(7),Ao("ngIf",t.isVisible.hkid),ma(1),Ao("ngIf",t.isVisible.passport))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,gH,uY,hY,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.polyu-radio-group-title[_ngcontent-%COMP%]{margin-right:5px}.polyu-radio-button[_ngcontent-%COMP%]{margin:auto 15px auto 0}.polyu-alert-danger[_ngcontent-%COMP%]{color:#f44336}.polyu-alert-success[_ngcontent-%COMP%]{color:#36f456}.polyu-alert[_ngcontent-%COMP%]{margin:15px 0;vertical-align:center}.polyu-hint[_ngcontent-%COMP%]:hover{cursor:pointer}.polyu-input-grid-content[_ngcontent-%COMP%]{min-height:4em}.polyu-kyc-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-content:flex-end;align-items:center;height:100%}.polyu-kyc-cell[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),qW),HW=["requestInput"],NW=["requestActions"];function BW(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function jW(e,t){if(1&e&&(Io(0,"div"),Io(1,"app-alert-box",6),_s(2),Eo(),Eo()),2&e){var n=Uo();ma(1),Ao("icon",n.actionDoneIcon)("title",""),ma(1),gs(n.actionDoneMessage)}}var zW,UW,WW=((UW=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this._snackBar=n,this._applicationService=i,this.isLoading=!0,this.showInput=!1,this.showResult=!1,this.actionDoneMessage="",this.actionDoneIcon="done"}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.route.queryParams.subscribe((function(t){return e.refreshInvitation(t.token)}))}},{key:"refreshInvitation",value:function(e){var t=this;this.isLoading=!0,this.showInput=!1,this._applicationService.getInvitation(e).subscribe({next:function(e){e.data?(t._invitation=e.data,t.isLoading=!1,t.showInput=!0,t._invitation.input.personalEmail=t._invitation.email,t._requestInput.setValue(t._invitation.input)):(t._invitation=null,t.isLoading=!1,t.showActionResult("error","Invalid Registration URL"))},error:function(e){t._invitation=null,t.isLoading=!1,t.showInput=!1}})}},{key:"onSubmit",value:function(){var e=this,t=m_({input:this._requestInput.validateForm(),decoration:this._requestAction.validateForm()}).pipe(V((function(e){var t=e.input,n=e.decoration;return t&&n})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(){e.isLoading=!0;var t=e._requestInput.evalInput();e._invitation.input.surname=t.surname,e._invitation.input.givenName=t.givenName,e._invitation.input.chineseName=t.chineseName,e._invitation.input.personalEmail=t.personalEmail,e._invitation.input.phone=t.phone,e._invitation.input.hkid=t.hkid,e._invitation.input.passport=t.passport,e._invitation.input.mainlandId=t.mainlandId})),Pv((function(){return e._applicationService.acceptInvitation(e._invitation.invitationId,e._invitation.input)})),Uv((function(t){t.success?e.showActionResult("done","Request submitted"):e.showActionResult("error","Request submission is failed")})))).pipe(Qv((function(){return e.isLoading=!1}))).subscribe()}},{key:"showActionResult",value:function(e,t){this.actionDoneIcon=e,this.actionDoneMessage=t,this.showInput=!1,this.showResult=!0}}]),e}()).\u0275fac=function(e){return new(e||UW)(Mo(rk),Mo(EY),Mo(_S))},UW.\u0275cmp=gt({type:UW,selectors:[["app-registration"]],viewQuery:function(e,t){var n;1&e&&(rc(HW,!0),rc(NW,!0)),2&e&&(ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestAction=n.first))},decls:8,vars:3,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],["requestInput",""],[3,"submitted"],["requestActions",""],[3,"icon","title"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,BW,2,0,"app-overlay",1),Io(2,"div",2),Oo(3,"app-registration-input",null,3),Io(5,"app-registration-action",4,5),Ho("submitted",(function(){return t.onSubmit()})),Eo(),Eo(),Do(7,jW,3,3,"div",1),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(1),Ao("hidden",!t.showInput),ma(5),Ao("ngIf",t.showResult))},directives:[Ed,VW,EW,tV,nV,EB],styles:[""]}),UW),GW=((zW=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"onSubmit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||zW)},zW.\u0275cmp=gt({type:zW,selectors:[["app-registration-page"]],decls:1,vars:0,template:function(e,t){1&e&&Oo(0,"app-registration")},directives:[WW],styles:[""]}),zW);function QW(e,t){1&e&&(Io(0,"th",19),_s(1," ID "),Eo())}function KW(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function $W(e,t){1&e&&(Io(0,"th",19),_s(1," Sponsor "),Eo())}function JW(e,t){if(1&e&&(Io(0,"td",20),Oo(1,"app-people",21),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.sponsor)("displayField","displayName")}}function XW(e,t){1&e&&(Io(0,"th",19),_s(1," Visitor Name "),Eo())}function ZW(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function eG(e,t){1&e&&(Io(0,"th",19),_s(1,"Departments"),Oo(2,"br"),_s(3," to be accessed "),Eo())}function tG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function nG(e,t){1&e&&(Io(0,"th",19),_s(1," Start "),Eo())}function iG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStartDate," ")}}function aG(e,t){1&e&&(Io(0,"th",19),_s(1," End "),Eo())}function rG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEndDate," ")}}function oG(e,t){1&e&&(Io(0,"th",19),_s(1," Access Media "),Eo())}function sG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessMedia," ")}}function lG(e,t){1&e&&(Io(0,"th",19),_s(1," Type "),Eo())}function cG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestType," ")}}function uG(e,t){1&e&&(Io(0,"th",19),_s(1," Request Status "),Eo())}function dG(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.stage," ")}}function hG(e,t){1&e&&Oo(0,"tr",22)}function fG(e,t){if(1&e){var n=Fo();Io(0,"tr",23),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var pG,mG,_G,gG=function(){return[5,10,20]},vG=((pG=function(){function e(t,n){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this.selected=new Gl,this.displayedColumns=["requestId","name","sponsor","accessDepartment","accessStartDate","accessEndDate","accessMedia","type","stage"],this.dataSource=new OF([]),this.fcFilterString=new Fg("")}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,t){if(!t)return!0;var n=t.toLowerCase().replace(/[^a-z]/,"");if(!n)return!0;if(String(e.requestId).toLowerCase().indexOf(t.toLowerCase())>=0)return!0;if(e.name.toLowerCase().replace(/[^a-z]/,"").indexOf(n)>=0)return!0;var i,a=_createForOfIteratorHelper(e.accessDepartment.split(","));try{for(a.s();!(i=a.n()).done;)if(i.value.toLowerCase().replace(/[^a-z]/,"")===n)return!0}catch(r){a.e(r)}finally{a.f()}return!1},this.fcFilterString.valueChanges.subscribe({next:function(t){return e.dataSource.filter=t}}),this.dataSource.filter=this.fcFilterString.value,this.selectedRow=null}},{key:"addAll",value:function(e){var t=e.map((function(e){return{requestId:e.requestId,name:e.name,sponsor:e.sponsor,accessDepartment:e.accessDepartment,accessStartDate:dd(e.accessStartDate,"yyyy-MM-dd","en-HK"),accessEndDate:dd(e.accessEndDate,"yyyy-MM-dd","en-HK"),accessMedia:Uq(e.cardType),requestType:$q(e.requestType),stage:Qq(e.stage),data:e}}));this.dataSource.data=t}},{key:"clear",value:function(){this.dataSource.data=[]}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e.data)}},{key:"unselectRow",value:function(){this.selectedRow=null}}]),e}()).\u0275fac=function(e){return new(e||pG)(Mo(_S),Mo(tv))},pG.\u0275cmp=gt({type:pG,selectors:[["app-request-history-table"]],viewQuery:function(e,t){var n;1&e&&(rc(eF,!0),rc(YP,!0)),2&e&&(ac(n=dc())&&(t.sort=n.first),ac(n=dc())&&(t.paginator=n.first))},inputs:{role:"role"},outputs:{selected:"selected"},decls:38,vars:6,consts:[[1,"polyu-list-search-bar"],[1,"polyu-list-search-bar-group"],["matInput","","placeholder","Filter",3,"formControl"],[1,"mat-elevation-z8"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sponsor"],["matColumnDef","name"],["matColumnDef","accessDepartment"],["matColumnDef","accessStartDate"],["matColumnDef","accessEndDate"],["matColumnDef","accessMedia"],["matColumnDef","type"],["matColumnDef","stage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"netid","displayField"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Io(2,"div"),_s(3,"Search"),Eo(),Io(4,"div"),Oo(5,"input",2),Eo(),Eo(),Eo(),Io(6,"div",3),Io(7,"table",4),Ro(8,5),Do(9,QW,2,0,"th",6),Do(10,KW,2,1,"td",7),Po(),Ro(11,8),Do(12,$W,2,0,"th",6),Do(13,JW,2,2,"td",7),Po(),Ro(14,9),Do(15,XW,2,0,"th",6),Do(16,ZW,2,1,"td",7),Po(),Ro(17,10),Do(18,eG,4,0,"th",6),Do(19,tG,2,1,"td",7),Po(),Ro(20,11),Do(21,nG,2,0,"th",6),Do(22,iG,2,1,"td",7),Po(),Ro(23,12),Do(24,aG,2,0,"th",6),Do(25,rG,2,1,"td",7),Po(),Ro(26,13),Do(27,oG,2,0,"th",6),Do(28,sG,2,1,"td",7),Po(),Ro(29,14),Do(30,lG,2,0,"th",6),Do(31,cG,2,1,"td",7),Po(),Ro(32,15),Do(33,uG,2,0,"th",6),Do(34,dG,2,1,"td",7),Po(),Do(35,hG,1,0,"tr",16),Do(36,fG,1,2,"tr",17),Eo(),Oo(37,"mat-paginator",18),Eo()),2&e&&(ma(5),Ao("formControl",t.fcFilterString),ma(2),Ao("dataSource",t.dataSource),ma(28),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("pageSizeOptions",Ol(5,gG)))},directives:[RE,M_,P_,Wg,pF,eF,kF,vF,_F,DF,MF,YP,wF,sF,CF,iV,TF,LF],styles:["table[_ngcontent-%COMP%]{width:100%}.polyu-list-search-bar[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between}.polyu-list-search-bar-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.polyu-list-search-bar-group[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:10px 5px}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}tr.polyu-expandable-row[_ngcontent-%COMP%]{height:0}.polyu-expandable-cell-container[_ngcontent-%COMP%]{overflow:hidden;display:flex}.polyu-expandable-cell-content[_ngcontent-%COMP%]{padding:16px}"]}),pG),yG=["requestHistory"],kG=["requestInput"],bG=["requestInputFmotdp"],wG=["requestComments"],CG=["requestHandler"],DG=((_G=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._activatedRoute=n,this._location=i,this.isLoading=!1,this._dataId=null,this.showComments=!1,this.showFmotdp=!1,this.actionVisible=!1,this.actionDoneMessage=null,this.actionDoneIcon=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataId=Number(this._activatedRoute.snapshot.paramMap.get("dataId")),this._requestInput.setShowKyc(!1),this.loadRequests()}},{key:"loadRequests",value:function(){var e=this;this.isLoading=!0,this._applicationService.listRequestHistory(this._dataId).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e._requestHistoryTableComponent.clear(),e._requestHistoryTableComponent.addAll(t)},error:function(t){e._requestHistoryTableComponent.clear(),e._requestHistoryTableComponent.addAll([])}})}},{key:"resetRequest",value:function(e){var t=this;this.isLoading=!0,m_({request:this._applicationService.getRequest(e),actions:this._applicationService.listRequestAction(e)}).pipe(Qv((function(){return t.isLoading=!1}))).subscribe({next:function(e){var n=e.request,i=e.actions;t.request=n,t._requestInput.resetRequest(n),t._requestInputFmotdp.resetRequest(n,i),t._requestComments.resetRequest(n,i),t._requestHandler.resetRequest(n,i),t.showComments="requester"!==n.stage,t.showFmotdp="fmotdp"===n.stage||"R"==n.requestType,t.actionVisible=!1},error:function(e){t.actionDoneIcon="error_outline",t.actionDoneMessage=e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Request not found or you are not authorized to access the request",t.actionVisible=!0}})}},{key:"onRequestSelected",value:function(e){this.resetRequest(e.requestId)}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||_G)(Mo(_S),Mo(rk),Mo(ju))},_G.\u0275cmp=gt({type:_G,selectors:[["app-request-history"]],viewQuery:function(e,t){var n;1&e&&(rc(yG,!0),rc(kG,!0),rc(bG,!0),rc(wG,!0),rc(CG,!0)),2&e&&(ac(n=dc())&&(t._requestHistoryTableComponent=n.first),ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestInputFmotdp=n.first),ac(n=dc())&&(t._requestComments=n.first),ac(n=dc())&&(t._requestHandler=n.first))},decls:21,vars:3,consts:[[3,"selected"],["requestHistory",""],[3,"hidden"],["requestInput",""],["requestInputFmotdp",""],["requestComments",""],["requestHandler",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"app-request-history-table",0,1),Ho("selected",(function(e){return t.onRequestSelected(e)})),Eo(),Io(2,"div",2),Oo(3,"app-divider"),Oo(4,"app-request-input",null,3),Oo(6,"app-divider"),Io(7,"div",2),Oo(8,"app-request-input-fmotdp",null,4),Oo(10,"app-divider"),Eo(),Io(11,"div",2),Oo(12,"app-request-comments",null,5),Oo(14,"app-divider"),Eo(),Oo(15,"app-request-handler",null,6),Oo(17,"app-divider"),Io(18,"div",7),Io(19,"button",8),Ho("click",(function(){return t.back()})),_s(20,"Back"),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("hidden",!0),ma(5),Ao("hidden",!t.showFmotdp),ma(4),Ao("hidden",!t.showComments))},directives:[vG,TH,cN,SB,SN,DB,bS],styles:[""]}),_G),SG=((mG=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||mG)},mG.\u0275cmp=gt({type:mG,selectors:[["app-ma-request-history-page"]],decls:1,vars:0,template:function(e,t){1&e&&Oo(0,"app-request-history")},directives:[DG],styles:[""]}),mG),MG=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchCards(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),xG=["errorComponent"];function TG(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,16),Eo())}function AG(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function LG(e,t){1&e&&(Io(0,"th",17),_s(1," Access ID "),Eo())}function IG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.libraryId," ")}}function EG(e,t){1&e&&(Io(0,"th",17),_s(1," Visitor "),Eo())}function OG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.surname+" "+n.visitor.givenName," ")}}function RG(e,t){1&e&&(Io(0,"th",17),_s(1," Access Start "),Eo())}function PG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.visitor.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function YG(e,t){1&e&&(Io(0,"th",17),_s(1," Access End "),Eo())}function FG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.visitor.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function qG(e,t){1&e&&(Io(0,"th",17),_s(1," Access Department "),Eo())}function VG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.accessDepartment," ")}}function HG(e,t){1&e&&(Io(0,"th",17),_s(1," Sponsor "),Eo())}function NG(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.sponsor," ")}}function BG(e,t){1&e&&Oo(0,"th",17)}function jG(e,t){if(1&e){var n=Fo();Io(0,"td",18),Io(1,"button",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),_s(2,"Details"),Eo(),Eo()}}function zG(e,t){1&e&&Oo(0,"th",17)}function UG(e,t){if(1&e){var n=Fo();Io(0,"td",18),Io(1,"button",20),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onRevokeBtnClicked(e,i)})),_s(2,"Revoke"),Eo(),Eo()}}function WG(e,t){1&e&&Oo(0,"tr",21)}function GG(e,t){1&e&&Oo(0,"tr",22)}var QG,KG=((QG=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["libraryId","visitor","accessStart","accessEnd","accessLocation","sponsor","details","revoke"],this.showDetails=new Gl,this.onDataLoaded=new Gl,this.revoke=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onRevokeBtnClicked",value:function(e,t){this.revoke.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||QG)(Mo(jr))},QG.\u0275cmp=gt({type:QG,selectors:[["app-revoke-card-list"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(xG,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",revoke:"revoke",onDataLoaded:"onDataLoaded"},decls:33,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","libraryId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","visitor"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","accessLocation"],["matColumnDef","sponsor"],["matColumnDef","details"],["matColumnDef","revoke"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-raised-button","","onclick","this.blur()",3,"click"],["onclick","this.blur()","mat-raised-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,TG,3,0,"div",0),Io(1,"div"),Do(2,AG,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,LG,2,0,"th",4),Do(8,IG,2,1,"td",5),Po(),Ro(9,6),Do(10,EG,2,0,"th",4),Do(11,OG,2,1,"td",5),Po(),Ro(12,7),Do(13,RG,2,0,"th",4),Do(14,PG,3,5,"td",5),Po(),Ro(15,8),Do(16,YG,2,0,"th",4),Do(17,FG,3,5,"td",5),Po(),Ro(18,9),Do(19,qG,2,0,"th",4),Do(20,VG,2,1,"td",5),Po(),Ro(21,10),Do(22,HG,2,0,"th",4),Do(23,NG,2,1,"td",5),Po(),Ro(24,11),Do(25,BG,1,0,"th",4),Do(26,jG,3,0,"td",5),Po(),Ro(27,12),Do(28,zG,1,0,"th",4),Do(29,UG,3,0,"td",5),Po(),Do(30,WG,1,0,"tr",13),Do(31,GG,1,0,"tr",14),Eo(),Io(32,"mat-paginator",15),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(25),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-libraryId[_ngcontent-%COMP%]{padding:20px 10px 10px 30px!important}.mat-column-accessEnd[_ngcontent-%COMP%], .mat-column-accessLocation[_ngcontent-%COMP%], .mat-column-accessStart[_ngcontent-%COMP%], .mat-column-sponsor[_ngcontent-%COMP%], .mat-column-visitor[_ngcontent-%COMP%]{padding:20px 10px!important}.mat-column-details[_ngcontent-%COMP%], .mat-column-renew[_ngcontent-%COMP%], .mat-column-revoke[_ngcontent-%COMP%]{padding:5px 0!important}.mat-column-reissue[_ngcontent-%COMP%]{padding:5px 30px 5px 5px!important}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),QG),$G=["keywordInput"];function JG(e,t){if(1&e){var n=Fo();Io(0,"button",9),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",10),_s(2,"clear"),Eo(),Eo()}}var XG,ZG,eQ=((XG=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl,this.setVisibility(0)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setVisibility",value:function(e){this.isVisible={keyword:!0}}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:""}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:""}:{keyword:""})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearDate",value:function(e){e.stopPropagation(),this._form.setValue({keyword:this._form.get("keyword").value?this._form.get("keyword").value:""})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||XG)(Mo(tv))},XG.\u0275cmp=gt({type:XG,selectors:[["app-renew-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc($G,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},decls:10,vars:3,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Oo(4,"input",4,5),Do(6,JG,3,0,"button",6),Eo(),Eo(),Io(7,"div",7),Io(8,"button",8),_s(9,"Search"),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(4),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value))},directives:[jg,Y_,Qg,SI,RE,M_,P_,Wg,Ed,bS,kI,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),XG),tQ=["logoutForm"],nQ=((ZG=function(){function e(t,n){_classCallCheck(this,e),this._matDialogRef=t,this._applicationService=n}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"logout",value:function(){this.formElement.nativeElement.submit()}}]),e}()).\u0275fac=function(e){return new(e||ZG)(Mo(Fx),Mo(_S))},ZG.\u0275cmp=gt({type:ZG,selectors:[["app-access-denied-dialog"]],viewQuery:function(e,t){var n;1&e&&oc(tQ,!0),2&e&&ac(n=dc())&&(t.formElement=n.first)},decls:12,vars:0,consts:[[1,"polyu-alert-dialog"],["color","primary","aria-hidden","false","aria-label","Error",1,"polyu-alert-icon"],[1,"polyu-alert-message"],["type","submit","mat-raised-button","","color","primary",1,"polyu-dialog-btn",3,"click"],["ngNoForm","","action","/vrs-ajax/Logout","target","_self","method","POST"],["logoutForm",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"mat-icon",1),_s(2,"error"),Eo(),Io(3,"h3",2),Io(4,"b"),_s(5,"Access Denied"),Eo(),Eo(),Io(6,"h5"),_s(7,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(8,"button",3),Ho("click",(function(){return t.logout()})),_s(9,"Logout"),Eo(),Oo(10,"form",4,5),Eo())},directives:[pT,bS],styles:[".polyu-alert-dialog[_ngcontent-%COMP%]{text-align:center;padding:40px 80px}.polyu-alert-icon[_ngcontent-%COMP%]{transform:scale(2)}.polyu-alert-message[_ngcontent-%COMP%]{margin:30px 0 0}.polyu-dialog-btn[_ngcontent-%COMP%]{margin:10px 0}"]}),ZG),iQ=["pendingRevokeCardList"],aQ=["searchBar"];function rQ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var oQ,sQ=((oQ=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._snackBar=i,this._cd=a,this._route=r,this._location=o,this._matDialog=s,this.pageTitle="",this.isLoading=!1,this._query=null,this._role=this._route.snapshot.data.role,this.pageTitle=this._route.snapshot.data.pageTitle,this._role||(this._role="user")}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new MG(this._applicationService,this._cd),this._revokeCardListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n?(e.loadData(),e._searchBar.focus()):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"loadData",value:function(){null===this._query&&(this._query=new eS,this._query.endTimeStart=null,this._query.endTimeEnd=null,this._query.status="issued",this._query.offset=0,this._query.mode=this._role),this._revokeCardListcomponent.setQueryCriteria(this._query),this._revokeCardListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"showCardInfo",value:function(e){var t=new Mx;t.disableClose=!1,t.id="card-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(HU,t);n.afterOpened().subscribe((function(){n.componentInstance.setVisitor(e.visitor.dataId)}))}},{key:"showRevokeCardDialog",value:function(e){var t=this;this._dialog.open(nz,{width:"720px",maxWidth:"100%",data:e.visitor}).afterClosed().subscribe((function(){t.loadData()}))}},{key:"search",value:function(e){this._revokeCardListcomponent.clear();var t=this._searchBar.evalInput();this._query.keyword=t.keyword.trim(),this._revokeCardListcomponent.setQueryCriteria(this._query),this._revokeCardListcomponent.refresh()}}]),e}()).\u0275fac=function(e){return new(e||oQ)(Mo(_S),Mo(Bx),Mo(EY),Mo(jr),Mo(rk),Mo(ju),Mo(Bx))},oQ.\u0275cmp=gt({type:oQ,selectors:[["app-ma-revoke-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(iQ,!0),rc(aQ,!0)),2&e&&(ac(n=dc())&&(t._revokeCardListcomponent=n.first),ac(n=dc())&&(t._searchBar=n.first))},decls:18,vars:2,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-section-headline"],[3,"clicked"],["searchBar",""],[1,"search-hints"],[3,"showDetails","revoke"],["pendingRevokeCardList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",1),Io(5,"div",2),Do(6,rQ,2,0,"app-overlay",3),Io(7,"h3",4),_s(8,"Search issued access cards."),Eo(),Io(9,"app-renew-search-bar",5,6),Ho("clicked",(function(e){return t.search(e)})),Eo(),Io(11,"h4",7),_s(12,"Search by Access ID, Visitor Name, Sponsor"),Eo(),Io(13,"app-revoke-card-list",8,9),Ho("showDetails",(function(e){return t.showCardInfo(e)}))("revoke",(function(e){return t.showRevokeCardDialog(e)})),Eo(),Eo(),Eo(),Io(15,"div",10),Io(16,"button",11),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(1),gs(t.pageTitle),ma(5),Ao("ngIf",t.isLoading))},directives:[Ed,eQ,KG,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5pt 0}.search-hints[_ngcontent-%COMP%]{color:grey}"]}),oQ),lQ=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchVisitor(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),cQ=["errorComponent"];function uQ(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,16),Eo())}function dQ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function hQ(e,t){1&e&&(Io(0,"th",17),_s(1," University ID "),Eo())}function fQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.userId," ")}}function pQ(e,t){1&e&&(Io(0,"th",17),_s(1," Name "),Eo())}function mQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.surname+" "+n.givenName," ")}}function _Q(e,t){1&e&&(Io(0,"th",17),_s(1," Access Start "),Eo())}function gQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function vQ(e,t){1&e&&(Io(0,"th",17),_s(1," Access End "),Eo())}function yQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function kQ(e,t){1&e&&(Io(0,"th",17),_s(1," Access Department "),Eo())}function bQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function wQ(e,t){1&e&&(Io(0,"th",17),_s(1," Sponsor "),Eo())}function CQ(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.sponsor," ")}}function DQ(e,t){1&e&&Oo(0,"th",17)}function SQ(e,t){if(1&e){var n=Fo();Io(0,"td",18),Io(1,"button",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),_s(2,"Details"),Eo(),Eo()}}function MQ(e,t){1&e&&Oo(0,"th",17)}function xQ(e,t){if(1&e){var n=Fo();Io(0,"td",18),Io(1,"button",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onReissueBtnClicked(e,i)})),_s(2,"Reissue"),Eo(),Eo()}}function TQ(e,t){1&e&&Oo(0,"tr",20)}function AQ(e,t){1&e&&Oo(0,"tr",21)}var LQ,IQ=((LQ=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["visitorId","visitor","accessStart","accessEnd","accessLocation","sponsor","details","reissue"],this.showDetails=new Gl,this.onDataLoaded=new Gl,this.reissue=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onReissueBtnClicked",value:function(e,t){this.reissue.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||LQ)(Mo(jr))},LQ.\u0275cmp=gt({type:LQ,selectors:[["app-reissue-visitor-list"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(cQ,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",reissue:"reissue",onDataLoaded:"onDataLoaded"},decls:33,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","visitorId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","visitor"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","accessLocation"],["matColumnDef","sponsor"],["matColumnDef","details"],["matColumnDef","reissue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["onclick","this.blur()","mat-raised-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,uQ,3,0,"div",0),Io(1,"div"),Do(2,dQ,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,hQ,2,0,"th",4),Do(8,fQ,2,1,"td",5),Po(),Ro(9,6),Do(10,pQ,2,0,"th",4),Do(11,mQ,2,1,"td",5),Po(),Ro(12,7),Do(13,_Q,2,0,"th",4),Do(14,gQ,3,5,"td",5),Po(),Ro(15,8),Do(16,vQ,2,0,"th",4),Do(17,yQ,3,5,"td",5),Po(),Ro(18,9),Do(19,kQ,2,0,"th",4),Do(20,bQ,2,1,"td",5),Po(),Ro(21,10),Do(22,wQ,2,0,"th",4),Do(23,CQ,2,1,"td",5),Po(),Ro(24,11),Do(25,DQ,1,0,"th",4),Do(26,SQ,3,0,"td",5),Po(),Ro(27,12),Do(28,MQ,1,0,"th",4),Do(29,xQ,3,0,"td",5),Po(),Do(30,TQ,1,0,"tr",13),Do(31,AQ,1,0,"tr",14),Eo(),Io(32,"mat-paginator",15),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(25),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-libraryId[_ngcontent-%COMP%]{padding:20px 10px 10px 30px!important}.mat-column-accessEnd[_ngcontent-%COMP%], .mat-column-accessLocation[_ngcontent-%COMP%], .mat-column-accessStart[_ngcontent-%COMP%], .mat-column-sponsor[_ngcontent-%COMP%], .mat-column-visitor[_ngcontent-%COMP%]{padding:20px 10px!important}.mat-column-details[_ngcontent-%COMP%], .mat-column-renew[_ngcontent-%COMP%], .mat-column-revoke[_ngcontent-%COMP%]{padding:5px 0!important}.mat-column-reissue[_ngcontent-%COMP%]{padding:5px 30px 5px 5px!important}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),LQ),EQ=["pendingReissueCardList"],OQ=["searchBar"];function RQ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var PQ,YQ=((PQ=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._cd=i,this._location=a,this._matDialog=r,this.isLoading=!1,this._query=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new lQ(this._applicationService,this._cd),this._reissueVisitorListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n&&e._applicationService.currentUser.roles.indexOf("fmoadmin")>=0?(e.loadData(),e._searchBar.focus()):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"loadData",value:function(){null===this._query&&(this._query=new tS,this._query.keyword=null,this._query.cardStatus="",this._query.offset=0),this._reissueVisitorListcomponent.setQueryCriteria(this._query),this._reissueVisitorListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"showVisitorInfo",value:function(e){var t=new Mx;t.disableClose=!1,t.id="visitor-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(HU,t);n.afterOpened().subscribe((function(){n.componentInstance.setVisitor(e.dataId)}))}},{key:"showReissueCardDialog",value:function(e){var t=this;this._dialog.open(tz,{width:"720px",maxWidth:"100%",data:e}).afterClosed().subscribe((function(){t.loadData()}))}},{key:"search",value:function(e){this._reissueVisitorListcomponent.clear();var t=this._searchBar.evalInput();this._query.keyword=t.keyword.trim(),this._reissueVisitorListcomponent.setQueryCriteria(this._query),this._reissueVisitorListcomponent.refresh()}}]),e}()).\u0275fac=function(e){return new(e||PQ)(Mo(_S),Mo(Bx),Mo(jr),Mo(ju),Mo(Bx))},PQ.\u0275cmp=gt({type:PQ,selectors:[["app-ma-reissue-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(EQ,!0),rc(OQ,!0)),2&e&&(ac(n=dc())&&(t._reissueVisitorListcomponent=n.first),ac(n=dc())&&(t._searchBar=n.first))},decls:18,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-section-headline"],[3,"clicked"],["searchBar",""],[1,"search-hints"],[3,"showDetails","reissue"],["pendingReissueCardList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Reissue Access Cards (FMO)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",1),Io(5,"div",2),Do(6,RQ,2,0,"app-overlay",3),Io(7,"h3",4),_s(8,"Search visitors."),Eo(),Io(9,"app-renew-search-bar",5,6),Ho("clicked",(function(e){return t.search(e)})),Eo(),Io(11,"h4",7),_s(12,"Search by Visitor ID, Visitor, Sponsor"),Eo(),Io(13,"app-reissue-visitor-list",8,9),Ho("showDetails",(function(e){return t.showVisitorInfo(e)}))("reissue",(function(e){return t.showReissueCardDialog(e)})),Eo(),Eo(),Eo(),Io(15,"div",10),Io(16,"button",11),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(6),Ao("ngIf",t.isLoading))},directives:[Ed,eQ,IQ,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5pt 0}.search-hints[_ngcontent-%COMP%]{color:grey}"]}),PQ),FQ=["keywordInput"];function qQ(e,t){if(1&e){var n=Fo();Io(0,"button",10),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",11),_s(2,"clear"),Eo(),Eo()}}function VQ(e,t){if(1&e){var n=Fo();Io(0,"button",18),Ho("click",(function(e){return en(n),Uo(2).clearDate(e)})),Io(1,"mat-icon",11),_s(2,"clear"),Eo(),Eo()}}function HQ(e,t){if(1&e&&(Io(0,"div",8),Io(1,"div",12),Io(2,"mat-form-field",3),Oo(3,"input",13),Io(4,"div",14),Do(5,VQ,3,0,"button",15),Io(6,"div"),Oo(7,"mat-datepicker-toggle",16),Oo(8,"mat-datepicker",null,17),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(9),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.date)("min",i.accessStartDateMin)("readonly",!0),ma(2),Ao("ngIf",i.form.get("date").value),ma(2),Ao("for",n)}}var NQ,BQ=((NQ=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl,this.setVisibility(0)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setVisibility",value:function(e){this.isVisible={keyword:!0}}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:""}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:""}:{keyword:""})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearDate",value:function(e){e.stopPropagation(),this._form.setValue({keyword:this._form.get("keyword").value?this._form.get("keyword").value:""})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||NQ)(Mo(tv))},NQ.\u0275cmp=gt({type:NQ,selectors:[["app-history-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(FQ,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},decls:11,vars:4,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],["class","polyu-search-item",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"],[1,"flex-container"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","min","readonly"],["matSuffix","",1,"flex-container"],["type","button","mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[3,"for"],["picker1",""],["type","button","mat-button","","mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Oo(4,"input",4,5),Do(6,qQ,3,0,"button",6),Eo(),Eo(),Do(7,HQ,10,6,"div",7),Io(8,"div",8),Io(9,"button",9),_s(10,"Search"),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(4),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value),ma(1),Ao("ngIf",t.isVisible.date))},directives:[jg,Y_,Qg,SI,RE,M_,P_,Wg,Ed,bS,kI,pT,YO,qO,EO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),NQ),jQ=["searchBar"],zQ=["historyList"];function UQ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var WQ,GQ,QQ=((GQ=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._cd=i,this._location=a,this._matDialog=r,this.isLoading=!1,this._query=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new Qj(this._applicationService,this._cd),this._historyListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){}},{key:"search",value:function(){this._historyListcomponent.clear();var e=this._searchBarcomponent.evalInput();e.keyword=e.keyword.trim(),this._query.keyword=e.keyword,this._query.offset=0,this._historyListcomponent.setQueryCriteria(this._query),this._historyListcomponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n?(e.loadData(),e._searchBarcomponent.focus()):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"loadData",value:function(){null===this._query&&(this._query=new nS,this._query.netId=this._applicationService.currentUser.netid,this._query.offset=0),this._historyListcomponent.setQueryCriteria(this._query),this._historyListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||GQ)(Mo(_S),Mo(Bx),Mo(jr),Mo(ju),Mo(Bx))},GQ.\u0275cmp=gt({type:GQ,selectors:[["app-ma-history-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(jQ,!0),rc(zQ,!0)),2&e&&(ac(n=dc())&&(t._searchBarcomponent=n.first),ac(n=dc())&&(t._historyListcomponent=n.first))},decls:16,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"clicked"],["searchBar",""],["historyList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"History"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",1),Io(5,"div",2),Do(6,UQ,2,0,"app-overlay",3),Io(7,"app-history-search-bar",4,5),Ho("clicked",(function(){return t.search()})),Eo(),Io(9,"h5"),_s(10,"Search by Access ID, Visitor Name, Visitor NetID and Sponsor NetID"),Eo(),Oo(11,"app-history-list",null,6),Eo(),Eo(),Io(13,"div",7),Io(14,"button",8),Ho("click",(function(){return t.back()})),_s(15,"Back"),Eo(),Eo()),2&e&&(ma(6),Ao("ngIf",t.isLoading))},directives:[Ed,BQ,oU,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5pt 0}"]}),GQ),KQ=((WQ=function e(){_classCallCheck(this,e),this.sponsorSearchAllQuery=null,this.sponsorSearchCancelQyery=null,this.sponsorSearchEditableQuery=null,this.csSearchAllQuery=null,this.vehicleAccessSearchParameter=null,this.gaFMOSearchAllQuery=null,this.gaStudentApproverSearchAllQuery=null,this.gaStaffApproverSearchAllQuery=null,this.gaAnalystSearchSponsorsQuery=null,this.gaAnalystSearchRequestsQuery=null,this.gaQRCodeQuery=null,this.maMenauTabIdx=0,this.vaMenauTabIdx=0,this.gaMenauTabIdx=0,this.mainMenuTabIdx=0,this.isGAAccessRestrictionAlertShown=!1}).\u0275prov=fe({token:WQ,factory:WQ.\u0275fac=function(e){return new(e||WQ)},providedIn:"root"}),WQ);function $Q(e,t){1&e&&(Io(0,"mat-grid-tile",21),Io(1,"div",7),Io(2,"div",8),Oo(3,"img",22),Io(4,"div",10),_s(5,"Bulk Approve Requests"),Eo(),Eo(),Eo(),Eo())}function JQ(e,t){if(1&e&&(Io(0,"mat-grid-list",5),Io(1,"mat-grid-tile",6),Io(2,"div",7),Io(3,"div",8),Oo(4,"img",9),Io(5,"div",10),_s(6,"List Approvals"),Eo(),Eo(),Eo(),Eo(),Io(7,"mat-grid-tile",11),Io(8,"div",7),Io(9,"div",8),Oo(10,"img",9),Io(11,"div",10),_s(12,"List Visitors"),Eo(),Eo(),Eo(),Eo(),Io(13,"mat-grid-tile",12),Io(14,"div",7),Io(15,"div",8),Oo(16,"img",13),Io(17,"div",10),_s(18,"New Request"),Eo(),Eo(),Eo(),Eo(),Do(19,$Q,6,0,"ng-template",14),Io(20,"mat-grid-tile",15),Io(21,"div",7),Io(22,"div",8),Oo(23,"img",16),Io(24,"div",10),_s(25,"Renew Access Cards"),Eo(),Eo(),Eo(),Eo(),Io(26,"mat-grid-tile",17),Io(27,"div",7),Io(28,"div",8),Oo(29,"img",18),Io(30,"div",10),_s(31,"Revoke Access Cards"),Eo(),Eo(),Eo(),Eo(),Io(32,"mat-grid-tile",19),Io(33,"div",7),Io(34,"div",8),Oo(35,"img",20),Io(36,"div",10),_s(37,"View Log"),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=Uo();Ao("gutterSize","30px"),ma(19),Ao("ngIf",n.roles.indexOf("ROLE_MA_BULK_APPROVER")>=0)}}function XQ(e,t){1&e&&(Io(0,"mat-grid-tile",21),Io(1,"div",7),Io(2,"div",8),Oo(3,"img",22),Io(4,"div",10),_s(5,"Bulk Approve Requests"),Eo(),Eo(),Eo(),Eo())}function ZQ(e,t){1&e&&(Io(0,"mat-grid-tile",33),Io(1,"div",7),Io(2,"div",8),Oo(3,"img",16),Io(4,"div",10),_s(5,"Renew Department's Access Cards"),Eo(),Eo(),Eo(),Eo())}function eK(e,t){if(1&e&&(Io(0,"mat-tab",26),Io(1,"mat-grid-list",27),Io(2,"mat-grid-tile",28),Io(3,"div",7),Io(4,"div",8),Oo(5,"img",29),Io(6,"div",10),_s(7,"Search Department's Visitors"),Eo(),Eo(),Eo(),Eo(),Io(8,"mat-grid-tile",30),Io(9,"div",7),Io(10,"div",8),Oo(11,"img",29),Io(12,"div",10),_s(13,"Search Department's Requests"),Eo(),Eo(),Eo(),Eo(),Do(14,ZQ,6,0,"mat-grid-tile",31),Io(15,"mat-grid-tile",32),Io(16,"div",7),Io(17,"div",8),Oo(18,"img",18),Io(19,"div",10),_s(20,"Revoke Department's Access Cards"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=Uo(2);ma(1),Ao("gutterSize","30px"),ma(13),Ao("ngIf",n.roles.indexOf("deptadmin")>=0)}}function tK(e,t){1&e&&(Io(0,"mat-tab",34),Io(1,"mat-grid-list",27),Io(2,"mat-grid-tile",35),Io(3,"div",7),Io(4,"div",8),Oo(5,"img",29),Io(6,"div",10),_s(7,"Search Requests (FMO)"),Eo(),Eo(),Eo(),Eo(),Io(8,"mat-grid-tile",36),Io(9,"div",7),Io(10,"div",8),Oo(11,"img",29),Io(12,"div",10),_s(13,"Search Visitors (FMO)"),Eo(),Eo(),Eo(),Eo(),Io(14,"mat-grid-tile",37),Io(15,"div",7),Io(16,"div",8),Oo(17,"img",18),Io(18,"div",10),_s(19,"Revoke Access Cards (FMO)"),Eo(),Eo(),Eo(),Eo(),Io(20,"mat-grid-tile",38),Io(21,"div",7),Io(22,"div",8),Oo(23,"img",39),Io(24,"div",10),_s(25,"Reissue Access Cards (FMO)"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("gutterSize","30px"))}function nK(e,t){1&e&&(Io(0,"mat-tab",40),Io(1,"mat-grid-list",27),Io(2,"mat-grid-tile",41),Io(3,"div",7),Io(4,"div",8),Oo(5,"img",18),Io(6,"div",10),_s(7,"Delete"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("gutterSize","30px"))}function iK(e,t){if(1&e){var n=Fo();Io(0,"mat-tab-group",23),Ho("selectedTabChange",(function(e){return en(n),Uo().tabChanged(e)})),Io(1,"mat-tab",24),Io(2,"mat-grid-list",25),Io(3,"mat-grid-tile",6),Io(4,"div",7),Io(5,"div",8),Oo(6,"img",9),Io(7,"div",10),_s(8,"List Approvals"),Eo(),Eo(),Eo(),Eo(),Io(9,"mat-grid-tile",11),Io(10,"div",7),Io(11,"div",8),Oo(12,"img",9),Io(13,"div",10),_s(14,"List Visitors"),Eo(),Eo(),Eo(),Eo(),Io(15,"mat-grid-tile",12),Io(16,"div",7),Io(17,"div",8),Oo(18,"img",13),Io(19,"div",10),_s(20,"New Request"),Eo(),Eo(),Eo(),Eo(),Do(21,XQ,6,0,"ng-template",14),Io(22,"mat-grid-tile",15),Io(23,"div",7),Io(24,"div",8),Oo(25,"img",16),Io(26,"div",10),_s(27,"Renew Access Cards"),Eo(),Eo(),Eo(),Eo(),Io(28,"mat-grid-tile",17),Io(29,"div",7),Io(30,"div",8),Oo(31,"img",18),Io(32,"div",10),_s(33,"Revoke Access Cards"),Eo(),Eo(),Eo(),Eo(),Io(34,"mat-grid-tile",19),Io(35,"div",7),Io(36,"div",8),Oo(37,"img",20),Io(38,"div",10),_s(39,"View Log"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Do(40,eK,21,2,"ng-template",14),Do(41,tK,26,1,"ng-template",14),Do(42,nK,8,1,"ng-template",14),Eo()}if(2&e){var i=Uo();Ao("selectedIndex",i.selectedIndex),ma(2),Ao("gutterSize","30px"),ma(19),Ao("ngIf",i.roles.indexOf("ROLE_MA_BULK_APPROVER")>=0),ma(19),Ao("ngIf",i.roles.indexOf("deptadmin")>=0),ma(1),Ao("ngIf",i.roles.indexOf("fmoadmin")>=0),ma(1),Ao("ngIf",i.roles.indexOf("ROLE_VRS_MA_SUPPORT")>=0)}}var aK,rK=((aK=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._location=n,this._dialog=i,this._dataService=a,this.selectedIndex=a.maMenauTabIdx}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight(),this.roles=this._applicationService.currentUser.roles}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(t){t||e.open(nQ)},error:function(t){e.open(nQ)}})}},{key:"tabChanged",value:function(e){this._dataService.maMenauTabIdx=e.index}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||aK)(Mo(_S),Mo(ju),Mo(Bx),Mo(KQ))},aK.\u0275cmp=gt({type:aK,selectors:[["app-ma-dashboard"]],decls:10,vars:2,consts:[[1,"polyu-page-headline"],[3,"ngIf","ngIfElse"],["advancedDashboard",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["cols","3","rowHeight","3:2",3,"gutterSize"],["routerLink","/request","routerLinkActive","active",1,"polyu-grid-cell"],[1,"polyu-grid-cell-container","polyu-grid-cell-container"],[1,"polyu-grid-button"],["src","assets/img/oda-list.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text"],["routerLink","/visitor","routerLinkActive","active",1,"polyu-grid-cell"],["routerLink","/request/new-visitor","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/oda-new.png","width","80","height","80",1,"polyu-cell-image"],[3,"ngIf"],["routerLink","/ma/cards","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_autorenew_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","/ma/revoke","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_delete_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","/ma/history","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_history_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","/request/bulkapprove","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_done_all_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],[1,"tab-group",3,"selectedIndex","selectedTabChange"],["label","User Dashboard"],["cols","3","rowHeight","3:2",1,"polyu-dashboard-grid-list",3,"gutterSize"],["label","Department Admin Dashboard"],["cols","3","rowHeight","5:3",1,"polyu-dashboard-grid-list",3,"gutterSize"],["routerLink","/visitor/dept","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_search_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","/ma/dept/requests","routerLinkActive","active",1,"polyu-grid-cell"],["class","polyu-grid-cell","routerLink","/ma/dept/cards","routerLinkActive","active",4,"ngIf"],["routerLink","/ma/dept/revoke","routerLinkActive","active",1,"polyu-grid-cell"],["routerLink","/ma/dept/cards","routerLinkActive","active",1,"polyu-grid-cell"],["label","FMO Dashboard"],["routerLink","/ma/fmo/requests","routerLinkActive","active",1,"polyu-grid-cell"],["routerLink","/visitor/fmo","routerLinkActive","active",1,"polyu-grid-cell"],["routerLink","/ma/fmo/revoke","routerLinkActive","active",1,"polyu-grid-cell"],["routerLink","/ma/fmo/reissue","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_file_copy_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["label","Supporter Dashboard (ITS)"],["routerLink","/ma/support/delete","routerLinkActive","active",1,"polyu-grid-cell"]],template:function(e,t){if(1&e&&(Io(0,"h4",0),_s(1,"Multiple access over prescribed period (require HoD approval)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Do(4,JQ,38,2,"ng-template",1),Do(5,iK,43,6,"ng-template",null,2,mc),Io(7,"div",3),Io(8,"button",4),Ho("click",(function(){return t.back()})),_s(9,"Back"),Eo(),Eo()),2&e){var n=So(6);ma(4),Ao("ngIf",t.roles.indexOf("fmoadmin")<0&&t.roles.indexOf("deptadmin")<0&&t.roles.indexOf("ROLE_VRS_MA_SUPPORT")<0)("ngIfElse",n)}},directives:[Ed,bS,YR,bR,_b,Cb,Eq,wq],styles:[".polyu-grid-cell[_ngcontent-%COMP%]{background:#f2f2f2;cursor:pointer}.polyu-grid-cell[_ngcontent-%COMP%]:hover{background:#ffe6e6;font-size:105%}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-cell-text[_ngcontent-%COMP%]{cursor:pointer;text-align:center}.polyu-dashboard-grid-list[_ngcontent-%COMP%]{margin-top:15px}.tab-group[_ngcontent-%COMP%]{margin-top:40px}.polyu-grid-cell-container[_ngcontent-%COMP%]{width:100%;height:100%;cursor:pointer;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border:0 solid grey;background:#f2f2f2}.polyu-grid-cell-container[_ngcontent-%COMP%]:hover{font-size:105%;background:#ffe6e6}.polyu-grid-cell[_ngcontent-%COMP%]:focus{outline:none;border:0}.polyu-grid-button[_ngcontent-%COMP%]{display:block;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.polyu-cell-text[_ngcontent-%COMP%]{width:100%;font-size:1.3em;line-height:110%;color:#4d4d4d;margin-top:10px}@media only screen and (max-width:800px){.polyu-cell-image[_ngcontent-%COMP%]{display:none}}"]}),aK),oK=["errorComponent"];function sK(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,17),Eo())}function lK(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function cK(e,t){1&e&&(Io(0,"th",18),_s(1," Access ID "),Eo())}function uK(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.libraryId," ")}}function dK(e,t){1&e&&(Io(0,"th",18),_s(1," Visitor "),Eo())}function hK(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.surname+" "+n.visitor.givenName," ")}}function fK(e,t){1&e&&(Io(0,"th",18),_s(1," Access Start "),Eo())}function pK(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.visitor.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function mK(e,t){1&e&&(Io(0,"th",18),_s(1," Access End "),Eo())}function _K(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.visitor.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function gK(e,t){1&e&&(Io(0,"th",18),_s(1," Access Location "),Eo())}function vK(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.accessDepartment," ")}}function yK(e,t){1&e&&(Io(0,"th",18),_s(1," Sponsor "),Eo())}function kK(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.visitor.sponsor," ")}}function bK(e,t){1&e&&Oo(0,"th",18)}function wK(e,t){if(1&e){var n=Fo();Io(0,"td",19),Io(1,"button",20),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),_s(2,"Details"),Eo(),Eo()}}function CK(e,t){1&e&&Oo(0,"th",18)}function DK(e,t){if(1&e){var n=Fo();Io(0,"td",19),Io(1,"button",21),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onRenewBtnClicked(e,i)})),_s(2,"Renew"),Eo(),Eo()}}function SK(e,t){1&e&&Oo(0,"th",18)}function MK(e,t){if(1&e){var n=Fo();Io(0,"button",21),Ho("click",(function(e){en(n);var t=Uo().$implicit;return Uo().onRevokeBtnClicked(e,t)})),_s(1,"Revoke"),Eo()}}function xK(e,t){if(1&e){var n=Fo();Io(0,"button",21),Ho("click",(function(e){en(n);var t=Uo().$implicit;return Uo().onReissueBtnClicked(e,t)})),_s(1,"Reissue"),Eo()}}function TK(e,t){if(1&e&&(Io(0,"td",19),Do(1,MK,2,0,"ng-template",22),Do(2,xK,2,0,"ng-template",22),Eo()),2&e){var n=t.$implicit,i=Uo();ma(1),Ao("ngIf","issued"===n.status),ma(1),Ao("ngIf","revoked"===n.status&&i.reissueEnable)}}function AK(e,t){1&e&&Oo(0,"tr",23)}function LK(e,t){1&e&&Oo(0,"tr",24)}var IK,EK,OK=((EK=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["libraryId","visitor","accessStart","accessEnd","accessLocation","sponsor","details","renew"],this.showDetails=new Gl,this.showRenew=new Gl,this.onDataLoaded=new Gl,this.revoke=new Gl,this.reissue=new Gl,this.reissueEnable=!1}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setReissueEnable",value:function(e){this.reissueEnable=e,this._cd.detectChanges()}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onRenewBtnClicked",value:function(e,t){this.showRenew.emit(t)}},{key:"onRevokeBtnClicked",value:function(e,t){this.revoke.emit(t)}},{key:"onReissueBtnClicked",value:function(e,t){this.reissue.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||EK)(Mo(jr))},EK.\u0275cmp=gt({type:EK,selectors:[["app-renew-card-list"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(oK,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",showRenew:"showRenew",revoke:"revoke",reissue:"reissue",onDataLoaded:"onDataLoaded"},decls:36,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","libraryId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","visitor"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","accessLocation"],["matColumnDef","sponsor"],["matColumnDef","details"],["matColumnDef","renew"],["matColumnDef","revoke"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-raised-button","","onclick","this.blur()",3,"click"],["onclick","this.blur()","mat-raised-button","",3,"click"],[3,"ngIf"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,sK,3,0,"div",0),Io(1,"div"),Do(2,lK,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,cK,2,0,"th",4),Do(8,uK,2,1,"td",5),Po(),Ro(9,6),Do(10,dK,2,0,"th",4),Do(11,hK,2,1,"td",5),Po(),Ro(12,7),Do(13,fK,2,0,"th",4),Do(14,pK,3,5,"td",5),Po(),Ro(15,8),Do(16,mK,2,0,"th",4),Do(17,_K,3,5,"td",5),Po(),Ro(18,9),Do(19,gK,2,0,"th",4),Do(20,vK,2,1,"td",5),Po(),Ro(21,10),Do(22,yK,2,0,"th",4),Do(23,kK,2,1,"td",5),Po(),Ro(24,11),Do(25,bK,1,0,"th",4),Do(26,wK,3,0,"td",5),Po(),Ro(27,12),Do(28,CK,1,0,"th",4),Do(29,DK,3,0,"td",5),Po(),Ro(30,13),Do(31,SK,1,0,"th",4),Do(32,TK,3,2,"td",5),Po(),Do(33,AK,1,0,"tr",14),Do(34,LK,1,0,"tr",15),Eo(),Io(35,"mat-paginator",16),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(28),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-libraryId[_ngcontent-%COMP%]{padding:20px 10px 10px 30px!important}.mat-column-accessEnd[_ngcontent-%COMP%], .mat-column-accessLocation[_ngcontent-%COMP%], .mat-column-accessStart[_ngcontent-%COMP%], .mat-column-sponsor[_ngcontent-%COMP%], .mat-column-visitor[_ngcontent-%COMP%]{padding:20px 10px!important}.mat-column-details[_ngcontent-%COMP%], .mat-column-renew[_ngcontent-%COMP%], .mat-column-revoke[_ngcontent-%COMP%]{padding:5px 0!important}.mat-column-reissue[_ngcontent-%COMP%]{padding:5px 30px 5px 5px!important}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),EK),RK=((IK=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setCard",value:function(e){this._form.setValue({libraryId:e.libraryId,visitorName:e.visitor.surname+" "+e.visitor.givenName,netID:e.visitor.userId,accessLocation:e.visitor.accessDepartment,accessStart:e.visitor.accessStartDate?dd(e.visitor.accessStartDate,"yyyy-MM-dd","en-HK"):"N/A",accessEnd:e.visitor.accessEndDate?dd(e.visitor.accessEndDate,"yyyy-MM-dd","en-HK"):"N/a"})}},{key:"_generateDataForm",value:function(e){return e.group({libraryId:[""],visitorName:[""],netID:[""],accessLocation:[""],accessStart:[""],accessEnd:[""]})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||IK)(Mo(tv))},IK.\u0275cmp=gt({type:IK,selectors:[["app-renew-brief"]],decls:34,vars:13,consts:[[3,"formGroup"],[1,"polyu-section-headline"],[1,"polyu-grid-container","polyu-renew-container"],[1,"polyu-grid-cell-2"],["appearance","standard"],["matInput","",3,"formControl","readonly"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"h3",1),_s(2,"Information"),Eo(),Io(3,"div",2),Io(4,"div",3),Io(5,"mat-form-field",4),Io(6,"mat-label"),_s(7,"Access ID"),Eo(),Oo(8,"input",5),Eo(),Eo(),Io(9,"div",3),Io(10,"mat-form-field",4),Io(11,"mat-label"),_s(12,"NetID"),Eo(),Oo(13,"input",5),Eo(),Eo(),Io(14,"div",3),Io(15,"mat-form-field",4),Io(16,"mat-label"),_s(17,"Visitor Name"),Eo(),Oo(18,"input",5),Eo(),Eo(),Io(19,"div",3),Io(20,"mat-form-field",4),Io(21,"mat-label"),_s(22,"Access Location"),Eo(),Oo(23,"input",5),Eo(),Eo(),Io(24,"div",3),Io(25,"mat-form-field",4),Io(26,"mat-label"),_s(27,"Current Access Start Date"),Eo(),Oo(28,"input",5),Eo(),Eo(),Io(29,"div",3),Io(30,"mat-form-field",4),Io(31,"mat-label"),_s(32,"Current Access End Date"),Eo(),Oo(33,"input",5),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(8),Ao("formControl",t.form.controls.libraryId)("readonly",!0),ma(5),Ao("formControl",t.form.controls.netID)("readonly",!0),ma(5),Ao("formControl",t.form.controls.visitorName)("readonly",!0),ma(5),Ao("formControl",t.form.controls.accessLocation)("readonly",!0),ma(5),Ao("formControl",t.form.controls.accessStart)("readonly",!0),ma(5),Ao("formControl",t.form.controls.accessEnd)("readonly",!0))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .mat-form-field-underline{display:none!important}"]}),IK),PK=["renewBrief"],YK=["requestInput"],FK=["requestInputFmotdp"],qK=["requestHandler"];function VK(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function HK(e,t){if(1&e){var n=Fo();Io(0,"div",18),Oo(1,"app-divider"),Io(2,"button",19),Ho("click",(function(){return en(n),Uo().onSubmit()})),_s(3,"Submit"),Eo(),Eo()}}var NK,BK=((NK=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialogRef=i,this.submitted=new Gl,this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!1,this.showSubmit=!0}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"onApprovalFlowChanged",value:function(e){this._request&&(this._request.requestInput=JSON.parse(JSON.stringify(e)))}},{key:"onHandlerChanged",value:function(e){this._request&&(this._request.workflowConfig=JSON.parse(JSON.stringify(e)))}},{key:"initRequest",value:function(e){this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!0;var t=this,n=e.visitor;m_([this._applicationService.getRequest(e.visitor.requestId?e.visitor.requestId:0),this._applicationService.listRequestAction(0)]).subscribe({next:function(i){var a=_slicedToArray(i,2),r=a[0],o=a[1];r.stage="requester",r.workflowConfig.requester.assignee=t._applicationService.currentUser.netid,t.resetWorkFlowItem(r.workflowConfig.requester),r.workflowConfig.sponsor.assignee=n.sponsor,t.resetWorkFlowItem(r.workflowConfig.sponsor),t.resetWorkFlowItem(r.workflowConfig.approval1),t.resetWorkFlowItem(r.workflowConfig.approval2),t.resetWorkFlowItem(r.workflowConfig.approval3),t.resetWorkFlowItem(r.workflowConfig.approval4),t.resetWorkFlowItem(r.workflowConfig.fmocss),t.resetWorkFlowItem(r.workflowConfig.fmohd),r.workflowConfig.fmotdp=null,r.requestInput.requester=t._applicationService.currentUser.netid,r.requestInput.requesterEmail=t._applicationService.currentUser.email,r.requestInput.sponsor=n.sponsor,t._requestHandler.resetRequest(r,o);var s=new UD;s.accessStartDate=e.visitor.accessStartDate,s.accessEndDate=e.visitor.accessEndDate,s.reason=null,s.cardRecordId=e.cardRecordId,t._requestInput.resetRenewRequest(s),t._requestInput.setEditable(1),t._renewBriefInfo.setCard(e),t.pageState="visible",t.actionDoneIcon="",t.actionDoneMessage="",t.isLoading=!1,t.showSubmit=!0},error:function(e){t.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Unable to approver request."),t.isLoading=!1,t.showSubmit=!1}})}},{key:"resetWorkFlowItem",value:function(e){e&&(e.action=null,e.timestamp=null)}},{key:"onSubmit",value:function(){var e=this,t=m_({input:this._requestInput.validateForm(),handler:mu(this._requestHandler.validateForm())}).pipe(V((function(e){var t=e.input,n=e.handler;return t&&n}))),n=t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),i=t.pipe(gu((function(e){return e})),Pv((function(){var t=e._requestInput.evalInput();return t.workflowConfig=e._requestHandler.evalHandler(),e._applicationService.submitRenewRequest(t)})),Uv((function(t){e.showActionDone("done","Request ID "+t.requestId+" submitted"),e.showSubmit=!1})));this.isLoading=!0;var a=this;K(n,i).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({next:function(){},error:function(e){a.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Fail to submit this renew request.")}})}},{key:"showActionDone",value:function(e,t){this.pageState="actionDone",this.actionDoneIcon=e,this.actionDoneMessage=t,this.submitted.emit()}},{key:"closeModal",value:function(){this._dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||NK)(Mo(_S),Mo(EY),Mo(Fx))},NK.\u0275cmp=gt({type:NK,selectors:[["app-renew-input-modal"]],viewQuery:function(e,t){var n;1&e&&(rc(PK,!0),rc(YK,!0),rc(FK,!0),rc(qK,!0)),2&e&&(ac(n=dc())&&(t._renewBriefInfo=n.first),ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestInputFmotdp=n.first),ac(n=dc())&&(t._requestHandler=n.first))},outputs:{submitted:"submitted"},decls:26,vars:6,consts:[[1,"polyu-block"],[1,"popup-action-bar"],["mat-icon-button","","type","button","onclick","this.blur()","tabindex","-1",3,"click"],[1,"polyu-page-headline"],[1,"modal-body"],[1,"model-body-scrollable"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status",1,"result-icon"],[1,"polyu-section-headline"],["renewBrief",""],[3,"approvalFlowChanged"],["requestInput",""],[3,"changed"],["requestHandler",""],[3,"ngIf"],[1,"polyu-action-bar"],["mat-raised-button","","color","primary","onclick","this.blur()",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Io(2,"button",2),Ho("click",(function(){return t.closeModal()})),Io(3,"mat-icon"),_s(4,"close"),Eo(),Eo(),Eo(),Io(5,"h3",3),_s(6,"Renew a Visitor Access Card"),Eo(),Io(7,"div",4),Io(8,"div",5),Io(9,"div",6),Do(10,VK,2,0,"app-overlay",7),Io(11,"div",8),Io(12,"div",9),Io(13,"mat-icon",10),_s(14),Eo(),Eo(),Io(15,"h3",11),_s(16),Eo(),Eo(),Io(17,"div",8),Oo(18,"app-renew-brief",null,12),Io(20,"app-renew-input",13,14),Ho("approvalFlowChanged",(function(e){return t.onApprovalFlowChanged(e)})),Eo(),Oo(22,"app-divider"),Io(23,"app-renew-handler",15,16),Ho("changed",(function(e){return t.onHandlerChanged(e)})),Eo(),Eo(),Eo(),Eo(),Eo(),Do(25,HK,4,0,"ng-template",17),Eo()),2&e&&(ma(10),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","actionDone"!==t.pageState),ma(3),gs(t.actionDoneIcon),ma(2),gs(t.actionDoneMessage),ma(1),Ao("hidden","visible"!==t.pageState),ma(8),Ao("ngIf",t.showSubmit))},directives:[bS,pT,Ed,RK,Lz,TH,pj,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.popup-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.result-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.modal-body[_ngcontent-%COMP%]{overflow-y:scroll;max-height:60vh;padding:0 10px}.model-body-scrollable-container[_ngcontent-%COMP%]{height:100%}.model-body-scrollable[_ngcontent-%COMP%]{min-height:101%}h3.polyu-section-headline[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,94.1%,.5)}.polyu-overlay-container[_ngcontent-%COMP%]{padding-bottom:30px}"]}),NK),jK=["pendingRenewCardList"],zK=["searchBar"];function UK(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var WK,GK=((WK=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._snackBar=i,this._cd=a,this._route=r,this._location=o,this._matDialog=s,this._action=null,this._cardId=null,this.pageTitle="",this.isLoading=!1,this._query=null,this._role=this._route.snapshot.data.role,this.pageTitle=this._route.snapshot.data.pageTitle,this._role||(this._role="user"),this._paraSubscription=this._route.queryParams.subscribe((function(e){l._action=e.action,l._cardId=Number(e.cardId)}))}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new MG(this._applicationService,this._cd),this._renewCardListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){this._paraSubscription.unsubscribe()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n&&("user"===e._role||e._applicationService.currentUser.roles.indexOf(e._role)>=0)?(e._renewCardListcomponent.setReissueEnable(e._applicationService.currentUser.roles.indexOf("fmoadmin")>=0),e.loadData(),e.checkQueryParams()||e._searchBar.focus()):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"checkQueryParams",value:function(){var e=this;return!("renew"!==this._action||!this._cardId||(this._applicationService.getDataCardRecord(this._cardId).subscribe({next:function(t){t?e.rewnewCard(t):this._snackBar.open("Invalid visitor card.",null,{duration:2e3})},error:function(e){this._snackBar.open("System Error.",null,{duration:2e3})}}),0))}},{key:"loadData",value:function(){if(null===this._query)if(this._query=new eS,this._query.status="issued",this._query.offset=0,this._query.mode=this._role,"user"===this._role){var e=new Date;this._query.endTimeStart=FV(new Date(e.getFullYear(),e.getMonth(),e.getDate()-14)),this._query.endTimeEnd=FV(new Date(e.getFullYear(),e.getMonth(),e.getDate()+14))}else this._query.endTimeStart=null,this._query.endTimeEnd=null;this._renewCardListcomponent.setQueryCriteria(this._query),this._renewCardListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"rewnewCard",value:function(e){var t=new Mx;t.disableClose=!1,t.id="renew-modal-component",t.minHeight=Math.floor(.3*document.documentElement.clientHeight)+"px",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(BK,t);n.afterOpened().subscribe((function(){n.componentInstance.initRequest(e)}))}},{key:"showCardInfo",value:function(e){var t=new Mx;t.disableClose=!1,t.id="card-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(HU,t);n.afterOpened().subscribe((function(){n.componentInstance.setVisitor(e.visitor.dataId)}))}},{key:"showRevokeCardDialog",value:function(e){var t=this;this._dialog.open(nz,{width:"720px",maxWidth:"100%",data:e.visitor}).afterClosed().subscribe((function(){t.loadData()}))}},{key:"showReissueCardDialog",value:function(e){var t=this;this._dialog.open(tz,{width:"720px",maxWidth:"100%",data:e.visitor}).afterClosed().subscribe((function(){t.loadData()}))}},{key:"search",value:function(e){this._renewCardListcomponent.clear();var t=this._searchBar.evalInput();this._query.keyword=t.keyword.trim(),this._renewCardListcomponent.setQueryCriteria(this._query),this._renewCardListcomponent.refresh()}}]),e}()).\u0275fac=function(e){return new(e||WK)(Mo(_S),Mo(Bx),Mo(EY),Mo(jr),Mo(rk),Mo(ju),Mo(Bx))},WK.\u0275cmp=gt({type:WK,selectors:[["app-ma-renew-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(jK,!0),rc(zK,!0)),2&e&&(ac(n=dc())&&(t._renewCardListcomponent=n.first),ac(n=dc())&&(t._searchBar=n.first))},decls:16,vars:2,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-section-headline"],[3,"clicked"],["searchBar",""],[1,"search-hints"],[3,"showDetails","showRenew","revoke","reIssue"],["pendingRenewCardList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1),Eo(),Io(2,"div",1),Io(3,"div",2),Do(4,UK,2,0,"app-overlay",3),Io(5,"h3",4),_s(6,"Cards which would expire soon."),Eo(),Io(7,"app-renew-search-bar",5,6),Ho("clicked",(function(e){return t.search(e)})),Eo(),Io(9,"h4",7),_s(10,"Search by Access ID, Visitor Name, Sponsor"),Eo(),Io(11,"app-renew-card-list",8,9),Ho("showDetails",(function(e){return t.showCardInfo(e)}))("showRenew",(function(e){return t.rewnewCard(e)}))("revoke",(function(e){return t.showRevokeCardDialog(e)}))("reIssue",(function(e){return t.showReissueCardDialog(e)})),Eo(),Eo(),Eo(),Io(13,"div",10),Io(14,"button",11),Ho("click",(function(){return t.back()})),_s(15,"Back"),Eo(),Eo()),2&e&&(ma(1),gs(t.pageTitle),ma(3),Ao("ngIf",t.isLoading))},directives:[Ed,eQ,OK,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5pt 0}.search-hints[_ngcontent-%COMP%]{color:grey}"]}),WK),QK=["keywordInput"];function KK(e,t){if(1&e){var n=Fo();Io(0,"button",9),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",10),_s(2,"clear"),Eo(),Eo()}}var $K,JK=(($K=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.onSearchClicked=new Gl,this.setVisibility(0)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setVisibility",value:function(e){this.isVisible={keyword:!0}}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return this._form.get("keyword").value?this._form.get("keyword").value:""}},{key:"setValue",value:function(e){this._form.setValue({keyword:e||""})}},{key:"search",value:function(){this.onSearchClicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearDate",value:function(e){e.stopPropagation(),this._form.setValue({keyword:this._form.get("keyword").value?this._form.get("keyword").value:""})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||$K)(Mo(tv))},$K.\u0275cmp=gt({type:$K,selectors:[["app-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(QK,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{onSearchClicked:"onSearchClicked"},decls:10,vars:3,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Oo(4,"input",4,5),Do(6,KK,3,0,"button",6),Eo(),Eo(),Io(7,"div",7),Io(8,"button",8),_s(9,"Search"),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(4),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value))},directives:[jg,Y_,Qg,SI,RE,M_,P_,Wg,Ed,bS,kI,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),$K),XK=["errorComponent"];function ZK(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,16),Eo())}function e$(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function t$(e,t){1&e&&(Io(0,"th",17),_s(1," Request ID "),Eo())}function n$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function i$(e,t){1&e&&(Io(0,"th",17),_s(1," Request Type "),Eo())}function a$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"requestTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.requestType)," ")}}function r$(e,t){1&e&&(Io(0,"th",17),_s(1," Vistor "),Eo())}function o$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.surname+" "+n.requestInput.givenName," ")}}function s$(e,t){1&e&&(Io(0,"th",17),_s(1," Requestor "),Eo())}function l$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.requester," ")}}function c$(e,t){1&e&&(Io(0,"th",17),_s(1," Sponsor "),Eo())}function u$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.sponsor," ")}}function d$(e,t){1&e&&(Io(0,"th",17),_s(1," Stage "),Eo())}function h$(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"requestStagePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.stage)," ")}}function f$(e,t){1&e&&Oo(0,"th",17)}function p$(e,t){if(1&e){var n=Fo();Io(0,"td",18),Io(1,"button",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),_s(2,"Details"),Eo(),Eo()}}function m$(e,t){1&e&&Oo(0,"th",17)}function _$(e,t){if(1&e){var n=Fo();Io(0,"button",19),Ho("click",(function(e){en(n);var t=Uo().$implicit;return Uo().onHistoryBtnClicked(e,t)})),_s(1,"History"),Eo()}}function g$(e,t){if(1&e&&(Io(0,"td",18),Do(1,_$,2,0,"button",20),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngIf",n.dataId)}}function v$(e,t){1&e&&Oo(0,"tr",21)}function y$(e,t){1&e&&Oo(0,"tr",22)}var k$,b$,w$=((k$=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["requestId","requestType","visitor","requestor","sponsor","stage","details"],this.showDetails=new Gl,this.showHistory=new Gl,this.onDataLoaded=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=this.selectedRow===e?null:e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onHistoryBtnClicked",value:function(e,t){this.showHistory.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||k$)(Mo(jr))},k$.\u0275cmp=gt({type:k$,selectors:[["app-request-details-search-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(XK,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{showDetails:"showDetails",showHistory:"showHistory",onDataLoaded:"onDataLoaded"},decls:33,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","requestType"],["matColumnDef","visitor"],["matColumnDef","requestor"],["matColumnDef","sponsor"],["matColumnDef","stage"],["matColumnDef","details"],["matColumnDef","history"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["onclick","this.blur()","mat-raised-button","",3,"click"],["onclick","this.blur()","mat-raised-button","",3,"click",4,"ngIf"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,ZK,3,0,"div",0),Io(1,"div"),Do(2,e$,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,t$,2,0,"th",4),Do(8,n$,2,1,"td",5),Po(),Ro(9,6),Do(10,i$,2,0,"th",4),Do(11,a$,3,3,"td",5),Po(),Ro(12,7),Do(13,r$,2,0,"th",4),Do(14,o$,2,1,"td",5),Po(),Ro(15,8),Do(16,s$,2,0,"th",4),Do(17,l$,2,1,"td",5),Po(),Ro(18,9),Do(19,c$,2,0,"th",4),Do(20,u$,2,1,"td",5),Po(),Ro(21,10),Do(22,d$,2,0,"th",4),Do(23,h$,3,3,"td",5),Po(),Ro(24,11),Do(25,f$,1,0,"th",4),Do(26,p$,3,0,"td",5),Po(),Ro(27,12),Do(28,m$,1,0,"th",4),Do(29,g$,2,1,"td",5),Po(),Do(30,v$,1,0,"tr",13),Do(31,y$,1,0,"tr",14),Eo(),Io(32,"mat-paginator",15),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(25),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,sU,lU],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.request-details[_ngcontent-%COMP%]{overflow:hidden;display:flex}tr.detail-row[_ngcontent-%COMP%]{height:0}.mat-column-expandedDetail[_ngcontent-%COMP%]{padding:0!important;border-bottom-width:0}.details-container[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid rgba(0,0,0,.12)}.details-container[_ngcontent-%COMP%]   .mat-cell[_ngcontent-%COMP%], .details-container[_ngcontent-%COMP%]   .mat-header-cell[_ngcontent-%COMP%]{border-bottom-width:0;width:50%}"]}),k$),C$=["renewDisplay"],D$=((b$=function(){function e(t){_classCallCheck(this,e),this._dialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._renewDiaplayComponent.setEditable(!1),this._renewDiaplayComponent.setTitleVisible(!1),this._renewDiaplayComponent.setShowAction(!1)}},{key:"resetRequest",value:function(e){this._renewDiaplayComponent.resetRequest(e)}},{key:"closeModal",value:function(){this._dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||b$)(Mo(Fx))},b$.\u0275cmp=gt({type:b$,selectors:[["app-renew-display-modal"]],viewQuery:function(e,t){var n;1&e&&rc(C$,!0),2&e&&ac(n=dc())&&(t._renewDiaplayComponent=n.first)},decls:10,vars:0,consts:[[1,"popup-action-bar"],["mat-icon-button","","type","button","tabindex","-1",3,"click"],[1,"polyu-page-headline"],[1,"modal-body"],[1,"polyu-block"],["renewDisplay",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"button",1),Ho("click",(function(){return t.closeModal()})),Io(2,"mat-icon"),_s(3,"close"),Eo(),Eo(),Eo(),Io(4,"h3",2),_s(5,"Details"),Eo(),Io(6,"div",3),Io(7,"div",4),Oo(8,"app-renew-display",null,5),Eo(),Eo())},directives:[bS,pT,UU],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.popup-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.modal-body[_ngcontent-%COMP%]{overflow-y:auto!important;max-height:70vh;padding:0 10px}[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,94.1%,.5)}"]}),b$),S$=["requestInput"],M$=["requestInputFmotdp"],x$=["requestComments"],T$=["requestHandler"],A$=["requestVisitor"];function L$(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var I$,E$=((I$=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._dialogRef=a,this.pageState="visible",this.actionDoneMessage="",this.actionDoneIcon="",this.isLoading=!1,this.showComments=!1,this.showFmotdp=!1,this.showPics=!1,this.showActions=!1,this.showVisitor=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"onApprovalFlowChanged",value:function(e){this._request&&(this._request.requestInput=JSON.parse(JSON.stringify(e)),this._requestHandler.updateRequesterSponsorCardType(e.requester,e.sponsor,e.cardType))}},{key:"onHandlerChanged",value:function(e){this._request&&(this._request.workflowConfig=JSON.parse(JSON.stringify(e)))}},{key:"resetRequest",value:function(e){var t=this;if(null===e)return this.showActionDone("error_outline","Request not found or you are not authorized to access the request"),void(this.isLoading=!1);var n=this;this.isLoading=!0,m_({request:this._applicationService.getRequest(e),actions:this._applicationService.listRequestAction(e)}).pipe(Qv((function(){return t.isLoading=!1}))).subscribe({next:function(e){var n=e.request,i=e.actions;t._request=n,t._requestInput.resetRequest(n),t._requestInputFmotdp.resetRequest(n,i),t._requestComments.resetRequest(n,i),t._requestHandler.resetRequest(n,i),t._requestVisitor.resetData(n.dataId),t.showComments="requester"!==n.stage,t.showFmotdp="fmotdp"===n.stage||"R"==n.requestType,t.showPics="requester"===n.stage,t.showActions=i.length>0,t.showVisitor="completed"===n.stage,t.pageState="visible",t.actionDoneIcon="",t.actionDoneMessage=""},error:function(e){n.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Request not found or you are not authorized to access the request.")}})}},{key:"onSubmit",value:function(){var e=this,t=m_({input:this._requestInput.validateForm(),handler:mu(this._requestHandler.validateForm())}).pipe(V((function(e){var t=e.input,n=e.handler;return t&&n}))),n=this,i=t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),a=t.pipe(gu((function(e){return e})),Uv((function(){e._request.requestInput=JSON.parse(JSON.stringify(e._requestInput.evalInput())),e._request.workflowConfig=JSON.parse(JSON.stringify(e._requestHandler.evalHandler()))})),Pv((function(){return e._applicationService.saveRequest(0,e._request.requestInput,e._requestInput.getSupportingDocument(),e._requestInput.getConsentDocument(),e._request.workflowConfig)})),Uv((function(t){e.showActionDone("done","Request ID "+t.requestId+" submitted")})));this.isLoading=!0,K(i,a).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({error:function(e){n.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Request not found or you are not authorized to access the request")}})}},{key:"onApprove",value:function(e){var t=this;if(this._requestHandler.validateForm()){if(this._request.workflowConfig=JSON.parse(JSON.stringify(this._requestHandler.evalHandler())),"fmotdp"===this._request.stage){if(!this._requestInputFmotdp.validateForm())return void this._snackBar.open("Some input fields are incorrect. Please fix them and approve again.",null,{duration:2e3});this._request.requestInputFmotdp=JSON.parse(JSON.stringify(this._requestInputFmotdp.evalInput()))}var n;this.isLoading=!0,n="fmohd"===this._request.stage||"fmocss"===this._request.stage?"confirmed checked":"fmotdp"===this._request.stage?"processed":"approved";var i=this;this._applicationService.processRequest(this._request.requestId,this._request.stage,"approve",this._request.requestInputFmotdp,this._request.workflowConfig).pipe(Qv((function(){t.isLoading=!1}))).subscribe({next:function(e){t.showActionDone("done","Request ID "+t._request.requestId+" "+n)},error:function(e){i.showActionDone("error_outline",e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Request not found or you are not authorized to access the request")}})}else this._snackBar.open("Some input fields are incorrect. Please fix them and approve again.",null,{duration:2e3})}},{key:"onReject",value:function(){this.showActionDone("error_outline","Request ID "+this._request.requestId+" rejected")}},{key:"openGuidelineRequest",value:function(){this._dialog.open(MB,{minHeight:"80%",minWidth:"80%"})}},{key:"openGuidelineManagement",value:function(){this._dialog.open(xB,{minHeight:"80%",minWidth:"80%"})}},{key:"showActionDone",value:function(e,t){this.pageState="actionDone",this.actionDoneIcon=e,this.actionDoneMessage=t}},{key:"closeModal",value:function(){this._dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||I$)(Mo(_S),Mo(EY),Mo(Bx),Mo(Fx))},I$.\u0275cmp=gt({type:I$,selectors:[["app-request-infomration-modal"]],viewQuery:function(e,t){var n;1&e&&(rc(S$,!0),rc(M$,!0),rc(x$,!0),rc(T$,!0),rc(A$,!0)),2&e&&(ac(n=dc())&&(t._requestInput=n.first),ac(n=dc())&&(t._requestInputFmotdp=n.first),ac(n=dc())&&(t._requestComments=n.first),ac(n=dc())&&(t._requestHandler=n.first),ac(n=dc())&&(t._requestVisitor=n.first))},decls:34,vars:10,consts:[[1,"popup-action-bar"],["mat-icon-button","","type","button","tabindex","-1",3,"click"],[1,"polyu-page-headline"],[1,"modal-body"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[3,"hidden"],[3,"icon","title"],[3,"approvalFlowChanged"],["requestInput",""],["requestInputFmotdp",""],["requestComments",""],[3,"changed"],["requestHandler",""],["requestVisitor",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"button",1),Ho("click",(function(){return t.closeModal()})),Io(2,"mat-icon"),_s(3,"close"),Eo(),Eo(),Eo(),Io(4,"h3",2),_s(5,"Details"),Eo(),Io(6,"div",3),Io(7,"div",4),Io(8,"div",5),Do(9,L$,2,0,"app-overlay",6),Io(10,"div",7),Io(11,"app-alert-box",8),_s(12),Eo(),Eo(),Io(13,"div",7),Io(14,"app-request-input",9,10),Ho("approvalFlowChanged",(function(e){return t.onApprovalFlowChanged(e)})),Eo(),Oo(16,"app-divider"),Io(17,"div",7),Oo(18,"app-request-input-fmotdp",null,11),Oo(20,"app-divider"),Eo(),Io(21,"div",7),Oo(22,"app-request-comments",null,12),Oo(24,"app-divider"),Eo(),Io(25,"app-request-handler",13,14),Ho("changed",(function(e){return t.onHandlerChanged(e)})),Eo(),Io(27,"div",7),Oo(28,"app-pics"),Oo(29,"app-divider"),Eo(),Io(30,"div",7),Oo(31,"app-request-visitor",null,15),Oo(33,"app-divider"),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(9),Ao("ngIf",t.isLoading),ma(1),Ao("hidden","actionDone"!==t.pageState),ma(1),Ao("icon",t.actionDoneIcon)("title",""),ma(1),gs(t.actionDoneMessage),ma(1),Ao("hidden","visible"!==t.pageState),ma(4),Ao("hidden",!t.showFmotdp),ma(4),Ao("hidden",!t.showComments),ma(6),Ao("hidden",!t.showPics),ma(3),Ao("hidden",!t.showVisitor))},directives:[bS,pT,Ed,EB,cN,TH,SB,SN,DB,OB,LV,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.popup-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.modal-body[_ngcontent-%COMP%]{overflow-y:auto!important;max-height:70vh;padding:0 10px}[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px;background-color:rgba(0,0,0,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,94.1%,.5)}"]}),I$),O$=["searchBar"],R$=["requestList"];function P$(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var Y$,F$=((Y$=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._cd=i,this._location=a,this._route=r,this._matDialog=o,this.isLoading=!1,this._query=null,this._role=this._route.snapshot.data.role,this._role||(this._role="user")}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new Kj(this._applicationService,this._cd),this._requestListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n&&(e._applicationService.currentUser.roles.indexOf("fmoadmin")>=0||e._applicationService.currentUser.roles.indexOf("deptadmin")>=0)?(e.loadData(),e._searchBarComponent.focus()):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"loadData",value:function(){null===this._query&&(this._query=new iS,this._query.offset=0,this._query.mode=this._role),this._requestListcomponent.setQueryCriteria(this._query),this._requestListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"search",value:function(){this._requestListcomponent.clear();var e=this._searchBarComponent.evalInput();this._query.keyword=e.trim(),this._query.offset=0,this._requestListcomponent.setQueryCriteria(this._query),this._requestListcomponent.refresh()}},{key:"showRequestDetails",value:function(e){if("N"===e.requestType){var t=new Mx;t.disableClose=!1,t.id="new-request-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(E$,t);n.afterOpened().subscribe((function(){n.componentInstance.resetRequest(e.requestId)}))}else if("R"===e.requestType){var i=new Mx;i.disableClose=!1,i.id="renew-request-modal-component",i.minHeight=Math.floor(.8*window.screen.height)+"px",i.width=Math.floor(.8*window.screen.width)+"px";var a=this._matDialog.open(D$,i);a.afterOpened().subscribe((function(){a.componentInstance.resetRequest(e.requestId)}))}}},{key:"showRequestHistory",value:function(e){if(e.dataId){var t=new Mx;t.disableClose=!1,t.id="renew-request-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(HU,t);n.afterOpened().subscribe((function(){n.componentInstance.setVisitor(e.dataId)}))}}}]),e}()).\u0275fac=function(e){return new(e||Y$)(Mo(_S),Mo(Bx),Mo(jr),Mo(ju),Mo(rk),Mo(Bx))},Y$.\u0275cmp=gt({type:Y$,selectors:[["app-ma-request-search-page"]],viewQuery:function(e,t){var n;1&e&&(rc(O$,!0),rc(R$,!0)),2&e&&(ac(n=dc())&&(t._searchBarComponent=n.first),ac(n=dc())&&(t._requestListcomponent=n.first))},decls:18,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-section-headline"],[3,"onSearchClicked"],["searchBar",""],[1,"search-hints"],[3,"showDetails","showHistory"],["requestList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Multiple Access Requests (FMO)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",1),Io(5,"div",2),Do(6,P$,2,0,"app-overlay",3),Io(7,"h3",4),_s(8,"Search requests."),Eo(),Io(9,"app-search-bar",5,6),Ho("onSearchClicked",(function(){return t.search()})),Eo(),Io(11,"h4",7),_s(12,"Example: Search by Access ID, Requester, Sponsor"),Eo(),Io(13,"app-request-details-search-table",8,9),Ho("showDetails",(function(e){return t.showRequestDetails(e)}))("showHistory",(function(e){return t.showRequestHistory(e)})),Eo(),Eo(),Eo(),Io(15,"div",10),Io(16,"button",11),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(6),Ao("ngIf",t.isLoading))},directives:[Ed,JK,w$,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.search-hints[_ngcontent-%COMP%]{color:grey}"]}),Y$),q$=["request"];function V$(e,t){}var H$,N$,B$=((N$=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._route=i,this._componentFactoryResolver=a,this._location=r,this.hideError=!0}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(n){n?e.routerSubscription=e._route.params.subscribe((function(t){if(t.requestId&&(e.requestId=Number(t.requestId)),e.requestId)e.loadRequest(e.requestId);else{var n=e._request.viewContainerRef;n&&n.clear(),e.hideError=!1}})):t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"loadRequest",value:function(e){var t=this;this._applicationService.getRequest(e).subscribe({next:function(e){t.showRequest(e)},error:function(e){var n=t._request.viewContainerRef;n&&n.clear(),t.hideError=!1}})}},{key:"showRequest",value:function(e){if("N"===e.requestType){var t=this._componentFactoryResolver.resolveComponentFactory(BB),n=this._request.viewContainerRef;n&&n.clear(),n.createComponent(t).instance.resetRequest(e.requestId)}else if("R"===e.requestType){var i=this._componentFactoryResolver.resolveComponentFactory(UU),a=this._request.viewContainerRef;a&&a.clear(),a.createComponent(i).instance.resetRequest(e.requestId)}}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||N$)(Mo(_S),Mo(Bx),Mo(rk),Mo(Bs),Mo(ju))},N$.\u0275cmp=gt({type:N$,selectors:[["app-ma-request-display-page"]],viewQuery:function(e,t){var n;1&e&&rc(q$,!0,zq),2&e&&ac(n=dc())&&(t._request=n.first)},decls:11,vars:1,consts:[["appCompHost",""],["request",""],[3,"hidden"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-section-headline"],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Do(0,V$,0,0,"ng-template",0,1,mc),Io(2,"div",2),Io(3,"div",3),Io(4,"mat-icon",4),_s(5,"error"),Eo(),Eo(),Io(6,"h3",5),_s(7,"Unable to get request."),Eo(),Eo(),Io(8,"div",6),Io(9,"button",7),Ho("click",(function(){return t.back()})),_s(10,"Back"),Eo(),Eo()),2&e&&(ma(2),Ao("hidden",t.hideError))},directives:[zq,pT,bS],styles:[""]}),N$),j$=((H$=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case"requester":return"Requester to approve";case"sponsor":return"Sponsor to approve";case"approval1":case"approval2":case"approval3":return"Approver to approve";case"fmohd":return"FMO Help Desk to endorse";case"fmocss":return"FMO Client Service to endorse";case"fmotdp":return"FMO TDP to process"}return e}}]),e}()).\u0275fac=function(e){return new(e||H$)},H$.\u0275pipe=Dt({name:"maRequestStagePipe",type:H$,pure:!0}),H$);function z$(e,t){1&e&&(Io(0,"th",19),_s(1," ID "),Eo())}function U$(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function W$(e,t){1&e&&(Io(0,"th",19),_s(1," Type "),Eo())}function G$(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"requestTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.requestType)," ")}}function Q$(e,t){1&e&&(Io(0,"th",19),_s(1," Sponsor "),Eo())}function K$(e,t){if(1&e&&(Io(0,"td",20),Oo(1,"app-people",21),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.sponsor)("displayField","displayName")}}function $$(e,t){1&e&&(Io(0,"th",19),_s(1," Visitor Name "),Eo())}function J$(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function X$(e,t){1&e&&(Io(0,"th",19),_s(1,"Access"),Oo(2,"br"),_s(3,"Departments"),Eo())}function Z$(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function eJ(e,t){1&e&&(Io(0,"th",19),_s(1,"Start Date"),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function tJ(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function nJ(e,t){1&e&&(Io(0,"th",19),_s(1,"End Date"),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function iJ(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function aJ(e,t){1&e&&(Io(0,"th",19),_s(1,"Pending for the"),Eo())}function rJ(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"maRequestStagePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.stage)," ")}}function oJ(e,t){1&e&&Oo(0,"th",19)}function sJ(e,t){if(1&e){var n=Fo();Io(0,"td",20),Io(1,"button",22),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),_s(2,"Details"),Eo(),Eo()}}function lJ(e,t){if(1&e){var n=Fo();Io(0,"th",19),Io(1,"mat-checkbox",23),Ho("change",(function(e){en(n);var t=Uo();return t.onGlobalCheckboxChanged(t.row,e.checked)})),Eo(),Eo()}if(2&e){var i=Uo();ma(1),Ao("checked",i.isGlobalChecked)}}function cJ(e,t){if(1&e){var n=Fo();Io(0,"td",20),Io(1,"mat-checkbox",23),Ho("change",(function(e){en(n);var i=t.$implicit;return Uo().onCheckboxChanged(i,e.checked)})),Eo(),Eo()}if(2&e){var i=t.$implicit,a=Uo();ma(1),Ao("checked",a.selectedItemIds.indexOf(i.requestId)>=0)}}function uJ(e,t){1&e&&Oo(0,"tr",24)}function dJ(e,t){if(1&e){var n=Fo();Io(0,"tr",25),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var hJ,fJ=function(){return[10,20,50]},pJ=function(e){return{"alert-message":e}},mJ=((hJ=function(){function e(){_classCallCheck(this,e),this._allRequestIds=[],this._data=[],this.displayedColumns=["requestId","type","sponsor","name","accessDepartment","accessStartDate","accessEndDate","stage","details","select"],this.maxSelected=50,this.selectedRow=null,this._dataSource=new OF([]),this.selected=new Gl,this.showDetails=new Gl,this.selectedItemIds=[],this.isGlobalChecked=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource.paginator=this.paginator}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e)}},{key:"addRequest",value:function(e){this._data.push(e),this._allRequestIds.push(e.requestId),this.dataSource.data=this._data}},{key:"addRequests",value:function(e){if(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._data.push(i),this._allRequestIds.push(i.requestId)}}catch(a){n.e(a)}finally{n.f()}this.dataSource.data=this._data}}},{key:"clear",value:function(){this._data=[],this._allRequestIds=[],this.selectedItemIds=[],this.dataSource.data=this._data,this.selectedRow=null,this.isGlobalChecked=!1}},{key:"removeRequest",value:function(){var e=this;this.selectedRow&&(this._data=this._data.filter((function(t,n,i){return e.selectedRow!==t})),this._dataSource.data=this._data,this._allRequestIds=this._data.map((function(e){return e.requestId})))}},{key:"updateRequest",value:function(e){if(this.selectedRow){var t=this._data.indexOf(this.selectedRow);t>=0&&(this._data[t]=e,this._dataSource.data=this._data),this._allRequestIds=this._data.map((function(e){return e.requestId}))}}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"evalInput",value:function(){return this._data}},{key:"setSelectedRequest",value:function(e){this.selectedRow=e}},{key:"getSelectedRequest",value:function(){return this.selectedRow}},{key:"getCount",value:function(){return this._dataSource.data?this._dataSource.data.length:0}},{key:"onCheckboxChanged",value:function(e,t){var n=this;if(t){this.selectedItemIds=this.selectedItemIds.concat(e.requestId);var i=this.paginator.pageSize*this.paginator.pageIndex,a=this._data.filter((function(e,t){return t>=i})).filter((function(e,t){return t<n.paginator.pageSize})).map((function(e){return e.requestId})).filter((function(e){return n.selectedItemIds.indexOf(e)<0}));this.isGlobalChecked=!!(a&&0===a.length&&this._allRequestIds.length>0)}else this.isGlobalChecked=!1,this.selectedItemIds=this.selectedItemIds.filter((function(t){return t!==e.requestId}))}},{key:"onGlobalCheckboxChanged",value:function(e,t){var n=this,i=this.paginator.pageSize*this.paginator.pageIndex,a=this._data.filter((function(e,t){return t>=i})).filter((function(e,t){return t<n.paginator.pageSize})).map((function(e){return e.requestId}));if(t!==this.isGlobalChecked&&a.length>0)if(t){this.isGlobalChecked=!0;var r=a.filter((function(e){return n.selectedItemIds.indexOf(e)<0}));this.selectedItemIds=this.selectedItemIds.concat(r)}else this.isGlobalChecked=!1,this.selectedItemIds=this.selectedItemIds.filter((function(e){return a.indexOf(e)<0}))}},{key:"getSelectedRequests",value:function(){return this.selectedItemIds}},{key:"clearSelectedRequests",value:function(){this.selectedItemIds=[]}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onPaginateChange",value:function(e){var t=this,n=this.paginator.pageSize*this.paginator.pageIndex,i=this._data.filter((function(e,t){return t>=n})).filter((function(e,n){return n<t.paginator.pageSize})).map((function(e){return e.requestId})),a=i.filter((function(e){return t.selectedItemIds.indexOf(e)>=0}));this.isGlobalChecked=i.length==a.length&&i.length>0}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||hJ)},hJ.\u0275cmp=gt({type:hJ,selectors:[["app-request-bulk-pending-request-store"]],viewQuery:function(e,t){var n;1&e&&rc(YP,!0),2&e&&ac(n=dc())&&(t.paginator=n.first)},inputs:{maxSelected:"maxSelected"},outputs:{selected:"selected",showDetails:"showDetails"},decls:39,vars:10,consts:[[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","sponsor"],["matColumnDef","name"],["matColumnDef","accessDepartment"],["matColumnDef","accessStartDate"],["matColumnDef","accessEndDate"],["matColumnDef","stage"],["matColumnDef","details"],["matColumnDef","select"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["hidePageSize","false","showFirstLastButtons","",3,"pageSizeOptions","page"],[1,"selected-hint"],[1,"selected-count",3,"ngClass"],["mat-header-cell",""],["mat-cell",""],[3,"netid","displayField"],["mat-raised-button","","onclick","this.blur()",3,"click"],["color","primary",3,"checked","change"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"table",1),Ro(2,2),Do(3,z$,2,0,"th",3),Do(4,U$,2,1,"td",4),Po(),Ro(5,5),Do(6,W$,2,0,"th",3),Do(7,G$,3,3,"td",4),Po(),Ro(8,6),Do(9,Q$,2,0,"th",3),Do(10,K$,2,2,"td",4),Po(),Ro(11,7),Do(12,$$,2,0,"th",3),Do(13,J$,2,1,"td",4),Po(),Ro(14,8),Do(15,X$,4,0,"th",3),Do(16,Z$,2,1,"td",4),Po(),Ro(17,9),Do(18,eJ,4,0,"th",3),Do(19,tJ,3,5,"td",4),Po(),Ro(20,10),Do(21,nJ,4,0,"th",3),Do(22,iJ,3,5,"td",4),Po(),Ro(23,11),Do(24,aJ,2,0,"th",3),Do(25,rJ,3,3,"td",4),Po(),Ro(26,12),Do(27,oJ,1,0,"th",3),Do(28,sJ,3,0,"td",4),Po(),Ro(29,13),Do(30,lJ,2,1,"th",3),Do(31,cJ,2,1,"td",4),Po(),Do(32,uJ,1,0,"tr",14),Do(33,dJ,1,2,"tr",15),Eo(),Io(34,"mat-paginator",16),Ho("page",(function(e){return t.onPaginateChange(e)})),Eo(),Io(35,"div",17),_s(36),Eo(),Io(37,"div",18),_s(38),Eo(),Eo()),2&e&&(ma(1),Ao("dataSource",t.dataSource),ma(31),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("pageSizeOptions",Ol(7,fJ)),ma(2),vs("Maximun no. of selected requests: ",t.maxSelected,""),ma(1),Ao("ngClass",Rl(8,pJ,t.selectedItemIds.length>t.maxSelected)),ma(1),vs("No. of selected requests: ",t.selectedItemIds.length,""))},directives:[pF,kF,vF,_F,DF,MF,YP,Td,wF,CF,iV,bS,gE,TF,LF],pipes:[sU,oh,j$],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-requestId[_ngcontent-%COMP%]{width:7%;padding:13px 5px!important}.mat-column-type[_ngcontent-%COMP%]{width:5%;padding:13px 5px!important}.mat-column-name[_ngcontent-%COMP%], .mat-column-sponsor[_ngcontent-%COMP%]{width:14%;padding:13px 5px!important}.mat-column-accessDepartment[_ngcontent-%COMP%]{width:10%;padding:13px 5px!important}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%]{width:13%;padding:13px 5px!important}.mat-column-stage[_ngcontent-%COMP%]{width:10%;padding:13px 5px!important}.mat-column-details[_ngcontent-%COMP%]{width:9%;padding:13px 5px!important}.mat-column-select[_ngcontent-%COMP%]{width:5%;padding:13px 5px!important}.request-details[_ngcontent-%COMP%]{overflow:hidden;display:flex}.button-right[_ngcontent-%COMP%]{float:right}tr.detail-row[_ngcontent-%COMP%]{height:0}.mat-column-expandedDetail[_ngcontent-%COMP%]{padding:0!important;border-bottom-width:0}.details-container[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid rgba(0,0,0,.12)}.details-container[_ngcontent-%COMP%]   .mat-cell[_ngcontent-%COMP%], .details-container[_ngcontent-%COMP%]   .mat-header-cell[_ngcontent-%COMP%]{border-bottom-width:0;width:50%}.selected-count[_ngcontent-%COMP%]{text-align:right;padding:0 8px 30px 0}.selected-hint[_ngcontent-%COMP%]{text-align:right;padding:0 8px 5px 0}.alert-message[_ngcontent-%COMP%]{color:red}"]}),hJ);function _J(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}function gJ(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length(256)."),Eo())}var vJ,yJ,kJ=((vJ=function(){function e(t){_classCallCheck(this,e),this._dialogRef=t,this.rejectReason=new Fg("",[N_.required,N_.maxLength(100)])}return _createClass(e,[{key:"confirm",value:function(){if(this.rejectReason.markAllAsTouched(),this.rejectReason.updateValueAndValidity(),"VALID"===this.rejectReason.status||"DISABLED"===this.rejectReason.status){var e=new bJ;e.confirmed=!0,e.reason=this.rejectReason.value,this._dialogRef.close(e)}}},{key:"cancel",value:function(){var e=new bJ;e.confirmed=!1,e.reason=null,this._dialogRef.close(e)}}]),e}()).\u0275fac=function(e){return new(e||vJ)(Mo(Fx))},vJ.\u0275cmp=gt({type:vJ,selectors:[["app-bulk-reject-dialog"]],decls:15,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","3","required","",3,"formControl"],["autosize","cdkTextareaAutosize"],[4,"ngIf"],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Reject Request"),Eo(),Io(2,"div",1),Io(3,"mat-form-field",2),Io(4,"mat-label"),_s(5,"Reject Reason"),Eo(),Oo(6,"textarea",3,4),Do(8,_J,2,0,"mat-error",5),Do(9,gJ,2,0,"mat-error",5),Eo(),Eo(),Io(10,"div",6),Io(11,"button",7),Ho("click",(function(){return t.cancel()})),_s(12,"No"),Eo(),Io(13,"button",7),Ho("click",(function(){return t.confirm()})),_s(14,"Yes"),Eo(),Eo()),2&e&&(ma(6),Ao("formControl",t.rejectReason),ma(2),Ao("ngIf",t.rejectReason.hasError("required")),ma(1),Ao("ngIf",t.rejectReason.hasError("maxlength")))},directives:[Ux,Wx,SI,gI,RE,TE,M_,Jg,P_,Wg,Ed,Gx,bS,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),vJ),bJ=function e(){_classCallCheck(this,e),this.confirmed=!1,this.reason=null},wJ=((yJ=function(){function e(t){_classCallCheck(this,e),this._dialogRef=t}return _createClass(e,[{key:"confirm",value:function(){this._dialogRef.close(!0)}},{key:"cancel",value:function(){this._dialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||yJ)(Mo(Fx))},yJ.\u0275cmp=gt({type:yJ,selectors:[["app-request-bulk-accept-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Approve Request"),Eo(),Io(2,"div",1),Io(3,"div"),_s(4,"Approve all selected request(s)?"),Eo(),Eo(),Io(5,"div",2),Io(6,"button",3),Ho("click",(function(){return t.cancel()})),_s(7,"No"),Eo(),Io(8,"button",3),Ho("click",(function(){return t.confirm()})),_s(9,"Yes"),Eo(),Eo())},directives:[Ux,Wx,Gx,bS],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),yJ),CJ=["keywordInput"];function DJ(e,t){if(1&e){var n=Fo();Io(0,"button",9),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",10),_s(2,"clear"),Eo(),Eo()}}var SJ,MJ=((SJ=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl,this.setVisibility(0)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setVisibility",value:function(e){this.isVisible={keyword:!0}}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:""}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:""}:{keyword:""})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearDate",value:function(e){e.stopPropagation(),this._form.setValue({keyword:this._form.get("keyword").value?this._form.get("keyword").value:""})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||SJ)(Mo(tv))},SJ.\u0275cmp=gt({type:SJ,selectors:[["app-request-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(CJ,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:14,vars:3,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Keyword"),Eo(),Oo(6,"input",4,5),Do(8,DJ,3,0,"button",6),Eo(),Eo(),Io(9,"div",7),Io(10,"button",8),_s(11,"Search"),Eo(),Eo(),Eo(),Io(12,"h5"),_s(13,"Search by Visitor Name, Sponsor, Request ID and Access Department."),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,bS,kI,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),SJ),xJ=["pendingRequestStore"],TJ=["searchBar"];function AJ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var LJ,IJ=((LJ=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._location=i,this._matDialog=a,this._snackBar=r,this.maxRequest=50,this.isLoading=!1,this.showDetails=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.multipleAccessBulkApprover)>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){var e=this;this.isLoading=!0;var t=e._searchBar.evalInput();this._applicationService.listRequest("handler",null,["sponsor","approval1","approval2","approval3","fmocss","fmohd"],t.keyword).pipe(Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){var n=t.filter((function(e){return"fmotdp"!==e.stage}));n=n.sort((function(e,t){return t.requestId-e.requestId})),e._pendingRequestStore.clear(),e._pendingRequestStore.addRequests(n)},error:function(t){e.isLoading=!1}})}},{key:"onSearch",value:function(){this.loadData()}},{key:"refresh",value:function(){this.loadData()}},{key:"onDetailsBtnClicked",value:function(e,t){this.showDetails.emit(t)}},{key:"onRequestSelected",value:function(e){this._pendingRequestStore.clearSelected()}},{key:"onDetailsClicked",value:function(e){if("N"===e.requestType){var t=new Mx;t.disableClose=!1,t.id="new-request-modal-component",t.width=Math.floor(.8*window.screen.width)+"px";var n=this._matDialog.open(E$,t);n.afterOpened().subscribe((function(){n.componentInstance.resetRequest(e.requestId)}))}else if("R"===e.requestType){var i=new Mx;i.disableClose=!1,i.id="renew-request-modal-component",i.minHeight=Math.floor(.8*window.screen.height)+"px",i.width=Math.floor(.8*window.screen.width)+"px";var a=this._matDialog.open(D$,i);a.afterOpened().subscribe((function(){a.componentInstance.resetRequest(e.requestId)}))}}},{key:"back",value:function(){this._location.back()}},{key:"approve",value:function(){if(!this.isLoading){var e=this._pendingRequestStore.getSelectedRequests();if(0!==e.length)if(e.length>this.maxRequest)this._snackBar.open("Exceed maximum number of requests per approval.",null,{duration:5e3});else{var t=this;this._dialog.open(wJ,{minHeight:"50%",minWidth:"50%"}).afterClosed().subscribe((function(n){n&&(t.isLoading=!0,t._applicationService.processRequests(e,"approve").subscribe({complete:function(){t.isLoading=!1,t._snackBar.open("Success.",null,{duration:4e3}),t.loadData()},error:function(){t.isLoading=!1,t._snackBar.open("System error.",null,{duration:4e3})}}))}))}else this._snackBar.open("No selected request.",null,{duration:4e3})}}},{key:"reject",value:function(){if(!this.isLoading){var e=this._pendingRequestStore.getSelectedRequests();if(0!==e.length){var t=this._dialog.open(kJ,{minHeight:"50%",minWidth:"50%"}),n=this;t.afterClosed().subscribe((function(t){if(t){var i=t;i.confirmed&&(n.isLoading=!0,console.log(e),console.log(i.reason),n._applicationService.rejectRequests(e,i.reason).subscribe({complete:function(){n.isLoading=!1,n._snackBar.open("Success.",null,{duration:4e3}),n.loadData()},error:function(){n.isLoading=!1,n._snackBar.open("System error.",null,{duration:4e3})}}))}}))}else this._snackBar.open("No selected request.",null,{duration:4e3})}}}]),e}()).\u0275fac=function(e){return new(e||LJ)(Mo(_S),Mo(Bx),Mo(ju),Mo(Bx),Mo(EY))},LJ.\u0275cmp=gt({type:LJ,selectors:[["app-ma-request-bulk-approve-page"]],viewQuery:function(e,t){var n;1&e&&(rc(xJ,!0),rc(TJ,!0)),2&e&&(ac(n=dc())&&(t._pendingRequestStore=n.first),ac(n=dc())&&(t._searchBar=n.first))},outputs:{showDetails:"showDetails"},decls:22,vars:2,consts:[[1,"polyu-page-headline"],[1,"polyu-input-container"],[4,"ngIf"],[3,"clicked"],["searchBar",""],[3,"maxSelected","selected","showDetails"],["pendingRequestStore",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Pending Multiple Access Requests"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div"),Io(5,"span"),Io(6,"strong"),_s(7,"Caution: Bulk approval is available to sponsors, endorsers/approvers, FMO Help Desk and FMO Client Service only. "),Eo(),Eo(),Eo(),Io(8,"div",1),Do(9,AJ,2,0,"app-overlay",2),Io(10,"app-request-search-bar",3,4),Ho("clicked",(function(){return t.onSearch()})),Eo(),Io(12,"app-request-bulk-pending-request-store",5,6),Ho("selected",(function(e){return t.onRequestSelected(e)}))("showDetails",(function(e){return t.onDetailsClicked(e)})),Eo(),Io(14,"div",7),Io(15,"button",8),Ho("click",(function(){return t.back()})),_s(16,"Back"),Eo(),Io(17,"div"),Io(18,"button",8),Ho("click",(function(){return t.reject()})),_s(19,"Reject"),Eo(),Io(20,"button",8),Ho("click",(function(){return t.approve()})),_s(21,"Approve / Endorse / Process"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(9),Ao("ngIf",t.isLoading),ma(3),Ao("maxSelected",t.maxRequest))},directives:[Ed,MJ,mJ,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.auxiliary-bar[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}"]}),LJ),EJ=["errorComponent"];function OJ(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,17),Eo())}function RJ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function PJ(e,t){1&e&&(Io(0,"th",18),_s(1," Request ID "),Eo())}function YJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestId," ")}}function FJ(e,t){1&e&&(Io(0,"th",18),_s(1," Instance ID "),Eo())}function qJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.instanceId," ")}}function VJ(e,t){1&e&&(Io(0,"th",18),_s(1," Request Type "),Eo())}function HJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"requestTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.requestType)," ")}}function NJ(e,t){1&e&&(Io(0,"th",18),_s(1," Requestor "),Eo())}function BJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.requester," ")}}function jJ(e,t){1&e&&(Io(0,"th",18),_s(1," Sponsor "),Eo())}function zJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.requestInput.sponsor," ")}}function UJ(e,t){1&e&&(Io(0,"th",18),_s(1," Stage "),Eo())}function WJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"requestStagePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.stage)," ")}}function GJ(e,t){1&e&&(Io(0,"th",18),_s(1," Access Start "),Eo())}function QJ(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.requestInput.accessStartDate,"dd-MM-yyyy","en-HK")," ")}}function KJ(e,t){1&e&&(Io(0,"th",18),_s(1," Access Start "),Eo())}function $J(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.requestInput.accessEndDate,"dd-MM-yyyy","en-HK")," ")}}function JJ(e,t){1&e&&Oo(0,"th",18)}function XJ(e,t){if(1&e){var n=Fo();Io(0,"td",19),Io(1,"button",20),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDeleteBtnClicked(e,i)})),_s(2,"Delete"),Eo(),Eo()}}function ZJ(e,t){1&e&&Oo(0,"tr",21)}function eX(e,t){if(1&e){var n=Fo();Io(0,"tr",22),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().setSelection(e)})),Eo()}}var tX,nX,iX=((nX=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["requestId","instanceId","requestType","requestor","sponsor","accessStart","accessEnd","delete"],this.delete=new Gl,this.onDataLoaded=new Gl,this.size=10}return _createClass(e,[{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("System Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setSize",value:function(e){this.size=e}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"setSelection",value:function(e){this.selectedRow=this.selectedRow===e?null:e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onDeleteBtnClicked",value:function(e,t){this.delete.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||nX)(Mo(jr))},nX.\u0275cmp=gt({type:nX,selectors:[["app-request-delete-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(EJ,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{delete:"delete",onDataLoaded:"onDataLoaded"},decls:36,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","requestId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","instanceId"],["matColumnDef","requestType"],["matColumnDef","requestor"],["matColumnDef","sponsor"],["matColumnDef","stage"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["onclick","this.blur()","mat-raised-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,OJ,3,0,"div",0),Io(1,"div"),Do(2,RJ,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,PJ,2,0,"th",4),Do(8,YJ,2,1,"td",5),Po(),Ro(9,6),Do(10,FJ,2,0,"th",4),Do(11,qJ,2,1,"td",5),Po(),Ro(12,7),Do(13,VJ,2,0,"th",4),Do(14,HJ,3,3,"td",5),Po(),Ro(15,8),Do(16,NJ,2,0,"th",4),Do(17,BJ,2,1,"td",5),Po(),Ro(18,9),Do(19,jJ,2,0,"th",4),Do(20,zJ,2,1,"td",5),Po(),Ro(21,10),Do(22,UJ,2,0,"th",4),Do(23,WJ,3,3,"td",5),Po(),Ro(24,11),Do(25,GJ,2,0,"th",4),Do(26,QJ,3,5,"td",5),Po(),Ro(27,12),Do(28,KJ,2,0,"th",4),Do(29,$J,3,5,"td",5),Po(),Ro(30,13),Do(31,JJ,1,0,"th",4),Do(32,XJ,3,0,"td",5),Po(),Do(33,ZJ,1,0,"tr",14),Do(34,eX,1,0,"tr",15),Eo(),Io(35,"mat-paginator",16),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(28),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",t.size))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,sU,lU,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.request-details[_ngcontent-%COMP%]{overflow:hidden;display:flex}tr.detail-row[_ngcontent-%COMP%]{height:0}.mat-column-expandedDetail[_ngcontent-%COMP%]{padding:0!important;border-bottom-width:0}.details-container[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid rgba(0,0,0,.12)}.details-container[_ngcontent-%COMP%]   .mat-cell[_ngcontent-%COMP%], .details-container[_ngcontent-%COMP%]   .mat-header-cell[_ngcontent-%COMP%]{border-bottom-width:0;width:50%}"]}),nX),aX=((tX=function(){function e(t){_classCallCheck(this,e),this._dialogRef=t}return _createClass(e,[{key:"confirm",value:function(){this._dialogRef.close(!0)}},{key:"cancel",value:function(){this._dialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||tX)(Mo(Fx))},tX.\u0275cmp=gt({type:tX,selectors:[["app-request-delete-confirm-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"polyu-workflow-action-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h1",0),_s(1,"Delete Request"),Eo(),Io(2,"div",1),Io(3,"div"),_s(4,"Confirm to delete request?"),Eo(),Eo(),Io(5,"div",2),Io(6,"button",3),Ho("click",(function(){return t.cancel()})),_s(7,"No"),Eo(),Io(8,"button",3),Ho("click",(function(){return t.confirm()})),_s(9,"Yes"),Eo(),Eo())},directives:[Ux,Wx,Gx,bS],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.polyu-workflow-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.polyu-workflow-action-bar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:auto 7px}"]}),tX),rX=["searchBar"],oX=["requestList"];function sX(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var lX,cX,uX,dX=((lX=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._cd=i,this._location=a,this._snackBar=r,this._route=o,this._matDialog=s,this.isLoading=!1,this._query=null,this._role=this._route.snapshot.data.role,this._role||(this._role="user")}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new Kj(this._applicationService,this._cd),this._requestListcomponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.multipleAccessSupport)>=0?(this.loadData(),this._searchBarComponent.focus()):e.open(nQ)}},{key:"loadData",value:function(){null===this._query&&(this._query=new iS,this._query.offset=0,this._query.mode=this._role),this._requestListcomponent.setQueryCriteria(this._query),this._requestListcomponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"search",value:function(){this._requestListcomponent.clear();var e=this._searchBarComponent.evalInput();this._query.keyword=e.trim(),this._requestListcomponent.setQueryCriteria(this._query),this._requestListcomponent.refresh()}},{key:"deleteRequest",value:function(e){if(e.requestId){var t=this,n=new Mx;n.disableClose=!1,n.id="delete-request-modal-component",n.width=Math.floor(.5*window.screen.width)+"px",n.width=Math.floor(.4*window.screen.width)+"px",this._matDialog.open(aX,n).afterClosed().subscribe((function(n){n&&t._applicationService.deleteRequest(e).subscribe({complete:function(){t.isLoading=!1,t._snackBar.open("Success.",null,{duration:4e3}),t.loadData()},error:function(){t.isLoading=!1,t._snackBar.open("System error.",null,{duration:4e3})}})}))}}}]),e}()).\u0275fac=function(e){return new(e||lX)(Mo(_S),Mo(Bx),Mo(jr),Mo(ju),Mo(EY),Mo(rk),Mo(Bx))},lX.\u0275cmp=gt({type:lX,selectors:[["app-ma-request-delete-page"]],viewQuery:function(e,t){var n;1&e&&(rc(rX,!0),rc(oX,!0)),2&e&&(ac(n=dc())&&(t._searchBarComponent=n.first),ac(n=dc())&&(t._requestListcomponent=n.first))},decls:19,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-block"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-section-headline"],[3,"onSearchClicked"],["searchBar",""],[1,"search-hints"],[3,"delete"],["requestList",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Delete Multiple Access Requests (ITS)"),Eo(),Io(2,"div",1),Io(3,"div",2),Do(4,sX,2,0,"app-overlay",3),Io(5,"h3"),Io(6,"strong"),_s(7,"Caution: You must ask VRS K2 team to delete K2 instances by presenting instance ids before deleting the records from VRS. Once the records are deleted, you are not able to recover deleted requests.This delete action will be logged by the system."),Eo(),Eo(),Io(8,"h3",4),_s(9,"Search requests."),Eo(),Io(10,"app-search-bar",5,6),Ho("onSearchClicked",(function(){return t.search()})),Eo(),Io(12,"h4",7),_s(13,"Example: Search by Access ID, Requester, Sponsor"),Eo(),Io(14,"app-request-delete-table",8,9),Ho("delete",(function(e){return t.deleteRequest(e)})),Eo(),Eo(),Eo(),Io(16,"div",10),Io(17,"button",11),Ho("click",(function(){return t.back()})),_s(18,"Back"),Eo(),Eo()),2&e&&(ma(4),Ao("ngIf",t.isLoading))},directives:[Ed,JK,iX,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.search-hints[_ngcontent-%COMP%]{color:grey}"]}),lX),hX=function e(){_classCallCheck(this,e),this.dataList=[]},fX=function e(){_classCallCheck(this,e),this.configId=null},pX=function e(){_classCallCheck(this,e),this.startDate=null,this.endDate=null,this.offset=null,this.row=null},mX=((uX=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case"P":return"Processing";case"C":return"Cancelled";case"R":return"Rejected";case"A":return"Approved";case"H":return"Pending";case"E":return"Expired"}return e}}]),e}()).\u0275fac=function(e){return new(e||uX)},uX.\u0275pipe=Dt({name:"gaRequestStagePipe",type:uX,pure:!0}),uX),_X=((cX=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){for(var n=fS,i=0;i<n.length;i++)if(n[i].locationCode===e)return n[i].locationName;return e}}]),e}()).\u0275fac=function(e){return new(e||cX)},cX.\u0275pipe=Dt({name:"locationPipe",type:cX,pure:!0}),cX),gX=["justificationInput"];function vX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (256). "),Eo())}function yX(e,t){if(1&e&&(Io(0,"mat-option",24),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.locationName),ma(1),gs(n.locationName)}}function kX(e,t){if(1&e&&(Io(0,"mat-select",22),Do(1,yX,2,2,"mat-option",23),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.accessLocation),ma(1),Ao("ngForOf",n.locationList)}}function bX(e,t){if(1&e&&(Oo(0,"input",25),Nl(1,"locationPipe")),2&e){var n=Uo();Ao("value",Bl(1,2,n.form.get("accessLocation").value))("readonly",n.isReadonly.accessLocation)}}function wX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Contains blocked period."),Eo())}function CX(e,t){if(1&e&&(Io(0,"mat-form-field",3),Io(1,"mat-label"),_s(2,"Visit Start Date (dd-mm-yyyy)"),Eo(),Oo(3,"input",26),Oo(4,"mat-datepicker-toggle",27),Oo(5,"mat-datepicker",null,28),Do(7,wX,2,0,"mat-error",6),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.accessDate)("min",i.accessStartDateMin)("max",i.accessStartDateMax)("matDatepickerFilter",i.dateFilter)("readonly",!0),ma(1),Ao("for",n),ma(3),Ao("ngIf",i.form.controls.accessDate.hasError("blackoutConstraints"))}}function DX(e,t){if(1&e&&(Io(0,"mat-form-field",3),Io(1,"mat-label"),_s(2,"Visit Start Date (dd-mm-yyyy)"),Eo(),Oo(3,"input",29),Eo()),2&e){var n=Uo();ma(3),Ao("matDatepicker",n.picker1)("formControl",n.form.controls.accessDate)("readonly",!0)}}function SX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Contains blocked period."),Eo())}function MX(e,t){if(1&e&&(Io(0,"mat-form-field",3),Io(1,"mat-label"),_s(2,"Visit End Date (dd-mm-yyyy)"),Eo(),Oo(3,"input",26),Oo(4,"mat-datepicker-toggle",27),Oo(5,"mat-datepicker",null,30),Do(7,SX,2,0,"mat-error",6),Eo()),2&e){var n=So(6),i=Uo();ma(3),Ao("matDatepicker",n)("formControl",i.form.controls.exitDate)("min",i.accessEndDateMin)("max",i.accessEndDateMax)("matDatepickerFilter",i.dateFilter)("readonly",!0),ma(1),Ao("for",n),ma(3),Ao("ngIf",i.form.controls.exitDate.hasError("blackoutConstraints"))}}function xX(e,t){if(1&e&&(Io(0,"mat-form-field",3),Io(1,"mat-label"),_s(2,"Visit End Date (dd-mm-yyyy)"),Eo(),Oo(3,"input",29),Eo()),2&e){var n=Uo();ma(3),Ao("matDatepicker",n.picker2)("formControl",n.form.controls.exitDate)("readonly",!0)}}function TX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (50). "),Eo())}function AX(e,t){if(1&e&&(Io(0,"mat-option",24),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function LX(e,t){if(1&e&&(Io(0,"mat-select",22),Do(1,AX,2,2,"mat-option",23),Eo()),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment),ma(1),Ao("ngForOf",n.departmentList)}}function IX(e,t){if(1&e&&Oo(0,"input",18),2&e){var n=Uo();Ao("formControl",n.form.controls.sponsorDepartment)("readonly",n.isReadonly.sponsorDepartment)}}var EX,OX=((EX=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._cd=i,this.dateFilter=function(e){return!(a._blackoutPeriod&&a._blackoutPeriod.length>0&&a._blackoutPeriod.find((function(t){var n=new Date(t.startDate),i=new Date(t.endDate),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()),r=new Date(i.getFullYear(),i.getMonth(),i.getDate());return a.getTime()<=e.getTime()&&e.getTime()<=r.getTime()})))},this.period=4,this.BlackoutDateValidator=function(e){if(a._form){if(!e)return null;var t=qV(new Date(e.value));if(!a._blackoutPeriod||!t)return null;if(!a._form.get("accessDate").value)return null;var n,i=new Date(a._form.get("accessDate").value),r=_createForOfIteratorHelper(a._blackoutPeriod);try{for(r.s();!(n=r.n()).done;){var o=n.value,s=qV(new Date(o.startDate)),l=qV(new Date(o.endDate));if(s.getTime()<=t.getTime()&&t.getTime()<=l.getTime())return{blackoutConstraints:!0};if(s.getTime()<=i.getTime()&&i.getTime()<=l.getTime())return{blackoutConstraints:!0};if(i.getTime()<=s.getTime()&&s.getTime()<=t.getTime())return{blackoutConstraints:!0};if(i.getTime()<=l.getTime()&&l.getTime()<=t.getTime())return{blackoutConstraints:!0}}}catch(c){r.e(c)}finally{r.f()}}},this._form=this._generateDataForm(this._formBuilder),this._blackoutPeriod=[],this.isStartDateEditable=!0,this._startDayOffset=0,this.statusList=[],this.statusList=this.statusList.concat("A"),this.statusList=this.statusList.concat("P"),this.statusList=this.statusList.concat("R");var r=new Date;r.setHours(0,0,0,0),r.setDate(r.getDate()),r.setDate(r.getDate()+0),this._startDayOffset=0,this._shortVisigintRequest=new QD,this._shortVisigintRequest.accessDate=dd(r,"yyyy-MM-dd","en-HK"),this._shortVisigintRequest.exitDate=dd(r,"yyyy-MM-dd","en-HK"),this.departmentList=[],this.locationList=[],this.isReadonly={},this.isVisible={},this.setRequest(this._shortVisigintRequest)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.departmentList=this._applicationService.departments,this._applicationService.getLocations().subscribe((function(t){e.locationList=t}),(function(e){})),this._form.get("accessDate").valueChanges.subscribe({next:function(t){e.accessEndDateMin=new Date(e._form.get("accessDate").value),e.accessEndDateMax=new Date(e.accessEndDateMin),e.accessEndDateMax.setDate(e.accessEndDateMax.getDate()+e.period),e._form.controls.exitDate.markAsTouched()}}),this._form.get("exitDate").valueChanges.subscribe({next:function(t){e._form.controls.accessDate.markAsTouched()}}),this._shortVisigintRequest.sponsorDepartment=this._applicationService.currentUserDetails.department,this._shortVisigintRequest.sponsorName=this._applicationService.currentUserDetails.polyuFullName,this._shortVisigintRequest.sponsorEmail=this._applicationService.currentUser.email,this._shortVisigintRequest.sponsorPhone=this._applicationService.currentUser.officePhone,this._shortVisigintRequest.sponsorNetID=this._applicationService.currentUser.netid,this.setRequest(this._shortVisigintRequest)}},{key:"setStartDayOffset",value:function(e){this._startDayOffset=e}},{key:"setRequest",value:function(e){if(this._shortVisigintRequest=e,this._form.setValue({requestId:e.requestId?e.requestId:"",accessDate:e.accessDate?dd(e.accessDate,"yyyy-MM-dd","en-HK"):"",exitDate:e.exitDate?dd(e.exitDate,"yyyy-MM-dd","en-HK"):"",purposeOfVisit:e.purposeOfVisit?e.purposeOfVisit:"",accessLocation:e.accessLocation?e.accessLocation:"",sponsorDepartment:e.sponsorDepartment?e.sponsorDepartment:"",sponsorName:e.sponsorName?e.sponsorName:"",sponsorPhone:e.sponsorPhone?e.sponsorPhone:"",sponsorEmail:e.sponsorEmail?e.sponsorEmail:"",sponsorNetID:e.sponsorNetID?e.sponsorNetID:"",createdAt:e.createdAt?e.createdAt:dd(new Date,"yyyy-MM-dd","en-HK"),createdBy:e.createdBy?e.createdBy:this._applicationService.currentUser.netid,updatedAt:e.updatedAt?e.updatedAt:dd(new Date,"yyyy-MM-dd","en-HK"),updatedBy:e.updatedBy?e.updatedBy:this._applicationService.currentUser.netid,version:e.version?e.version:0,status:e.status?e.status:"P",approver:e.approver?e.approver:"",remark:e.remark?e.remark:""}),this._shortVisigintRequest&&this._shortVisigintRequest.requestId){var t=new Date;t.setDate(t.getDate()),t.setHours(0,0,0,0);var n=new Date(this._shortVisigintRequest.accessDate);n.setHours(0,0,0,0),n.getTime()>t.getTime()?(this.accessStartDateMin=new Date(t),this.accessStartDateMin.setDate(this.accessStartDateMin.getDate()+this._startDayOffset),this.isStartDateEditable=!0):(this.accessStartDateMin=new Date(this._shortVisigintRequest.accessDate),this.isStartDateEditable=!1),this.accessStartDateMax=new Date(this.accessStartDateMin),this.accessStartDateMax.setFullYear(this.accessStartDateMax.getFullYear()+1),this.accessEndDateMin=new Date(n),this.accessEndDateMax=new Date(this.accessEndDateMin),this.accessEndDateMax.setDate(this.accessEndDateMax.getDate()+this.period)}else{this.isStartDateEditable=!0;var i=new Date;i.setFullYear(i.getFullYear()+1),this.accessStartDateMin=new Date,this.accessStartDateMin.setDate(this.accessStartDateMin.getDate()+this._startDayOffset),this.accessStartDateMax=i,this.accessEndDateMin=new Date(this.accessStartDateMin),this.accessEndDateMax=new Date(this.accessEndDateMin),this.accessEndDateMax.setDate(this.accessEndDateMax.getDate()+this.period)}this._form.get("accessDate").value&&this._form.get("accessDate").updateValueAndValidity(),this._form.get("exitDate").value&&this._form.get("exitDate").updateValueAndValidity()}},{key:"setFormEditable",value:function(e){this.isReadonly={requestId:!0,accessDate:e<1,exitDate:e<1,timeOfVisit:e<1,purposeOfVisit:e<1,accessLocation:e<1,sponsorDepartment:e<2,sponsorName:e<2,sponsorPhone:e<1,sponsorEmail:e<2,sponsorDepartmentRegistrationSubmitter:e<2,checkin:e<2,checkout:e<2,checkinNotification:e<2,checkoutNotification:e<2,reminderSent:e<2,sponsorNetID:!0},this._cd.detectChanges()}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"touch",value:function(e){this._form.controls[e].markAsTouched()}},{key:"evalInput",value:function(){return{requestId:this._form.get("requestId").value?this._form.get("requestId").value:null,accessDate:this._form.get("accessDate").value?dd(this._form.get("accessDate").value,"yyyy-MM-dd","en-HK"):null,exitDate:this._form.get("exitDate").value?dd(this._form.get("exitDate").value,"yyyy-MM-dd","en-HK"):null,purposeOfVisit:this._form.get("purposeOfVisit").value?this._form.get("purposeOfVisit").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,accessLocation:this._form.get("accessLocation").value,sponsorDepartment:this._form.get("sponsorDepartment").value,sponsorName:this._form.get("sponsorName").value,sponsorPhone:this._form.get("sponsorPhone").value,sponsorEmail:this._form.get("sponsorEmail").value,sponsorNetID:this._form.get("sponsorNetID").value,visitors:null,createdAt:this._form.get("createdAt").value?this._form.get("createdAt").value:dd(new Date,"yyyy-MM-dd","en-HK"),createdBy:this._form.get("createdBy").value?this._form.get("createdBy").value:this._applicationService.currentUser.netid,updatedAt:this._form.get("updatedAt").value?this._form.get("updatedAt").value:dd(new Date,"yyyy-MM-dd","en-HK"),updatedBy:this._form.get("updatedBy").value?this._form.get("updatedBy").value:this._applicationService.currentUser.netid,version:this._form.get("version").value?this._form.get("version").value:0,status:this._form.get("status").value?this._form.get("status").value:"P",approver:this._form.get("approver").value?this._form.get("approver").value:null,remark:this._form.get("remark").value?this._form.get("remark").value:null,visitorCount:null}}},{key:"_generateDataForm",value:function(e){return e.group({requestId:[""],accessDate:["",[N_.required]],exitDate:["",[N_.required,this.BlackoutDateValidator]],purposeOfVisit:["",[N_.required,N_.maxLength(256)]],accessLocation:["",N_.required],sponsorDepartment:["",N_.required],sponsorName:["",N_.required],sponsorPhone:["",[N_.required,N_.maxLength(50)]],sponsorEmail:["",[N_.required,N_.email]],sponsorNetID:["",N_.required],createdAt:[""],createdBy:[""],updatedAt:[""],updatedBy:[""],version:[""],status:[""],approver:[""],remark:[""]})}},{key:"isTouched",value:function(){if(this._shortVisigintRequest){var e=this.evalInput(),t=new Date(this._shortVisigintRequest.accessDate);t.setHours(0,0,0,0);var n=new Date(this._shortVisigintRequest.exitDate);n.setHours(0,0,0,0);var i=new Date(e.accessDate);i.setHours(0,0,0,0);var a=new Date(e.exitDate);return a.setHours(0,0,0,0),t.getTime()!==i.getTime()||n.getTime()!==a.getTime()||this._shortVisigintRequest.accessLocation!==e.accessLocation||this._shortVisigintRequest.purposeOfVisit!==e.purposeOfVisit||this._shortVisigintRequest.sponsorDepartment!==e.sponsorDepartment||this._shortVisigintRequest.sponsorEmail!==e.sponsorEmail||this._shortVisigintRequest.sponsorName!==e.sponsorName||this._shortVisigintRequest.sponsorNetID!==e.sponsorNetID||this._shortVisigintRequest.sponsorPhone!==e.sponsorPhone}return null!==this._shortVisigintRequest.accessDate||null!==this._shortVisigintRequest.exitDate||null!==this._shortVisigintRequest.accessLocation||null!==this._shortVisigintRequest.purposeOfVisit||null!==this._shortVisigintRequest.sponsorDepartment||null!==this._shortVisigintRequest.sponsorEmail||null!==this._shortVisigintRequest.sponsorName||null!==this._shortVisigintRequest.sponsorNetID||null!==this._shortVisigintRequest.sponsorPhone}},{key:"focus",value:function(){this._inputBox.nativeElement.focus()}},{key:"setBlackoutPeriods",value:function(e){this._blackoutPeriod=e,this._form.get("accessDate").value&&this._form.get("accessDate").updateValueAndValidity(),this._form.get("exitDate").value&&this._form.get("exitDate").updateValueAndValidity()}},{key:"form",get:function(){return this._form}},{key:"startDayOffset",get:function(){return this._startDayOffset}}]),e}()).\u0275fac=function(e){return new(e||EX)(Mo(_S),Mo(tv),Mo(jr))},EX.\u0275cmp=gt({type:EX,selectors:[["app-ga-request-input"]],viewQuery:function(e,t){var n;1&e&&rc(gX,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:63,vars:25,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-9"],["appearance","standard"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","required","",3,"formControl","readonly"],["autosize","cdkTextareaAutosize","justificationInput",""],[4,"ngIf"],[1,"polyu-grid-cell-3"],["matInput","",3,"value","readonly"],[1,"polyu-grid-cell-6","no-top-padding"],[3,"ngIf","ngIfElse"],["visitingVenueRO",""],[1,"polyu-grid-cell-3","no-top-padding"],["accessDateRO",""],["exitDateRO",""],[1,"polyu-grid-cell-6","grid-column-start"],["matInput","",3,"formControl","readonly"],[1,"polyu-grid-cell-6"],["matInput","","required","",3,"formControl","readonly"],[1,"polyu-grid-cell-4","grid-column-start"],[1,"polyu-grid-cell-4"],["sponsorDepartmentRO",""],["required","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","required","",3,"value","readonly"],["matInput","","required","",3,"matDatepicker","formControl","min","max","matDatepickerFilter","readonly"],["matSuffix","",3,"for"],["picker1",""],["matInput","","required","",3,"matDatepicker","formControl","readonly"],["picker2",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Purpose of Visit"),Eo(),Oo(6,"textarea",4,5),Do(9,vX,2,0,"mat-error",6),Eo(),Eo(),Io(10,"div",7),Io(11,"mat-form-field",3),Io(12,"mat-label"),_s(13,"Status"),Eo(),Oo(14,"input",8),Nl(15,"gaRequestStagePipe"),Eo(),Eo(),Io(16,"div",9),Io(17,"mat-form-field",3),Io(18,"mat-label"),_s(19,"Venue to Visit"),Eo(),Do(20,kX,2,2,"ng-template",10),Do(21,bX,2,4,"ng-template",null,11,mc),Eo(),Eo(),Io(23,"div",12),Io(24,"div"),Do(25,CX,8,8,"ng-template",10),Do(26,DX,4,3,"ng-template",null,13,mc),Eo(),Eo(),Io(28,"div",12),Io(29,"div"),Do(30,MX,8,8,"ng-template",10),Do(31,xX,4,3,"ng-template",null,14,mc),Eo(),Eo(),Eo(),Oo(33,"app-divider"),Io(34,"div",1),Io(35,"div",15),Io(36,"mat-form-field",3),Io(37,"mat-label"),_s(38,"Requester NetID"),Eo(),Oo(39,"input",16),Eo(),Eo(),Io(40,"div",17),Io(41,"mat-form-field",3),Io(42,"mat-label"),_s(43,"Requester Name"),Eo(),Oo(44,"input",18),Eo(),Eo(),Io(45,"div",19),Io(46,"mat-form-field",3),Io(47,"mat-label"),_s(48,"Requester Contact Number"),Eo(),Oo(49,"input",18),Do(50,TX,2,0,"mat-error",6),Eo(),Eo(),Io(51,"div",20),Io(52,"mat-form-field",3),Io(53,"mat-label"),_s(54,"Requester Email"),Eo(),Oo(55,"input",18),Eo(),Eo(),Io(56,"div",20),Io(57,"mat-form-field",3),Io(58,"mat-label"),_s(59,"Requester Department"),Eo(),Do(60,LX,2,2,"ng-template",10),Do(61,IX,1,2,"ng-template",null,21,mc),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(22),i=So(27),a=So(32),r=So(62);Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.purposeOfVisit)("readonly",t.isReadonly.purposeOfVisit),ma(3),Ao("ngIf",t.form.controls.purposeOfVisit.hasError("maxlength")),ma(5),Ao("value",Bl(15,23,t.form.get("status").value))("readonly",!0),ma(6),Ao("ngIf",!t.isReadonly.accessLocation)("ngIfElse",n),ma(5),Ao("ngIf",!t.isReadonly.accessDate&&t.isStartDateEditable)("ngIfElse",i),ma(5),Ao("ngIf",!t.isReadonly.exitDate)("ngIfElse",a),ma(9),Ao("formControl",t.form.controls.sponsorNetID)("readonly",t.isReadonly.sponsorNetID),ma(5),Ao("formControl",t.form.controls.sponsorName)("readonly",t.isReadonly.sponsorName),ma(5),Ao("formControl",t.form.controls.sponsorPhone)("readonly",t.isReadonly.sponsorPhone),ma(1),Ao("ngIf",t.form.controls.sponsorPhone.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.sponsorEmail)("readonly",t.isReadonly.sponsorEmail),ma(5),Ao("ngIf",!t.isReadonly.sponsorDepartment)("ngIfElse",r)}},directives:[jg,Y_,Qg,SI,gI,RE,TE,M_,Jg,P_,Wg,Ed,TH,aI,lP,Ld,CD,YO,qO,kI,EO],pipes:[mX,_X],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}"]}),EX);function RX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (20). "),Eo())}function PX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (20). "),Eo())}function YX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (256). "),Eo())}function FX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (50). "),Eo())}function qX(e,t){1&e&&(Io(0,"mat-error"),_s(1," Please enter a valid email address. "),Eo())}function VX(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (256). "),Eo())}function HX(e,t){if(1&e&&(Io(0,"div",7),Io(1,"mat-form-field",4),Io(2,"mat-label"),_s(3,"Access Code"),Eo(),Oo(4,"input",9),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.accesscode)("readonly",n.isReadonly.accesscode)}}function NX(e,t){if(1&e&&(Io(0,"div",8),Io(1,"mat-form-field",4),Io(2,"mat-label"),_s(3,"Access ID"),Eo(),Oo(4,"input",9),Eo(),Eo()),2&e){var n=Uo();ma(4),Ao("formControl",n.form.controls.cardNo)("readonly",n.isReadonly.cardNo)}}var BX,jX=((BX=function(){function e(t,n){_classCallCheck(this,e),this._formBuilder=t,this._applicationService=n,this.onVisitorUpdated=new Gl,this._form=this._generateDataForm(this._formBuilder),this.setVisitor(new KD),this.isCardIDEditable=!0,this.isVisible={},this.setFormEditable(0)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setVisitor",value:function(e){this._form.setValue({visitorId:e.visitorId,requestId:e.requestId,lastName:e.lastName,firstName:e.firstName,mobile:e.mobile,email:e.email,accesscode:e.accesscode,organization:e.organization,cardNo:e.cardNo,visitingStatus:e.visitingStatus,checkin:e.checkin,checkout:e.checkout,checkinNotification:e.checkinNotification,checkoutNotification:e.checkoutNotification,reminderSent:e.reminderSent,updatedAt:e.updatedAt,updatedBy:e.updatedBy,createdAt:e.createdAt,createdBy:e.createdBy,version:e.version,cardReturned:e.cardReturned}),this._oldFormValue=this.evalInput()}},{key:"createOrUpdateVisitor",value:function(e){this.onVisitorUpdated.emit(e)}},{key:"setFormEditable",value:function(e){this.isReadonly={visitorId:!1,lastName:e<1,firstName:e<1,mobile:e<1,email:e<1,accesscode:!0,organization:e<1,cardNo:!1,visitingStatus:!1,checkin:!1,checkout:!1,checkinNotification:!1,checkoutNotification:!1,reminderSent:!1,updatedAt:!1,updatedBy:!1,createdAt:!1,createdBy:!1,version:!1,cardReturned:!1}}},{key:"setFormVisibility",value:function(e){this.isVisible={visitorId:!1,lastName:!0,firstName:!0,mobile:!0,email:!0,accesscode:e>=2,organization:!0,cardNo:!1,visitingStatus:!1,checkin:!1,checkout:!1,checkinNotification:!1,checkoutNotification:!1,reminderSent:!1,updatedAt:!1,updatedBy:!1,createdAt:!1,createdBy:!1,version:!1,cardReturned:!1}}},{key:"setValidationLevel",value:function(e){this._form.get("firstName").clearValidators(),this._form.get("email").clearValidators(),1===e&&(this._form.get("firstName").setValidators(N_.required),this._form.get("email").setValidators([N_.required,N_.email])),this.form.get("firstName").updateValueAndValidity(),this.form.get("email").updateValueAndValidity()}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){return{visitorId:this._form.get("visitorId").value?this._form.get("visitorId").value:null,requestId:this._form.get("requestId").value?this._form.get("requestId").value:null,lastName:this._form.get("lastName").value?this._form.get("lastName").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,firstName:this._form.get("firstName").value?this._form.get("firstName").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,mobile:this._form.get("mobile").value?this._form.get("mobile").value:"",email:this._form.get("email").value?this._form.get("email").value:null,accesscode:this._form.get("accesscode").value?this._form.get("accesscode").value:null,organization:this._form.get("organization").value?this._form.get("organization").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):"",cardNo:this._form.get("cardNo").value?this._form.get("cardNo").value:null,visitingStatus:this._form.get("visitingStatus").value?this._form.get("visitingStatus").value:null,checkin:null!==this._form.get("checkin").value?this._form.get("checkin").value:null,checkout:null!==this._form.get("checkout").value?this._form.get("checkout").value:null,checkinNotification:this._form.get("checkinNotification").value?this._form.get("checkinNotification").value:null,checkoutNotification:this._form.get("checkoutNotification").value?this._form.get("checkoutNotification").value:null,reminderSent:null!==this._form.get("reminderSent").value?this._form.get("reminderSent").value:null,updatedAt:this._form.get("updatedAt").value?this._form.get("updatedAt").value:dd(new Date,"yyyy-MM-dd","en-HK"),updatedBy:this._form.get("updatedBy").value?this._form.get("updatedBy").value:this._applicationService.currentUser.netid,createdAt:this._form.get("createdAt").value?this._form.get("createdAt").value:dd(new Date,"yyyy-MM-dd","en-HK"),createdBy:this._form.get("createdBy").value?this._form.get("createdBy").value:this._applicationService.currentUser.netid,version:this._form.get("version").value?this._form.get("version").value:null,cardReturned:null!==this._form.get("cardReturned").value?this._form.get("cardReturned").value:null}}},{key:"_generateDataForm",value:function(e){return e.group({visitorId:new Fg(""),requestId:new Fg(""),lastName:new Fg("",[N_.required,N_.maxLength(30)]),firstName:new Fg("",[N_.required,N_.maxLength(30)]),mobile:new Fg("",N_.maxLength(50)),email:new Fg("",[N_.required,N_.email,N_.maxLength(256)]),accesscode:new Fg(""),organization:new Fg("",[N_.required,N_.maxLength(256)]),cardNo:new Fg(""),visitingStatus:new Fg(""),checkin:new Fg(""),checkout:new Fg(""),checkinNotification:new Fg(""),checkoutNotification:new Fg(""),reminderSent:new Fg(""),updatedAt:new Fg(""),updatedBy:new Fg(""),createdAt:new Fg(""),createdBy:new Fg(""),version:new Fg(""),cardReturned:new Fg("")})}},{key:"clear",value:function(){this._form=this._generateDataForm(this._formBuilder),this._form.setValue({visitorId:null,requestId:null,lastName:null,firstName:null,mobile:null,email:null,accesscode:null,organization:null,cardNo:null,visitingStatus:null,checkin:null,checkout:null,checkinNotification:null,checkoutNotification:null,reminderSent:null,updatedAt:null,updatedBy:null,createdAt:null,createdBy:null,version:null,cardReturned:null}),this._oldFormValue=this.evalInput()}},{key:"isTouched",value:function(){var e=this.evalInput();return this._oldFormValue?e.cardNo!==this._oldFormValue.cardNo||e.email!==this._oldFormValue.email||e.mobile!==this._oldFormValue.mobile||e.firstName!==this._oldFormValue.firstName||e.lastName!==this._oldFormValue.lastName||e.visitorId!==this._oldFormValue.visitorId||e.accesscode!==this._oldFormValue.accesscode||e.organization!==this._oldFormValue.organization||e.visitorId!==this._oldFormValue.visitorId:null!==e.cardNo||null!==e.email||null!==e.mobile||null!==e.firstName||null!==e.lastName||null!==e.visitorId||null!==e.accesscode||null!==e.organization||null!==e.visitorId}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||BX)(Mo(tv),Mo(_S))},BX.\u0275cmp=gt({type:BX,selectors:[["app-ga-visitor-input"]],outputs:{onVisitorUpdated:"onVisitorUpdated"},decls:38,vars:19,consts:[[3,"formGroup"],[1,"polyu-grid-container","grid-column-start"],[1,"polyu-grid-cell-12"],[1,"polyu-grid-cell-4"],["appearance","standard"],["matInput","","required","",3,"formControl","readonly"],[4,"ngIf"],[1,"polyu-grid-cell-2"],[1,"polyu-grid-cell-6"],["matInput","",3,"formControl","readonly"],["matInput","","type","email","required","",3,"formControl","readonly"],[3,"ngIf"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"h3"),_s(4,"Visitor"),Eo(),Eo(),Io(5,"div",3),Io(6,"mat-form-field",4),Io(7,"mat-label"),_s(8,"Given Name"),Eo(),Oo(9,"input",5),Do(10,RX,2,0,"mat-error",6),Eo(),Eo(),Io(11,"div",7),Io(12,"mat-form-field",4),Io(13,"mat-label"),_s(14,"Surname"),Eo(),Oo(15,"input",5),Do(16,PX,2,0,"mat-error",6),Eo(),Eo(),Io(17,"div",8),Io(18,"mat-form-field",4),Io(19,"mat-label"),_s(20,"Organization / Institution"),Eo(),Oo(21,"input",5),Do(22,YX,2,0,"mat-error",6),Eo(),Eo(),Io(23,"div",3),Io(24,"mat-form-field",4),Io(25,"mat-label"),_s(26,"Contact Number"),Eo(),Oo(27,"input",9),Do(28,FX,2,0,"mat-error",6),Eo(),Eo(),Io(29,"div",8),Io(30,"mat-form-field",4),Io(31,"mat-label"),_s(32,"Email"),Eo(),Oo(33,"input",10),Do(34,qX,2,0,"mat-error",6),Do(35,VX,2,0,"mat-error",6),Eo(),Eo(),Do(36,HX,5,2,"ng-template",11),Do(37,NX,5,2,"ng-template",11),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(9),Ao("formControl",t.form.controls.firstName)("readonly",t.isReadonly.firstName),ma(1),Ao("ngIf",t.form.controls.firstName.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.lastName)("readonly",t.isReadonly.lastName),ma(1),Ao("ngIf",t.form.controls.lastName.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.organization)("readonly",t.isReadonly.organization),ma(1),Ao("ngIf",t.form.controls.organization.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.mobile)("readonly",t.isReadonly.mobile),ma(1),Ao("ngIf",t.form.controls.mobile.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.email)("readonly",t.isReadonly.email),ma(1),Ao("ngIf",t.form.controls.email.hasError("required")||t.form.controls.email.hasError("email")),ma(1),Ao("ngIf",t.form.controls.email.hasError("maxlength")),ma(1),Ao("ngIf",t.isVisible.accesscode),ma(1),Ao("ngIf",t.isVisible.cardNo))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),BX);function zX(e,t){1&e&&(Io(0,"th",13),_s(1," Given Name "),Eo())}function UX(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.firstName," ")}}function WX(e,t){1&e&&(Io(0,"th",13),_s(1," Surname "),Eo())}function GX(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.lastName," ")}}function QX(e,t){1&e&&(Io(0,"th",13),_s(1," Contact Number "),Eo())}function KX(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.mobile," ")}}function $X(e,t){1&e&&(Io(0,"th",13),_s(1," Email "),Eo())}function JX(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.email," ")}}function XX(e,t){1&e&&(Io(0,"th",13),_s(1," Organization "),Eo())}function ZX(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.organization," ")}}function eZ(e,t){1&e&&(Io(0,"th",13),_s(1," Access Code "),Eo())}function tZ(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit,i=Uo(2);ma(1),vs(" ",i.isShowAccessCode?n.accesscode:""," ")}}function nZ(e,t){1&e&&(Ro(0,15),Do(1,eZ,2,0,"th",3),Do(2,tZ,2,1,"td",4),Po())}function iZ(e,t){1&e&&Oo(0,"tr",16)}function aZ(e,t){if(1&e){var n=Fo();Io(0,"tr",17),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var rZ,oZ=((rZ=function(){function e(){_classCallCheck(this,e),this._data=[],this.displayedColumns=["firstName","lastName","organization","mobile","email","accesscode"],this.selectedRow=null,this._dataSource=new OF([]),this.selected=new Gl,this.setVisibility(0),this.isShowAccessCode=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource.paginator=this.paginator}},{key:"setShowAccessCode",value:function(e){this.isShowAccessCode=e}},{key:"setVisibility",value:function(e){this.visibility=e,this.displayedColumns=0==this.visibility?["firstName","lastName","organization","mobile","email"]:["firstName","lastName","organization","mobile","email","accesscode"]}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e)}},{key:"addVisitor",value:function(e){this._data.push(e),this.dataSource.data=this._data}},{key:"addVisitors",value:function(e){if(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._data.push(i)}}catch(a){n.e(a)}finally{n.f()}this.dataSource.data=this._data}}},{key:"clear",value:function(){this._data=[],this.dataSource.data=this._data,this.selectedRow=null}},{key:"removeVisitor",value:function(){var e=this;this.selectedRow&&(this._data=this._data.filter((function(t,n,i){return e.selectedRow!==t})),this._dataSource.data=this._data)}},{key:"updateVisitor",value:function(e){if(this.selectedRow){var t=this._data.indexOf(this.selectedRow);t>=0&&(this._data[t]=e,this._dataSource.data=this._data)}}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"evalInput",value:function(){return this._data}},{key:"setSelectedVisitor",value:function(e){this.selectedRow=e}},{key:"getSelectedVisitor",value:function(){return this.selectedRow}},{key:"getCount",value:function(){return this._dataSource.data?this._dataSource.data.length:0}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||rZ)},rZ.\u0275cmp=gt({type:rZ,selectors:[["app-ga-visitor-table"]],viewQuery:function(e,t){var n;1&e&&rc(YP,!0),2&e&&ac(n=dc())&&(t.paginator=n.first)},outputs:{selected:"selected"},decls:21,vars:4,consts:[[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","firstName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastName"],["matColumnDef","mobile"],["matColumnDef","email"],["matColumnDef","organization"],["matColumnDef","accesscode",4,"ngIf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["pageSize","10","hidePageSize","true"],["mat-header-cell",""],["mat-cell",""],["matColumnDef","accesscode"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"table",1),Ro(2,2),Do(3,zX,2,0,"th",3),Do(4,UX,2,1,"td",4),Po(),Ro(5,5),Do(6,WX,2,0,"th",3),Do(7,GX,2,1,"td",4),Po(),Ro(8,6),Do(9,QX,2,0,"th",3),Do(10,KX,2,1,"td",4),Po(),Ro(11,7),Do(12,$X,2,0,"th",3),Do(13,JX,2,1,"td",4),Po(),Ro(14,8),Do(15,XX,2,0,"th",3),Do(16,ZX,2,1,"td",4),Po(),Do(17,nZ,3,0,"ng-container",9),Do(18,iZ,1,0,"tr",10),Do(19,aZ,1,2,"tr",11),Eo(),Oo(20,"mat-paginator",12),Eo()),2&e&&(ma(1),Ao("dataSource",t.dataSource),ma(16),Ao("ngIf",t.visibility>0),ma(1),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns))},directives:[pF,kF,vF,_F,Ed,DF,MF,YP,wF,CF,TF,LF],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]{min-width:rem}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessDate[_ngcontent-%COMP%], .mat-column-exitDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}@media (max-width:800px){.mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{display:none}}"]}),rZ);function sZ(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Required."),Eo())}function lZ(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Either one should be selected."),Eo())}function cZ(e,t){if(1&e&&(Io(0,"div",1),Io(1,"form",2),Io(2,"span",3),_s(3," I declare that my visitor fulfil one of the below four criteria. "),Eo(),Io(4,"div",4),Io(5,"div",5),Io(6,"mat-form-field",6),Oo(7,"input",7),Io(8,"div"),Io(9,"div",8),Io(10,"div",9),Io(11,"mat-checkbox",10),_s(12,"\xa0"),Eo(),Io(13,"div",11),_s(14,"1. "),Eo(),Io(15,"span",12),_s(16," He/she has not travelled outside Hong Kong SAR to Mainland/Macao SAR/Taiwan or other countries, and has not come into contacts with those diagnosed with / suspected of COVID-19 infection in the past 14 days."),Oo(17,"br"),Io(18,"strong"),_s(19,"He/she "),Io(20,"span",13),_s(21,"has not been"),Eo(),_s(22," requested, by the Government, to undertake the deep throat saliva COVID-19 test in the past 14 days."),Eo(),Eo(),Eo(),Io(23,"div",9),Io(24,"mat-checkbox",10),_s(25,"\xa0"),Eo(),Io(26,"div",11),_s(27,"2. "),Eo(),Io(28,"span",12),_s(29," He/she has not travelled outside Hong Kong SAR to Mainland/Macao SAR/Taiwan or other countries, and have not come into contacts with those diagnosed with / suspected of COVID-19 infection in the past 14 days."),Oo(30,"br"),Io(31,"strong"),_s(32,"He/she "),Io(33,"span",13),_s(34,"has been"),Eo(),_s(35," requested, by the Government, to undertake the deep throat saliva COVID-19 test in the past 14 days and the result is negative."),Eo(),Eo(),Eo(),Io(36,"div",9),Io(37,"mat-checkbox",10),_s(38,"\xa0"),Eo(),Io(39,"div",11),_s(40,"3. "),Eo(),Io(41,"span",12),_s(42," He/she has travelled outside Hong Kong SAR but returned under the Return2HK Travel Scheme and exempted from the 14-day compulsory quarantine requirement, and has not come into contacts with those diagnosed with / suspected of COVID-19 infection in the past 14 days. "),Oo(43,"br"),Io(44,"strong"),_s(45,"He/she has not been requested, by the Government, to undertake the deep throat saliva COVID-19 test in the past 14 days, excluding those under the Return2HK Travel Scheme."),Eo(),Eo(),Eo(),Io(46,"div",9),Io(47,"mat-checkbox",10),_s(48,"\xa0"),Eo(),Io(49,"div",11),_s(50,"4. "),Eo(),Io(51,"span",12),_s(52," He/she has travelled outside Hong Kong SAR but returned under the Return2HK Travel Scheme and exempted from the 14-day compulsory quarantine requirement, and has not come into contacts with those diagnosed with / suspected of COVID-19 infection in the past 14 days. "),Oo(53,"br"),Io(54,"strong"),_s(55,"He/she has been requested, by the Government, to undertake the deep throat saliva COVID-19 test in the past 14 days and the result is negative, excluding those under the Return2HK Travel Scheme."),Eo(),Eo(),Eo(),Eo(),Eo(),Do(56,sZ,2,0,"mat-error",14),Do(57,lZ,2,0,"mat-error",14),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=Uo();ma(1),Ao("formGroup",n.form),ma(6),Ao("formControl",n.form.get("condition0"))("hidden",!0),ma(4),Ao("formControl",n.form.get("conditionA")),ma(13),Ao("formControl",n.form.get("conditionB")),ma(13),Ao("formControl",n.form.get("conditionC")),ma(10),Ao("formControl",n.form.get("conditionD")),ma(9),Ao("ngIf",n.form.controls.condition0.hasError("required")),ma(1),Ao("ngIf",n.form.controls.conditionA.hasError("eitherOne")||n.form.controls.conditionB.hasError("eitherOne")||n.form.controls.conditionC.hasError("eitherOne")||n.form.controls.conditionD.hasError("eitherOne"))}}var uZ,dZ,hZ,fZ,pZ=((fZ=function(){function e(t){var n=this;_classCallCheck(this,e),this._formBuilder=t,this.eitherOneRequiredValidator=function(e){if(n._form){var t=!!n._form.get("conditionA").value,i=!!n._form.get("conditionB").value,a=!!n._form.get("conditionC").value,r=!!n._form.get("conditionD").value;if(!(t||i||a||r))return{atLeastOne:!0}}return null},this._generateForm(),this.isVisible=!0,this.checkBoxResults=[!1,!1,!1,!1]}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setIsVisible",value:function(e){this.isVisible=e}},{key:"getIsVisible",value:function(){return this.isVisible}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"_generateForm",value:function(){var e=this;this._form=this._formBuilder.group({condition0:["",[N_.required]],conditionA:[!1,[this.eitherOneRequiredValidator]],conditionB:[!1,[this.eitherOneRequiredValidator]],conditionC:[!1,[this.eitherOneRequiredValidator]],conditionD:[!1,[this.eitherOneRequiredValidator]]}),this._form.get("conditionA").valueChanges.subscribe({next:function(t){e.checkBoxResults[0]!==e._form.controls.conditionA.value&&(e._form.controls.conditionA.value?(e._form.controls.condition0.setValue("A",{emitEvent:!1}),e._form.controls.conditionB.setValue(!1,{emitEvent:!1}),e._form.controls.conditionC.setValue(!1,{emitEvent:!1}),e._form.controls.conditionD.setValue(!1,{emitEvent:!1}),e.checkBoxResults[1]=!1,e.checkBoxResults[2]=!1,e.checkBoxResults[3]=!1):e._form.controls.condition0.setValue("",{emitEvent:!1}),e.checkBoxResults[0]=e._form.controls.conditionA.value,e._form.controls.conditionA.markAsTouched(),e._form.controls.condition0.markAsTouched(),e._form.controls.conditionA.updateValueAndValidity(),e._form.controls.condition0.updateValueAndValidity())}}),this._form.get("conditionB").valueChanges.subscribe({next:function(t){e.checkBoxResults[1]!==e._form.controls.conditionB.value&&(e._form.controls.conditionB.value?(e._form.controls.condition0.setValue("B",{emitEvent:!1}),e._form.controls.conditionA.setValue(!1,{emitEvent:!1}),e._form.controls.conditionC.setValue(!1,{emitEvent:!1}),e._form.controls.conditionD.setValue(!1,{emitEvent:!1}),e.checkBoxResults[0]=!1,e.checkBoxResults[2]=!1,e.checkBoxResults[3]=!1):e._form.controls.condition0.setValue("",{emitEvent:!1}),e.checkBoxResults[1]=e._form.controls.conditionB.value,e._form.controls.conditionB.markAsTouched(),e._form.controls.condition0.markAsTouched(),e._form.controls.conditionB.updateValueAndValidity(),e._form.controls.condition0.updateValueAndValidity())}}),this._form.get("conditionC").valueChanges.subscribe({next:function(t){e.checkBoxResults[2]!==e._form.controls.conditionC.value&&(e._form.controls.conditionC.value?(e._form.controls.condition0.setValue("C",{emitEvent:!1}),e._form.controls.conditionA.setValue(!1,{emitEvent:!1}),e._form.controls.conditionB.setValue(!1,{emitEvent:!1}),e._form.controls.conditionD.setValue(!1,{emitEvent:!1}),e.checkBoxResults[0]=!1,e.checkBoxResults[1]=!1,e.checkBoxResults[3]=!1):e._form.controls.condition0.setValue("",{emitEvent:!1}),e.checkBoxResults[2]=e._form.controls.conditionC.value,e._form.controls.conditionC.markAsTouched(),e._form.controls.condition0.markAsTouched(),e._form.controls.conditionC.updateValueAndValidity(),e._form.controls.condition0.updateValueAndValidity())}}),this._form.get("conditionD").valueChanges.subscribe({next:function(t){e.checkBoxResults[3]!==e._form.controls.conditionD.value&&(e._form.controls.conditionD.value?(e._form.controls.condition0.setValue("D",{emitEvent:!1}),e._form.controls.conditionA.setValue(!1,{emitEvent:!1}),e._form.controls.conditionB.setValue(!1,{emitEvent:!1}),e._form.controls.conditionC.setValue(!1,{emitEvent:!1}),e.checkBoxResults[0]=!1,e.checkBoxResults[1]=!1,e.checkBoxResults[2]=!1):e._form.controls.condition0.setValue("",{emitEvent:!1}),e.checkBoxResults[3]=e._form.controls.conditionD.value,e._form.controls.conditionD.markAsTouched(),e._form.controls.condition0.markAsTouched(),e._form.controls.conditionD.updateValueAndValidity(),e._form.controls.condition0.updateValueAndValidity())}})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||fZ)(Mo(tv))},fZ.\u0275cmp=gt({type:fZ,selectors:[["app-ga-health-conditions-checkbox"]],decls:1,vars:1,consts:[["class","declaration-container",4,"ngIf"],[1,"declaration-container"],[3,"formGroup"],[1,"checkbox-item","padding-top-1em","text-size-large"],[1,"polyu-grid-container","grid-column-start"],[1,"polyu-grid-cell-12"],["appearance",""],["matInput","",3,"formControl","hidden"],[1,"checkbox-container"],[1,"checkbox-row"],["color","primary",1,"checkbox-item","padding-top-1em",3,"formControl"],[1,"checkbox-item","order-prefix","padding-top-1em"],[1,"checkbox-item","padding-top-1em"],[1,"text-red"],[4,"ngIf"]],template:function(e,t){1&e&&Do(0,cZ,58,9,"div",0),2&e&&Ao("ngIf",t.isVisible)},directives:[Ed,jg,Y_,Qg,SI,RE,M_,P_,Wg,gE,aI],styles:[".declaration-container[_ngcontent-%COMP%]{padding:30px 0 10px}.checkbox-container[_ngcontent-%COMP%]{display:table;padding:0 0 0 10px;border-spacing:0}.checkbox-row[_ngcontent-%COMP%]{display:table-row;margin-bottom:30px}.checkbox-item[_ngcontent-%COMP%]{display:table-cell;font-size:1em}.text-size-large[_ngcontent-%COMP%]{font-size:1.2em}.order-prefix[_ngcontent-%COMP%]{padding-right:10px}.check-box-title[_ngcontent-%COMP%]{font-size:1.1em;padding-bottom:10px}.checkbox-second[_ngcontent-%COMP%]{margin-top:30px}.padding-top-1em[_ngcontent-%COMP%]{padding-top:1em}.invisible[_ngcontent-%COMP%]{visibility:hidden}mat-form-field[_ngcontent-%COMP%]{width:100%}  .declaration-container .mat-form-field-infix{margin:0;padding:0;border-top:0}  .declaration-container .mat-form-field-underline{display:none}"]}),fZ),mZ=((hZ=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"confirm",value:function(){this._matDialogRef.close(!0)}},{key:"cancel",value:function(){this._matDialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||hZ)(Mo(Fx))},hZ.\u0275cmp=gt({type:hZ,selectors:[["app-changes-discard-dialog"]],decls:8,vars:0,consts:[[1,"polyu-alert-container"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"p"),_s(2,"Discard changes?"),Eo(),Io(3,"div",1),Io(4,"button",2),Ho("click",(function(){return t.cancel()})),_s(5,"No"),Eo(),Io(6,"button",2),Ho("click",(function(){return t.confirm()})),_s(7,"Yes"),Eo(),Eo(),Eo())},directives:[bS],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}.polyu-alert-container[_ngcontent-%COMP%]{min-width:400px}"]}),hZ),_Z=((dZ=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._hideApprovedButton=!0,this._isVisible=!0,this._generateForm()}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"_generateForm",value:function(){var e=this;this._form=this._formBuilder.group({withMediaActivity:["2"],approved:["2"]}),this._form.get("withMediaActivity").valueChanges.subscribe({next:function(t){e._form.get("approved").setValue("2",{emitEvent:!1}),e._hideApprovedButton="1"!=t}})}},{key:"fromPublicMedia",value:function(){return"1"==this._form.get("withMediaActivity").value}},{key:"withMediaActivity",value:function(){return"1"==this._form.get("withMediaActivity").value}},{key:"approved",value:function(){return"1"==this._form.get("approved").value}},{key:"setIsVisible",value:function(e){this._isVisible=e}},{key:"getIsVisible",value:function(){return this._isVisible}},{key:"form",get:function(){return this._form}},{key:"isVisible",get:function(){return this._isVisible}},{key:"hideApprovedButton",get:function(){return this._hideApprovedButton}}]),e}()).\u0275fac=function(e){return new(e||dZ)(Mo(tv))},dZ.\u0275cmp=gt({type:dZ,selectors:[["app-ga-pubic-media-checkbox"]],decls:24,vars:13,consts:[[1,"declaration-container",3,"hidden"],[3,"formGroup"],[1,"polyu-grid-container","grid-column-start"],[1,"polyu-grid-cell-12","margin-top-16"],[1,"text-size-large"],[1,"padding-left-8","margin-top-16"],["matInput","","color","primary",1,"polyu-radio-group",3,"formControl"],[1,"polyu-radio-button","margin-right-8",3,"value","checked"],[1,"polyu-radio-button",3,"value","checked"],[1,"polyu-grid-cell-12","margin-top-16",3,"hidden"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"form",1),Io(2,"div",2),Io(3,"div",3),Io(4,"div",4),_s(5,"The visitor(s) is/are from media and will carry out media related activities on campus."),Eo(),Io(6,"div",5),Io(7,"mat-radio-group",6),Io(8,"mat-radio-button",7),_s(9,"Yes"),Eo(),Io(10,"mat-radio-button",8),_s(11,"No"),Eo(),Eo(),Eo(),Eo(),Io(12,"div",9),Io(13,"div",4),_s(14,"To better coordinate media related activities on campus, applications for access to campus from media to carry out media related activities shall have been approved by the Head of Department and CPA otherwise the applications will not be processed."),Eo(),Oo(15,"br"),Io(16,"div",4),_s(17,"I declare that the above information is correct."),Eo(),Io(18,"div",5),Io(19,"mat-radio-group",6),Io(20,"mat-radio-button",7),_s(21,"Yes"),Eo(),Io(22,"mat-radio-button",8),_s(23,"No"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("hidden",!t.isVisible),ma(1),Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.withMediaActivity),ma(1),Ao("value","1")("checked","1"===t.form.controls.withMediaActivity.value),ma(2),Ao("value","2")("checked","2"===t.form.controls.withMediaActivity.value),ma(2),Ao("hidden",t.hideApprovedButton),ma(7),Ao("formControl",t.form.controls.approved),ma(1),Ao("value","1")("checked","1"===t.form.controls.approved.value),ma(2),Ao("value","2")("checked","2"===t.form.controls.approved.value))},directives:[jg,Y_,Qg,uY,P_,Wg,hY],styles:[".declaration-container[_ngcontent-%COMP%]{padding:0 0 10px}.checkbox-container[_ngcontent-%COMP%]{display:table;padding:0 0 0 10px;border-spacing:0}.checkbox-row[_ngcontent-%COMP%]{display:table-row;margin-bottom:30px}.checkbox-item[_ngcontent-%COMP%]{display:table-cell;font-size:1em}.text-size-large[_ngcontent-%COMP%]{font-size:1.2em}.order-prefix[_ngcontent-%COMP%]{padding-right:10px}.check-box-title[_ngcontent-%COMP%]{font-size:1.1em;padding-bottom:10px}.checkbox-second[_ngcontent-%COMP%]{margin-top:30px}.padding-top-1em[_ngcontent-%COMP%]{padding-top:1em}.invisible[_ngcontent-%COMP%]{visibility:hidden}mat-form-field[_ngcontent-%COMP%]{width:100%}  .declaration-container .mat-form-field-infix{margin:0;padding:0;border-top:0}  .declaration-container .mat-form-field-underline{display:none}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}"]}),dZ),gZ=((uZ=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"close",value:function(){this._matDialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||uZ)(Mo(Fx))},uZ.\u0275cmp=gt({type:uZ,selectors:[["app-ga-public-media-access-denied-dialog"]],decls:12,vars:0,consts:[[1,"polyu-alert-dialog"],["color","primary","aria-hidden","false","aria-label","Error",1,"polyu-alert-icon"],[1,"polyu-alert-message"],["type","submit","mat-raised-button","","color","primary",1,"polyu-dialog-btn",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"mat-icon",1),_s(2,"error"),Eo(),Io(3,"h3",2),Io(4,"b"),_s(5,"Denied"),Eo(),Eo(),Io(6,"h5"),_s(7,"Please obtain approval from Head of Department and CPA before inviting media to carry out media related activities on campus."),Eo(),Io(8,"h5"),_s(9,"For inquiry, please contact FMO Help Desk at extension 7777."),Eo(),Io(10,"button",3),Ho("click",(function(){return t.close()})),_s(11,"Close"),Eo(),Eo())},directives:[pT,bS],styles:[".polyu-alert-dialog[_ngcontent-%COMP%]{text-align:center;padding:40px 80px}.polyu-alert-icon[_ngcontent-%COMP%]{transform:scale(2)}.polyu-alert-message[_ngcontent-%COMP%]{margin:30px 0 0}.polyu-dialog-btn[_ngcontent-%COMP%]{margin:10px 0}"]}),uZ),vZ=["requestInput"],yZ=["visitorInput"],kZ=["visitorTable"],bZ=["healthConditionsCheckbox"],wZ=["publicMediaCheckbox"];function CZ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function DZ(e,t){1&e&&(Oo(0,"span",21),Io(1,"div",22),_s(2," Guest Access Workflow is enabled."),Eo())}function SZ(e,t){if(1&e){var n=Fo();Io(0,"button",11),Ho("click",(function(){return en(n),Uo().addVisitor()})),_s(1,"Add"),Eo()}}function MZ(e,t){if(1&e){var n=Fo();Io(0,"button",11),Ho("click",(function(){en(n);var e=Uo();return e.updateVisitor(e.selectedVisitor)})),_s(1,"Update"),Eo()}}function xZ(e,t){if(1&e){var n=Fo();Io(0,"button",11),Ho("click",(function(){en(n);var e=Uo();return e.removeVisitor(e.selectedVisitor)})),_s(1,"Remove"),Eo()}}function TZ(e,t){1&e&&(Io(0,"div"),Io(1,"span"),_s(2," Your request to sponsor visitor(s) access to campus on the stated date has been received. "),Oo(3,"br"),Oo(4,"br"),_s(5," If prior approval is required from Head of Department, you will be notified the HoD decision. Respective QR code(s) for visitor(s) to gain access will be sent to the visitor(s) email addresses inputted by you after HoD approval granted. "),Eo(),Eo())}var AZ,LZ,IZ=((LZ=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._cd=i,this._dialog=a,this._location=r,this.STAFF_EMAIL_DOMAIN="polyu.edu.hk",this.isWorkflowEnable=!1,this._showApprovalMesssage=!1,this.isInAction=!0,this.isLoading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight(),this._inputComponent.setFormEditable(1),this._visitorInputComponent.setFormEditable(2),this._visitorInputComponent.setFormVisibility(1),this._visitorTableComponent.setVisibility(0),this._inputComponent.focus()}},{key:"ngAfterViewInit",value:function(){}},{key:"checkAccessRight",value:function(){var e=this._dialog,t=this,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){n?(t._inputComponent.setStartDayOffset(pu.module.guestAccess.startDateOffset),t.loadData()):e.open(nQ)},error:function(t){e.open(nQ)}})}},{key:"loadData",value:function(){var e=this,t=this,n=new pX;n.offset=0,n.row=-1,n.startDate=new Date,n.startDate.setMonth(n.startDate.getMonth()-1),n.endDate=new Date,n.endDate.setMonth(n.endDate.getMonth()+13);var i=new fX;this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStaff)>=0?i.configId="VRS.GA.WORKFLOW.STAFF.ENABLE":this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStudent)>=0&&(i.configId="VRS.GA.WORKFLOW.STUDENT.ENABLE"),this.isLoading=!0,m_(this._applicationService.searchGuestAccessBlackoutPeriod(n),this._applicationService.getGuestAccessConfig(i)).subscribe((function(n){t._inputComponent.setBlackoutPeriods(n[0].data),e.isWorkflowEnable="true"===n[1].value.toLowerCase(),t.isLoading=!1}),(function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to load data.",t&&401===t.status&&e._dialog.open(_T),e._cd.detectChanges()}))}},{key:"submitRequest",value:function(){var e=this;if(this._publicMediaCheckbox.fromPublicMedia()&&this._publicMediaCheckbox.withMediaActivity()&&!this._publicMediaCheckbox.approved())this._dialog.open(gZ);else if(this._visitorTableComponent.getCount()<=0)this._snackBar.open("Number of visitors should be greater than 1.",null,{duration:2e3});else{var t=m_({input:this._inputComponent.validateForm(),checkbox:this._healthConditionsCheckbox.validateForm()}).pipe(V((function(e){var t=e.input,n=e.checkbox;return t&&n})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isLoading=!0;var t=e._inputComponent.evalInput();return t.visitors=e._visitorTableComponent.evalInput(),e._applicationService.createGuestAccessRequestV2(t)})),Pv((function(t){var n=new $D;return n.requestId=t.requestId,n.fromPublicMedia=e._publicMediaCheckbox.fromPublicMedia(),n.withMediaActivity=e._publicMediaCheckbox.withMediaActivity(),n.withApproval=e._publicMediaCheckbox.approved(),m_(mu(t),e._applicationService.setGuestAccessRequestsDisclaimer(n))})),Uv((function(t){var n=_slicedToArray(t,2);n[0],n[1],e.isInAction=!1,e.isLoading=!1,e.icon="done",e.resultMessage="Success",e._showApprovalMesssage=e.isWorkflowEnable,e._cd.detectChanges()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to create a new request",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}}},{key:"addVisitor",value:function(){var e=this,t=this._visitorInputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){var n=e._applicationService.currentUser.email.trim().toLowerCase(),i=e._visitorInputComponent.evalInput();n.endsWith(e.STAFF_EMAIL_DOMAIN.toLowerCase())&&i.email.trim().toLowerCase()===n||!(e._visitorTableComponent.evalInput().filter((function(e,t,n){return i.email===e.email})).length>0)?(e._visitorTableComponent.addVisitor(i),e._visitorInputComponent.clear(),e._visitorTableComponent.clearSelected()):e._snackBar.open("Email Address Repeated. Please fix them and submit again.",null,{duration:2500})})))).pipe(Qv((function(){}))).subscribe()}},{key:"updateVisitor",value:function(){var e=this;if(this.selectedVisitor){var t=this._visitorInputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){var n=e._applicationService.currentUser.email.trim().toLowerCase(),i=e._visitorInputComponent.evalInput();n.endsWith(e.STAFF_EMAIL_DOMAIN.toLowerCase())&&i.email.trim().toLowerCase()===n||!(e._visitorTableComponent.evalInput().filter((function(t,n,i){return t!==e._visitorTableComponent.getSelectedVisitor()})).filter((function(e,t,n){return i.email===e.email})).length>=1)?(e._visitorTableComponent.updateVisitor(i),e._visitorInputComponent.clear()):e._snackBar.open("Email Address Repeated. Please fix them and submit again.",null,{duration:2e3})})))).pipe(Qv((function(){}))).subscribe()}}},{key:"removeVisitor",value:function(){this._visitorTableComponent.removeVisitor(),this._visitorInputComponent.clear()}},{key:"selectRow",value:function(e){var t=this;this._visitorInputComponent.isTouched()?this._dialog.open(mZ).afterClosed().subscribe((function(n){n?(t.selectedVisitor=e,t.selectedVisitor&&t._visitorInputComponent.setVisitor(t.selectedVisitor)):t.selectedVisitor&&t._visitorTableComponent.setSelectedVisitor(t.selectedVisitor)})):(this.selectedVisitor=e,this.selectedVisitor&&this._visitorInputComponent.setVisitor(this.selectedVisitor))}},{key:"clearSelection",value:function(){this._visitorTableComponent.clearSelected(),this._visitorInputComponent.clear(),this.selectedVisitor=null}},{key:"getVisitorCount",value:function(){return this._visitorTableComponent.getCount()}},{key:"back",value:function(){this._location.back()}},{key:"showApprovalMesssage",get:function(){return this._showApprovalMesssage}}]),e}()).\u0275fac=function(e){return new(e||LZ)(Mo(_S),Mo(EY),Mo(jr),Mo(Bx),Mo(ju))},LZ.\u0275cmp=gt({type:LZ,selectors:[["app-ga-common-create-page"]],viewQuery:function(e,t){var n;1&e&&(rc(vZ,!0),rc(yZ,!0),rc(kZ,!0),rc(bZ,!0),rc(wZ,!0)),2&e&&(ac(n=dc())&&(t._inputComponent=n.first),ac(n=dc())&&(t._visitorInputComponent=n.first),ac(n=dc())&&(t._visitorTableComponent=n.first),ac(n=dc())&&(t._healthConditionsCheckbox=n.first),ac(n=dc())&&(t._publicMediaCheckbox=n.first))},decls:41,vars:10,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[3,"hidden"],[1,"polyu-notice-container"],[3,"ngIf"],["requestInput",""],[1,"polyu-visitor-container"],["visitorInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click",4,"ngIf"],["mat-raised-button","","color","white",3,"click"],[3,"selected"],["visitorTable",""],["healthConditionsCheckbox",""],["publicMediaCheckbox",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-section-headline"],[1,"green-dot"],[1,"polyu-notice"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,CZ,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"New"),Eo(),Io(4,"h5"),_s(5,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(6,"div",3),Io(7,"div",4),Do(8,DZ,3,0,"ng-template",5),Eo(),Oo(9,"app-ga-request-input",null,6),Io(11,"div",7),Oo(12,"app-ga-visitor-input",null,8),Io(14,"div",9),Do(15,SZ,2,0,"button",10),Do(16,MZ,2,0,"button",10),Do(17,xZ,2,0,"button",10),Io(18,"button",11),Ho("click",(function(){return t.clearSelection()})),_s(19,"Reset"),Eo(),Eo(),Io(20,"app-ga-visitor-table",12,13),Ho("selected",(function(e){return t.selectRow(e)})),Eo(),Eo(),Oo(22,"app-ga-health-conditions-checkbox",null,14),Oo(24,"app-ga-pubic-media-checkbox",null,15),Io(26,"div",16),Io(27,"button",17),Ho("click",(function(){return t.back()})),_s(28,"Back"),Eo(),Io(29,"button",17),Ho("click",(function(){return t.submitRequest()})),_s(30,"Submit"),Eo(),Eo(),Eo(),Io(31,"div",3),Io(32,"div",18),Io(33,"mat-icon",19),_s(34),Eo(),Eo(),Io(35,"h3",20),_s(36),Eo(),Do(37,TZ,6,0,"div",1),Io(38,"div",9),Io(39,"button",17),Ho("click",(function(){return t.back()})),_s(40,"Back"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(5),Ao("hidden",!t.isInAction),ma(2),Ao("ngIf",t.isWorkflowEnable),ma(7),Ao("ngIf",t.getVisitorCount()<5),ma(1),Ao("ngIf",null!=t.selectedVisitor),ma(1),Ao("ngIf",null!=t.selectedVisitor),ma(14),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage),ma(1),Ao("ngIf",t.showApprovalMesssage))},directives:[Ed,OX,jX,bS,oZ,pZ,_Z,pT,tV,nV],styles:["h3.polyu-section-headline[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.polyu-visitor-container[_ngcontent-%COMP%]{border:5px solid #d3d3d3;padding:10px}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-notice-container[_ngcontent-%COMP%]{padding:20px 5px 5px 0;display:table-cell;vertical-align:middle}.polyu-notice[_ngcontent-%COMP%]{display:inline}.green-dot[_ngcontent-%COMP%]{height:15px;width:15px;background-color:#093;border-radius:50%;display:inline-block}"]}),LZ),EZ=((AZ=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"confirm",value:function(){this._matDialogRef.close(!0)}},{key:"cancel",value:function(){this._matDialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||AZ)(Mo(Fx))},AZ.\u0275cmp=gt({type:AZ,selectors:[["app-ga-delete-confirm-dialog"]],decls:8,vars:0,consts:[[1,"polyu-alert-container"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"p"),_s(2,"Cancel this request?"),Eo(),Io(3,"div",1),Io(4,"button",2),Ho("click",(function(){return t.cancel()})),_s(5,"No"),Eo(),Io(6,"button",2),Ho("click",(function(){return t.confirm()})),_s(7,"Yes"),Eo(),Eo(),Eo())},directives:[bS],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}.polyu-alert-container[_ngcontent-%COMP%]{min-width:400px}"]}),AZ),OZ=["requestInput"],RZ=["visitorInput"],PZ=["visitorTable"],YZ=["healthConditionsCheckbox"],FZ=["publicMediaCheckbox"];function qZ(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function VZ(e,t){1&e&&(Oo(0,"span",21),Io(1,"div",22),_s(2," Guest Access Workflow is enabled."),Eo())}function HZ(e,t){if(1&e){var n=Fo();Io(0,"button",23),Ho("click",(function(){return en(n),Uo().addVisitor()})),_s(1,"Add"),Eo()}}function NZ(e,t){if(1&e){var n=Fo();Io(0,"button",23),Ho("click",(function(){en(n);var e=Uo();return e.updateVisitor(e.selectedVisitor)})),_s(1,"Update"),Eo()}}function BZ(e,t){if(1&e){var n=Fo();Io(0,"button",23),Ho("click",(function(){en(n);var e=Uo();return e.removeVisitor(e.selectedVisitor)})),_s(1,"Remove"),Eo()}}function jZ(e,t){if(1&e){var n=Fo();Io(0,"button",23),Ho("click",(function(){return en(n),Uo().clearSelection()})),_s(1,"Reset"),Eo()}}function zZ(e,t){if(1&e){var n=Fo();Io(0,"button",16),Ho("click",(function(){return en(n),Uo().rejectRequest()})),_s(1,"Reject"),Eo()}}function UZ(e,t){if(1&e){var n=Fo();Io(0,"button",16),Ho("click",(function(){return en(n),Uo().approveRequest()})),_s(1,"Approve"),Eo()}}function WZ(e,t){if(1&e){var n=Fo();Io(0,"button",16),Ho("click",(function(){return en(n),Uo().cancelRequest()})),_s(1,"Cancel Request"),Eo()}}function GZ(e,t){if(1&e){var n=Fo();Io(0,"button",16),Ho("click",(function(){return en(n),Uo().updateRequest()})),_s(1,"Submit"),Eo()}}function QZ(e,t){1&e&&(Io(0,"div"),Io(1,"span"),_s(2," Your request to sponsor visitor(s) access to campus on the stated date has been received. "),Oo(3,"br"),Oo(4,"br"),_s(5," If prior approval is required from Head of Department, you will be notified the HoD decision. Respective QR code(s) for visitor(s) to gain access will be sent to the visitor(s) email addresses inputted by you after HoD approval granted. "),Eo(),Eo())}var KZ,$Z=((KZ=function(){function e(t,n,i,a,r,o,s){var l=this;if(_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._route=i,this._cd=a,this._dialog=r,this._router=o,this._location=s,this.STAFF_EMAIL_DOMAIN="polyu.edu.hk",this.removedVisitors=[],this.updatedVisitors=[],this.isWorkflowEnable=!1,this._showApprovalMesssage=!1,this.isLoading=!1,this.isInAction=!0,this.isUpdateAble=!0,this.isApproveAble=!1,this.roles=this._route.snapshot.data.roles,this.updateEnable=this._route.snapshot.data.update,this.cancelEnable=this._route.snapshot.data.cancel,this.approval=this._route.snapshot.data.approval,this.routerSubscription=this._route.params.subscribe((function(e){e.requestId&&(l.requestId=e.requestId)})),this._router.getCurrentNavigation()){var c=this._router.getCurrentNavigation().extras.state;c&&(this.updateEnable&&(this.updateEnable=c.updateEnable),this.cancelEnable&&(this.cancelEnable=c.cancelEnable))}}return _createClass(e,[{key:"checkAccessRight",value:function(){var e=this,t=this._dialog,n=this._applicationService.currentUser.roles.filter((function(t){return e.roles.indexOf(t)>=0}));n&&n.length>0?(this._inputComponent.setStartDayOffset(pu.module.guestAccess.startDateOffset),this.loadData()):t.open(nQ)}},{key:"ngOnInit",value:function(){this.checkAccessRight(),this._healthConditionsCheckbox.setIsVisible(this.updateEnable),this._publicMediaCheckbox.setIsVisible(this.updateEnable)}},{key:"loadData",value:function(){var e=this;this._inputComponent.setFormEditable(0),this._visitorInputComponent.setFormEditable(1),this._visitorInputComponent.setFormVisibility(2),this._visitorTableComponent.setVisibility(1),this.isLoading=!0;var t=new pX;t.offset=0,t.row=-1,t.startDate=new Date,t.startDate.setMonth(t.startDate.getMonth()-1),t.endDate=new Date,t.endDate.setMonth(t.endDate.getMonth()+13);var n=new fX;this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStaff)>=0?n.configId="VRS.GA.WORKFLOW.STAFF.ENABLE":this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStudent)>=0&&(n.configId="VRS.GA.WORKFLOW.STUDENT.ENABLE"),m_(this._applicationService.getGuestAccessRequest(this.requestId,this._applicationService.currentUser.netid),this._applicationService.searchGuestAccessBlackoutPeriod(t),this._applicationService.getGuestAccessConfig(n)).pipe(Uv((function(t){var n=t[0],i=t[1];if(e.isWorkflowEnable="true"===t[2].value.toLowerCase(),e.isApproveAble="H"===n.status,e._inputComponent.setBlackoutPeriods(i.data),e._inputComponent.setRequest(n),n.visitors){var a,r=_createForOfIteratorHelper(n.visitors.sort((function(e,t){return e.visitorId-t.visitorId})));try{for(r.s();!(a=r.n()).done;){var o=a.value;e._visitorTableComponent.addVisitor(o)}}catch(c){r.e(c)}finally{r.f()}}e._visitorTableComponent.setShowAccessCode("A"===n.status),new Date(n.accessDate).setHours(0,0,0,0);var s=new Date(n.exitDate);s.setHours(0,0,0,0);var l=new Date;l.setHours(0,0,0,0),e.isUpdateAble=s.getTime()>=l.getTime()&&(e._applicationService.currentUser.netid===n.sponsorNetID||e._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0)&&"A"===n.status,e.isUpdateAble&&e.updateEnable?(e._inputComponent.setFormEditable(1),e._visitorInputComponent.setFormEditable(1),e._visitorInputComponent.setValidationLevel(1)):(e._inputComponent.setFormEditable(0),e._visitorInputComponent.setFormEditable(0),e._visitorInputComponent.setValidationLevel(0)),e._healthConditionsCheckbox.setIsVisible(e.updateEnable),e.isLoading=!1}))).subscribe((function(t){e.isLoading=!1}),(function(t){console.log(t),e.isLoading=!1,e.isInAction=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to get record, please try again later",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"ngAfterViewInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}},{key:"updateRequest",value:function(){var e=this;if(this._publicMediaCheckbox.fromPublicMedia()&&this._publicMediaCheckbox.withMediaActivity()&&!this._publicMediaCheckbox.approved())this._dialog.open(gZ);else if(this._visitorTableComponent.getCount()<=0)this._snackBar.open("Number of visitors should be greater than 1.",null,{duration:2e3});else{var t=m_({input:this._inputComponent.validateForm(),checkbox:this._healthConditionsCheckbox.validateForm()}).pipe(V((function(e){var t=e.input,n=e.checkbox;return t&&n})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isLoading=!0;for(var t=e._inputComponent.evalInput(),n=e._visitorTableComponent.evalInput(),i=[],a=0;a<n.length;a++)null!==n[a].visitorId&&0!==n[a].visitorId||i.push(n[a]);var r=e._inputComponent.isTouched()?t:null;return e._applicationService.updateGuestAccessRequest(e.requestId,r,i,e.updatedVisitors,e.removedVisitors,e._applicationService.currentUser.netid)})),Pv((function(t){var n=new $D;return n.requestId=e.requestId,n.fromPublicMedia=e._publicMediaCheckbox.fromPublicMedia(),n.withMediaActivity=e._publicMediaCheckbox.withMediaActivity(),n.withApproval=e._publicMediaCheckbox.approved(),m_(mu(t),e._applicationService.setGuestAccessRequestsDisclaimer(n))})),Uv((function(t){var n=_slicedToArray(t,2);n[0],n[1],e.isLoading=!1,e.isInAction=!1,e.icon="done",e.resultMessage="Success",e._showApprovalMesssage=e.isWorkflowEnable,e._cd.detectChanges()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e.isLoading=!1,e.isInAction=!1,e.icon="error",console.log(t),e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to update record, please try again later",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}}},{key:"addVisitor",value:function(){var e=this,t=this._visitorInputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){var n=e._applicationService.currentUser.email.trim().toLowerCase(),i=e._visitorInputComponent.evalInput();if(n.endsWith(e.STAFF_EMAIL_DOMAIN.toLowerCase())&&i.email.trim().toLowerCase()===n||!(e._visitorTableComponent.evalInput().filter((function(e,t,n){return i.email===e.email})).length>0)){var a=new KD;a.cardReturned=!1,a.checkin=0,a.checkout=0,a.email=i.email,a.firstName=i.firstName,a.lastName=i.lastName,a.mobile=i.mobile,a.organization=i.organization,a.reminderSent=!1,a.version=0,e._visitorTableComponent.addVisitor(a),e._visitorTableComponent.clearSelected(),e._visitorInputComponent.clear(),e.selectedVisitor=null}else e._snackBar.open("Email Address Repeated. Please fix them and submit again.",null,{duration:2500})})))).pipe(Qv((function(){}))).subscribe()}},{key:"updateVisitor",value:function(){var e=this;if(this.selectedVisitor){var t=this._visitorInputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){var n=e._applicationService.currentUser.email.trim().toLowerCase(),i=e._visitorInputComponent.evalInput();if(n.endsWith(e.STAFF_EMAIL_DOMAIN.toLowerCase())&&i.email.trim().toLowerCase()===n||!(e._visitorTableComponent.evalInput().filter((function(t,n,i){return t!==e._visitorTableComponent.getSelectedVisitor()})).filter((function(e,t,n){return i.email===e.email})).length>=1)){var a=i;if(e._visitorTableComponent.updateVisitor(a),e._visitorInputComponent.clear(),e._visitorTableComponent.clearSelected(),e.selectedVisitor=null,a.visitorId){for(var r=0;r<e.updatedVisitors.length;r++)if(e.updatedVisitors[r].visitorId===a.visitorId){e.updatedVisitors.splice(r,1);break}e.updatedVisitors.push(a)}}else e._snackBar.open("Email Address Repeated. Please fix them and submit again.",null,{duration:2500})})))).pipe(Qv((function(){}))).subscribe()}}},{key:"cancelRequest",value:function(){var e=this;this._dialog.open(EZ).afterClosed().subscribe((function(t){t&&(e.isLoading=!0,e._applicationService.cancelGuestAccessRequest(e.requestId,e._applicationService.currentUser.netid).subscribe((function(t){e.isLoading=!1,e.isInAction=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()}),(function(t){e.isLoading=!1,e.isInAction=!0,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Error. Please try again later.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)})))}))}},{key:"removeVisitor",value:function(){this.selectedVisitor&&null!==this.selectedVisitor.visitorId&&this.selectedVisitor.requestId&&this.removedVisitors.push(this.selectedVisitor),this._visitorTableComponent.removeVisitor(),this._visitorInputComponent.clear(),this.selectedVisitor=null}},{key:"selectRow",value:function(e){var t=this;this._visitorInputComponent.isTouched()?this._dialog.open(mZ).afterClosed().subscribe((function(n){n?(t.selectedVisitor=e,t.selectedVisitor&&t._visitorInputComponent.setVisitor(t.selectedVisitor)):t._visitorTableComponent.setSelectedVisitor(t.selectedVisitor)})):(this.selectedVisitor=e,this.selectedVisitor&&this._visitorInputComponent.setVisitor(this.selectedVisitor))}},{key:"clearSelection",value:function(){this._visitorTableComponent.clearSelected(),this._visitorInputComponent.clear(),this.selectedVisitor=null}},{key:"getVisitorCount",value:function(){return this._visitorTableComponent.getCount()}},{key:"back",value:function(){this._location.back()}},{key:"rejectRequest",value:function(){var e=this,t=[this.requestId];this.isLoading=!0,this._applicationService.rejectGuestAccessRequests(t).subscribe((function(t){e.isLoading=!1,e.isInAction=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to reject guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"approveRequest",value:function(){var e=this,t=[this.requestId];this.isLoading=!0,this._applicationService.approveGuestAccessRequests(t).subscribe((function(t){e.isLoading=!1,e.isInAction=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to approve guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"showApprovalMesssage",get:function(){return this._showApprovalMesssage}}]),e}()).\u0275fac=function(e){return new(e||KZ)(Mo(_S),Mo(EY),Mo(rk),Mo(jr),Mo(Bx),Mo(mb),Mo(ju))},KZ.\u0275cmp=gt({type:KZ,selectors:[["app-ga-common-edit-page"]],viewQuery:function(e,t){var n;1&e&&(rc(OZ,!0),rc(RZ,!0),rc(PZ,!0),rc(YZ,!0),rc(FZ,!0)),2&e&&(ac(n=dc())&&(t._inputComponent=n.first),ac(n=dc())&&(t._visitorInputComponent=n.first),ac(n=dc())&&(t._visitorTableComponent=n.first),ac(n=dc())&&(t._healthConditionsCheckbox=n.first),ac(n=dc())&&(t._publicMediaCheckbox=n.first))},decls:43,vars:15,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[3,"hidden"],[1,"polyu-notice-container"],[3,"ngIf"],["requestInput",""],[1,"polyu-visitor-container"],["visitorInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click",4,"ngIf"],[3,"selected"],["visitorTable",""],["healthConditionsCheckbox",""],["publicMediaCheckbox",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-section-headline"],[1,"green-dot"],[1,"polyu-notice"],["mat-raised-button","","color","white",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,qZ,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"Request"),Eo(),Io(4,"h5"),_s(5,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(6,"div",3),Io(7,"div",4),Do(8,VZ,3,0,"ng-template",5),Eo(),Oo(9,"app-ga-request-input",null,6),Io(11,"div",7),Oo(12,"app-ga-visitor-input",null,8),Io(14,"div",9),Do(15,HZ,2,0,"button",10),Do(16,NZ,2,0,"button",10),Do(17,BZ,2,0,"button",10),Do(18,jZ,2,0,"button",10),Eo(),Io(19,"app-ga-visitor-table",11,12),Ho("selected",(function(e){return t.selectRow(e)})),Eo(),Eo(),Oo(21,"app-ga-health-conditions-checkbox",null,13),Oo(23,"app-ga-pubic-media-checkbox",null,14),Io(25,"div",15),Io(26,"button",16),Ho("click",(function(){return t.back()})),_s(27,"Back"),Eo(),Io(28,"div",9),Do(29,zZ,2,0,"button",17),Do(30,UZ,2,0,"button",17),Do(31,WZ,2,0,"button",17),Do(32,GZ,2,0,"button",17),Eo(),Eo(),Eo(),Io(33,"div",3),Io(34,"div",18),Io(35,"mat-icon",19),_s(36),Eo(),Eo(),Io(37,"h3",20),_s(38),Eo(),Do(39,QZ,6,0,"div",1),Io(40,"div",9),Io(41,"button",16),Ho("click",(function(){return t.back()})),_s(42,"Back"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(5),Ao("hidden",!t.isInAction),ma(2),Ao("ngIf",t.isWorkflowEnable),ma(7),Ao("ngIf",t.isUpdateAble&&t.updateEnable&&t.getVisitorCount()<5),ma(1),Ao("ngIf",null!=t.selectedVisitor&&t.isUpdateAble&&t.updateEnable),ma(1),Ao("ngIf",null!=t.selectedVisitor&&t.isUpdateAble&&t.updateEnable),ma(1),Ao("ngIf",t.isUpdateAble&&t.updateEnable),ma(11),Ao("ngIf",t.approval&&t.isApproveAble),ma(1),Ao("ngIf",t.approval&&t.isApproveAble),ma(1),Ao("ngIf",t.isUpdateAble&&t.cancelEnable),ma(1),Ao("ngIf",t.isUpdateAble&&t.updateEnable),ma(1),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage),ma(1),Ao("ngIf",t.showApprovalMesssage))},directives:[Ed,OX,jX,oZ,pZ,_Z,bS,pT,tV,nV],styles:["h3.polyu-section-headline[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.polyu-visitor-container[_ngcontent-%COMP%]{border:5px solid #d3d3d3;padding:10px}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-notice-container[_ngcontent-%COMP%]{padding:20px 5px 5px 0;display:table-cell;vertical-align:middle}.polyu-notice[_ngcontent-%COMP%]{display:inline}.green-dot[_ngcontent-%COMP%]{height:15px;width:15px;background-color:#093;border-radius:50%;display:inline-block}"]}),KZ),JZ=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessRequests(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.requests})})))}}]),n}(Gj),XZ=["keywordInput"];function ZZ(e,t){if(1&e){var n=Fo();Io(0,"button",10),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",11),_s(2,"clear"),Eo(),Eo()}}function e1(e,t){if(1&e){var n=Fo();Io(0,"button",18),Ho("click",(function(e){return en(n),Uo(2).clearDate(e)})),Io(1,"mat-icon",11),_s(2,"clear"),Eo(),Eo()}}function t1(e,t){if(1&e&&(Io(0,"div",8),Io(1,"div",12),Io(2,"mat-form-field",3),Io(3,"mat-label"),_s(4,"At"),Eo(),Oo(5,"input",13),Io(6,"div",14),Do(7,e1,3,0,"button",15),Io(8,"div"),Oo(9,"mat-datepicker-toggle",16),Oo(10,"mat-datepicker",null,17),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(11),i=Uo();ma(5),Ao("matDatepicker",n)("formControl",i.form.controls.date)("readonly",!0),ma(2),Ao("ngIf",i.form.get("date").value),ma(2),Ao("for",n)}}var n1,i1=((n1=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl,this.setVisibility(0)}return _createClass(e,[{key:"ngOnInit",value:function(){(new Date).setHours(0,0,0,0)}},{key:"setVisibility",value:function(e){this.isVisible=0===e?{keyword:!0,date:!0}:{keyword:!0,date:!1}}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""],date:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:"",date:this._form.get("date").value?dd(this._form.get("date").value,"yyyy-MM-dd","en-HK"):null}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:"",date:e.date?dd(e.date,"yyyy-MM-dd","en-HK"):null}:{keyword:"",date:null})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:"",date:this._form.get("date").value?this._form.get("date").value:null})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearDate",value:function(e){e.stopPropagation(),this._form.setValue({keyword:this._form.get("keyword").value?this._form.get("keyword").value:"",date:null})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||n1)(Mo(tv))},n1.\u0275cmp=gt({type:n1,selectors:[["app-ga-visitor-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(XZ,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:15,vars:4,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],["class","polyu-search-item",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"],[1,"flex-container"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","readonly"],["matSuffix","",1,"flex-container"],["type","button","mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[3,"for"],["picker1",""],["type","button","mat-button","","mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Keyword"),Eo(),Oo(6,"input",4,5),Do(8,ZZ,3,0,"button",6),Eo(),Eo(),Do(9,t1,12,5,"div",7),Io(10,"div",8),Io(11,"button",9),_s(12,"Search"),Eo(),Eo(),Eo(),Io(13,"h5"),_s(14,"Search by Visitor Name, Visitor Contact, Visitor Email, Requester NetID, Requester Department, Organization, Purpose of Visit and Access Code"),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value),ma(1),Ao("ngIf",t.isVisible.date))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,bS,kI,pT,YO,qO,EO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),n1),a1=["errorComponent"];function r1(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,18),Eo())}function o1(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function s1(e,t){1&e&&Oo(0,"th",19)}function l1(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.index,i=Uo();ma(1),vs(" ",10*i.paginator.pageIndex+(n+1)," ")}}function c1(e,t){1&e&&(Io(0,"th",19),_s(1," Visit Start Date "),Oo(2,"br"),Io(3,"small",21),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function u1(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDate?zl(2,1,n.accessDate,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function d1(e,t){1&e&&(Io(0,"th",19),_s(1," Visit End Date "),Oo(2,"br"),Io(3,"small",21),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function h1(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.exitDate?zl(2,1,n.exitDate,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function f1(e,t){1&e&&(Io(0,"th",19),_s(1," Venue to Visit "),Eo())}function p1(e,t){if(1&e&&(Io(0,"td",20),_s(1),Nl(2,"locationPipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.accessLocation)," ")}}function m1(e,t){1&e&&(Io(0,"th",19),_s(1,"Requester"),Eo())}function _1(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.sponsorName," ")}}function g1(e,t){1&e&&(Io(0,"th",19),_s(1," Purpose of Visit "),Eo())}function v1(e,t){if(1&e&&(Io(0,"td",22),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.purposeOfVisit)}}function y1(e,t){1&e&&(Io(0,"th",19),_s(1," Status "),Eo())}function k1(e,t){if(1&e&&(Io(0,"td",22),_s(1),Nl(2,"gaRequestStagePipe"),Eo()),2&e){var n=t.$implicit;ma(1),gs(Bl(2,1,n.status))}}function b1(e,t){1&e&&Oo(0,"th",19)}function w1(e,t){if(1&e){var n=Fo();Io(0,"td",23),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onActionBtnClicked(e,i)})),Io(1,"button",24),_s(2),Eo(),Eo()}if(2&e){var i=Uo();ma(2),gs(i.action)}}function C1(e,t){1&e&&Oo(0,"tr",25)}function D1(e,t){if(1&e){var n=Fo();Io(0,"tr",26),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var S1,M1,x1=((S1=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["sequence","accessDate","exitDate","accessLocation","requester","purposeOfVisit","status","more"],this._query=new ZD,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onActionClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1,this.action="Details"}return _createClass(e,[{key:"setVisibility",value:function(e){this.displayedColumns=0===e?["sequence","accessDate","exitDate","accessLocation","purposeOfVisit","status","more"]:["sequence","accessDate","exitDate","accessLocation","requester","purposeOfVisit","status","more"]}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onActionBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onActionClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||S1)(Mo(jr))},S1.\u0275cmp=gt({type:S1,selectors:[["app-ga-request-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(a1,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},inputs:{action:"action"},outputs:{selected:"selected",onActionClicked:"onActionClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:33,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","sequence"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accessDate"],["matColumnDef","exitDate"],["matColumnDef","accessLocation"],["matColumnDef","requester"],["matColumnDef","purposeOfVisit"],["mat-cell","","class","polyu-multi-lines-text",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","more"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"polyu-optional"],["mat-cell","",1,"polyu-multi-lines-text"],["mat-cell","",3,"click"],["mat-raised-button",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,r1,3,0,"div",0),Io(1,"div"),Do(2,o1,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,s1,1,0,"th",4),Do(8,l1,2,1,"td",5),Po(),Ro(9,6),Do(10,c1,5,0,"th",4),Do(11,u1,3,5,"td",5),Po(),Ro(12,7),Do(13,d1,5,0,"th",4),Do(14,h1,3,5,"td",5),Po(),Ro(15,8),Do(16,f1,2,0,"th",4),Do(17,p1,3,3,"td",5),Po(),Ro(18,9),Do(19,m1,2,0,"th",4),Do(20,_1,2,1,"td",5),Po(),Ro(21,10),Do(22,g1,2,0,"th",4),Do(23,v1,2,1,"td",11),Po(),Ro(24,12),Do(25,y1,2,0,"th",4),Do(26,k1,3,3,"td",11),Po(),Ro(27,13),Do(28,b1,1,0,"th",4),Do(29,w1,3,1,"td",14),Po(),Do(30,C1,1,0,"tr",15),Do(31,D1,1,2,"tr",16),Eo(),Io(32,"mat-paginator",17),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(25),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh,_X,mX],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),S1),T1=["dataFilter"],A1=["requestTable"],L1=((M1=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._dialog=i,this._location=a,this._cd=r,this._dataService=o,this.message=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(1),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setVisibility(0),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.sponsorSearchAllQuery),this.checkAccessRight()}},{key:"loadData",value:function(){null===this._dataService.sponsorSearchAllQuery&&(this._dataService.sponsorSearchAllQuery=new ZD,this._dataService.sponsorSearchAllQuery.date=null,this._dataService.sponsorSearchAllQuery.keyword="",this._dataService.sponsorSearchAllQuery.type="all",this._dataService.sponsorSearchAllQuery.cs=!1,this._dataService.sponsorSearchAllQuery.createdBy=this._applicationService.currentUser.netid,this._dataService.sponsorSearchAllQuery.offset=0),this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchAllQuery),this._requestTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){n?e.loadData():t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.sponsorSearchAllQuery.keyword=e.keyword,this._dataService.sponsorSearchAllQuery.date=e.date,this._dataService.sponsorSearchAllQuery.offset=0,this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchAllQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/request",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.sponsorSearchAllQuery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||M1)(Mo(_S),Mo(mb),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},M1.\u0275cmp=gt({type:M1,selectors:[["app-short-visiting-sponsor-search-all-page"]],viewQuery:function(e,t){var n;1&e&&(rc(T1,!0),rc(A1,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"List"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-visitor-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",3),Io(7,"app-ga-request-table",4,5),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[i1,x1,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),M1);function I1(e,t){if(1&e&&(Io(0,"h6",6),_s(1),Eo()),2&e){var n=Uo();ma(1),gs(n.disclaimer)}}var E1,O1=((E1=function(){function e(t,n){_classCallCheck(this,e),this._dialog=t,this._applicationService=n,this.disclaimer=pu.disclaimer}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.isCurrrentUserInUserGroup(pu.groups.cs).subscribe({next:function(t){t||e.open(nQ)},error:function(t){e.open(nQ)}})}}]),e}()).\u0275fac=function(e){return new(e||E1)(Mo(Bx),Mo(_S))},E1.\u0275cmp=gt({type:E1,selectors:[["app-ga-customer-service-dashboard"]],decls:11,vars:2,consts:[[1,"polyu-page-headline"],["cols","4","rowHeight","1:1",3,"gutterSize"],["md-colspan","1","colspan","1"],["routerLink","./request/search","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"],[1,"polyu-cell-text"],["class","disclaimer-text",4,"ngIf"],[1,"disclaimer-text"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Customer Service Dashboard"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"mat-grid-list",1),Oo(5,"mat-grid-tile",2),Io(6,"mat-grid-tile",3),Io(7,"div",4),_s(8,"Search Request"),Eo(),Eo(),Eo(),Io(9,"div"),Do(10,I1,2,1,"h6",5),Eo()),2&e&&(ma(4),Ao("gutterSize","30px"),ma(6),Ao("ngIf",t.disclaimer))},directives:[YR,bR,_b,Cb,Ed],styles:[".polyu-grid-cell[_ngcontent-%COMP%]{background:#f2f2f2;cursor:pointer}.polyu-grid-cell[_ngcontent-%COMP%]:hover{background:#ffe6e6;font-size:105%}.polyu-grid-cell[_ngcontent-%COMP%]:focus{outline:none;border:0}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5pt 0}.polyu-cell-text[_ngcontent-%COMP%]{font-size:1.3em;cursor:pointer}.disclaimer-text[_ngcontent-%COMP%]{text-align:right}"]}),E1);function R1(e,t){1&e&&(Io(0,"h5"),_s(1," Upon approval granted by Head of Department, please approach departmental delegates for arranging visitor\u2019s vehicular access, if needed. "),Oo(2,"br"),_s(3," For inquiry, please contact FMO Help Desk at ext. 7777 or refer to "),Io(4,"a",6),_s(5,"FAQ"),Eo(),_s(6," for details. "),Eo())}function P1(e,t){1&e&&(_s(0," For inquiry, please contact FMO Help Desk at ext. 7777 or refer to "),Io(1,"a",6),_s(2,"FAQ"),Eo(),_s(3," for details.\n"))}function Y1(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function F1(e,t){1&e&&(Io(0,"mat-grid-list",8),Oo(1,"mat-grid-tile",9),Io(2,"mat-grid-tile",10),Io(3,"div",11),_s(4,"Guest Access"),Eo(),Eo(),Eo()),2&e&&Ao("gutterSize","30px")}function q1(e,t){1&e&&(Io(0,"mat-grid-tile",13),Io(1,"div",11),_s(2,"Multiple Access over"),Oo(3,"br"),_s(4,"prescribed period"),Oo(5,"br"),_s(6,"(require HoD approval)"),Eo(),Eo())}function V1(e,t){1&e&&(Io(0,"mat-grid-tile",10),Io(1,"div",11),_s(2,"Guest Access"),Eo(),Eo())}function H1(e,t){1&e&&(Oo(0,"mat-grid-tile",9),Io(1,"mat-grid-tile",14),Io(2,"div",11),_s(3,"Vehicle Access"),Eo(),Eo())}function N1(e,t){if(1&e&&(Io(0,"mat-grid-list",12),Do(1,q1,7,0,"ng-template",7),Do(2,V1,3,0,"ng-template",7),Do(3,H1,4,0,"ng-template",7),Eo()),2&e){var n=Uo(2);Ao("gutterSize","30px"),ma(1),Ao("ngIf",n.showODA),ma(1),Ao("ngIf",n.showVRS),ma(1),Ao("ngIf",n.showVA)}}function B1(e,t){if(1&e&&(Do(0,F1,5,1,"ng-template",7),Do(1,N1,4,4,"ng-template",7)),2&e){var n=Uo();Ao("ngIf",n.showODA&&!n.showVRS&&!n.showVA),ma(1),Ao("ngIf",n.showODA&&(n.showVRS||n.showVA))}}function j1(e,t){1&e&&(Io(0,"mat-grid-list",18),Oo(1,"mat-grid-tile",9),Io(2,"mat-grid-tile",10),Io(3,"div",11),_s(4,"Guest Access"),Eo(),Eo(),Eo()),2&e&&Ao("gutterSize","30px")}function z1(e,t){1&e&&(Io(0,"mat-grid-tile",13),Io(1,"div",11),_s(2,"Multiple Access over"),Oo(3,"br"),_s(4,"prescribed period"),Oo(5,"br"),_s(6,"(require HoD approval)"),Eo(),Eo())}function U1(e,t){1&e&&(Io(0,"mat-grid-tile",10),Io(1,"div",11),_s(2,"Guest Access"),Eo(),Eo())}function W1(e,t){1&e&&(Oo(0,"mat-grid-tile",9),Io(1,"mat-grid-tile",14),Io(2,"div",11),_s(3,"Vehicle Access"),Eo(),Eo())}function G1(e,t){if(1&e&&(Io(0,"mat-grid-list",19),Do(1,z1,7,0,"ng-template",7),Do(2,U1,3,0,"ng-template",7),Do(3,W1,4,0,"ng-template",7),Eo()),2&e){var n=Uo(2);Ao("gutterSize","30px"),ma(1),Ao("ngIf",n.showODA),ma(1),Ao("ngIf",n.showVRS),ma(1),Ao("ngIf",n.showVA)}}function Q1(e,t){1&e&&(Io(0,"mat-grid-tile",20),Io(1,"div",11),_s(2,"Role Management"),Eo(),Eo())}function K1(e,t){1&e&&(Io(0,"mat-grid-tile",21),Io(1,"div",11),_s(2,"Department Management"),Eo(),Eo())}function $1(e,t){if(1&e){var n=Fo();Io(0,"mat-tab-group",15),Ho("selectedTabChange",(function(e){return en(n),Uo().tabChanged(e)})),Io(1,"mat-tab",16),Do(2,j1,5,1,"ng-template",7),Do(3,G1,4,4,"ng-template",7),Eo(),Io(4,"mat-tab",17),Io(5,"mat-grid-list",18),Do(6,Q1,3,0,"ng-template",7),Do(7,K1,3,0,"ng-template",7),Eo(),Eo(),Eo()}if(2&e){var i=Uo();Ao("selectedIndex",i.selectedIndex),ma(2),Ao("ngIf",i.showODA&&!i.showVRS&&!i.showVA),ma(1),Ao("ngIf",i.showODA&&(i.showVRS||i.showVA)),ma(2),Ao("gutterSize","30px"),ma(1),Ao("ngIf",i.roles.indexOf("ROLE_VRS_MG_FMO_ROLE_MGR")>=0||i.roles.indexOf("ROLE_VRS_MG_DEPT_ADMIN_ROLE_MGR")>=0||i.roles.indexOf("ROLE_VRS_SYSTEM_ROLE_ADMIN")>=0),ma(1),Ao("ngIf",i.roles.indexOf("ROLE_VRS_DEPARTMENT_LIST_ADMIN")>=0)}}var J1,X1,Z1=((J1=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._dataService=i,this.isLoading=!1,this.showVRS=!1,this.showODA=!1,this.showVA=!1,this.showSettings=!1,this.roles=[],this.selectedIndex=i.mainMenuTabIdx}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"tabChanged",value:function(e){this._dataService.mainMenuTabIdx=e.index}},{key:"checkAccessRight",value:function(){var e=this._dialog;this.roles=this._applicationService.currentUser.roles,this.showVRS=this._applicationService.currentUser.roles.indexOf(pu.roles.multipleAccessUser)>=0,this.showODA=this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStaff)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessUserStudent)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessCS)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessStaffApprover)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessStudentApprover)>=0,this.showVA=this._applicationService.currentUser.roles.indexOf(pu.roles.vehicleAccessUser)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.vehicleAccessPremiumUser)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.vehicleAccessAdmin)>=0,this.showSettings=this._applicationService.currentUser.roles.indexOf(pu.roles.managerFMORoleMgr)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.managerDeptRoleMgr)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.systemRoleAdmin)>=0,this.showVRS||this.showODA||this.showVA||this.showSettings||e.open(nQ)}}]),e}()).\u0275fac=function(e){return new(e||J1)(Mo(_S),Mo(Bx),Mo(KQ))},J1.\u0275cmp=gt({type:J1,selectors:[["app-main-sponsor-dashboard"]],decls:10,vars:5,consts:[[1,"polyu-page-headline"],[3,"ngIf","ngIfElse"],["studentDescription",""],[1,"polyu-overlay-container"],[4,"ngIf"],["advancedDashboard",""],["target","_blank","href","https://www.polyu.edu.hk/fmo/en/useful-information/campus-access-arrangement/faqnews/"],[3,"ngIf"],["cols","4","rowHeight","1:1",3,"gutterSize"],["md-colspan","1","colspan","1"],["routerLink","./requester/request","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"],[1,"polyu-cell-text"],["cols","4","rowHeight","1:1.2",3,"gutterSize"],["routerLink","/ma","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"],["routerLink","./va","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"],[1,"tab-group",3,"selectedIndex","selectedTabChange"],["label","User Dashboard"],["label","Management Dashboard (ITS)"],["cols","4","rowHeight","1:1",1,"polyu-grid-list",3,"gutterSize"],["cols","4","rowHeight","1:1.2",1,"polyu-grid-list",3,"gutterSize"],["routerLink","./management/roles","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"],["routerLink","./management/departments","routerLinkActive","active","md-colspan","2","colspan","2",1,"polyu-grid-cell"]],template:function(e,t){if(1&e&&(Io(0,"h4",0),_s(1,"Requester Dashboard"),Eo(),Do(2,R1,7,0,"ng-template",1),Do(3,P1,4,0,"ng-template",null,2,mc),Io(5,"div",3),Do(6,Y1,2,0,"app-overlay",4),Do(7,B1,2,2,"ng-template",1),Do(8,$1,8,6,"ng-template",null,5,mc),Eo()),2&e){var n=So(4),i=So(9);ma(2),Ao("ngIf",t.roles.indexOf("ROLE_GA_USER_STAFF")>=0&&t.roles.indexOf("ROLE_VA_PREMIUM_USER")<0)("ngIfElse",n),ma(4),Ao("ngIf",t.isLoading),ma(1),Ao("ngIf",t.roles.indexOf("ROLE_VRS_MG_FMO_ROLE_MGR")<0&&t.roles.indexOf("ROLE_VRS_MG_DEPT_ADMIN_ROLE_MGR")<0&&t.roles.indexOf("ROLE_VRS_SYSTEM_ROLE_ADMIN")<0&&t.roles.indexOf("ROLE_VRS_DEPARTMENT_LIST_ADMIN")<0)("ngIfElse",i)}},directives:[Ed,tV,nV,YR,bR,_b,Cb,Eq,wq],styles:[".tab-group[_ngcontent-%COMP%]{margin-top:40px}.polyu-grid-list[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;margin-bottom:30px;margin-top:15px}.polyu-grid-cell[_ngcontent-%COMP%]{background:#f2f2f2;cursor:pointer}.polyu-grid-cell[_ngcontent-%COMP%]:hover{background:#ffe6e6;font-size:105%}.polyu-grid-cell[_ngcontent-%COMP%]:focus{outline:none;border:0}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-cell-text[_ngcontent-%COMP%]{font-size:1.3em;cursor:pointer;line-height:110%;text-align:center}"]}),J1),e0=["dataFilter"],t0=["requestTable"],n0=((X1=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._snackBar=i,this._route=a,this._dialog=r,this._location=o,this._cd=s,this._dataService=l,this.message=null,this.hideHelpMessage=this._route.snapshot.data.hideHelpMessage,this._role=this._route.snapshot.data.role}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(0),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.gaFMOSearchAllQuery),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(this._role)>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){null===this._dataService.gaFMOSearchAllQuery&&(this._dataService.gaFMOSearchAllQuery=new ZD,this._dataService.gaFMOSearchAllQuery.date=null,this._dataService.gaFMOSearchAllQuery.keyword="",this._dataService.gaFMOSearchAllQuery.type="all",this._dataService.gaFMOSearchAllQuery.cs=!0,this._dataService.gaFMOSearchAllQuery.createdBy=""),this._requestTableComponent.setQueryCriteria(this._dataService.gaFMOSearchAllQuery),this._requestTableComponent.refresh()}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.gaFMOSearchAllQuery.keyword=e.keyword,this._dataService.gaFMOSearchAllQuery.date=e.date,this._dataService.gaFMOSearchAllQuery.offset=0,this._requestTableComponent.setQueryCriteria(this._dataService.gaFMOSearchAllQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/fmo",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.gaFMOSearchAllQuery=null,this._location.back()}},{key:"export",value:function(){var e=this._applicationService.gennerateDownloadGuestAccessRequestsLink(this._dataService.gaFMOSearchAllQuery);window.open(e,"_blank")}}]),e}()).\u0275fac=function(e){return new(e||X1)(Mo(_S),Mo(mb),Mo(EY),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},X1.\u0275cmp=gt({type:X1,selectors:[["app-ga-fmo-search-page"]],viewQuery:function(e,t){var n;1&e&&(rc(e0,!0),rc(t0,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:17,vars:1,consts:[[1,"polyu-page-headline"],[3,"hidden"],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","primary","href","/vrs-ajax/ShortVisiting/generateReport","target","_blank"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Search Request"),Eo(),Io(2,"h5",1),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-visitor-search-bar",2,3),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",4),Io(7,"app-ga-request-table",5,6),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",7),Io(10,"button",8),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Io(12,"div"),Io(13,"a",9),_s(14,"Download last 7 and future 14 days request report"),Eo(),Io(15,"button",8),Ho("click",(function(){return t.export()})),_s(16,"Export"),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("hidden",t.hideHelpMessage))},directives:[i1,x1,bS,wS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),X1),i0=["errorComponent"];function a0(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,19),Eo())}function r0(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function o0(e,t){1&e&&Oo(0,"th",20)}function s0(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.index,i=Uo();ma(1),vs(" ",10*i.paginator.pageIndex+(n+1)," ")}}function l0(e,t){1&e&&(Io(0,"th",20),_s(1," Visit Start Date "),Oo(2,"br"),Io(3,"small",22),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function c0(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDate?zl(2,1,n.accessDate,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function u0(e,t){1&e&&(Io(0,"th",20),_s(1," Visit End Date "),Oo(2,"br"),Io(3,"small",22),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function d0(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.exitDate?zl(2,1,n.exitDate,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function h0(e,t){1&e&&(Io(0,"th",20),_s(1," Venue to Visit "),Eo())}function f0(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"locationPipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.accessLocation)," ")}}function p0(e,t){1&e&&(Io(0,"th",20),_s(1," Requester "),Eo())}function m0(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.sponsorName)}}function _0(e,t){1&e&&(Io(0,"th",20),_s(1," Purpose of Visit "),Eo())}function g0(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.purposeOfVisit)}}function v0(e,t){1&e&&(Io(0,"th",20),_s(1," No. of Visitors "),Eo())}function y0(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.visitorCount)}}function k0(e,t){1&e&&Oo(0,"th",20)}function b0(e,t){if(1&e){var n=Fo();Io(0,"td",24),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onActionBtnClicked(e,i)})),Io(1,"button",25),_s(2),Eo(),Eo()}if(2&e){var i=Uo();ma(2),gs(i.action)}}function w0(e,t){1&e&&Oo(0,"th",20)}function C0(e,t){if(1&e){var n=Fo();Io(0,"td",21),Io(1,"mat-checkbox",26),Ho("change",(function(e){en(n);var i=t.$implicit;return Uo().onCheckboxChanged(i,e.checked)})),Eo(),Eo()}if(2&e){var i=t.$implicit,a=Uo();ma(1),Ao("checked",a.selectedItemIds.indexOf(i.requestId)>=0)}}function D0(e,t){1&e&&Oo(0,"tr",27)}function S0(e,t){if(1&e){var n=Fo();Io(0,"tr",28),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var M0,x0=((M0=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["sequence","accessDate","exitDate","accessLocation","requester","purposeOfVisit","visitorCount","more","selection"],this._query=new ZD,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onActionClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1,this.action="Details",this.selectedItemIds=[],this.isGlobalChecked=!1}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onActionBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onActionClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this.selectedItemIds=[],this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"onCheckboxChanged",value:function(e,t){this.selectedItemIds=t?this.selectedItemIds.concat(e.requestId):this.selectedItemIds.filter((function(t){return t!==e.requestId}))}},{key:"getSelectedRequests",value:function(){return this.selectedItemIds}},{key:"clearSelectedRequests",value:function(){this.selectedItemIds=[]}},{key:"selectCurrentPage",value:function(e){var t=this;if(e){var n=this._dataSource.currentData.filter((function(e){return t.selectedItemIds.indexOf(e.requestId)<0}));this.selectedItemIds=this.selectedItemIds.concat(n.map((function(e){return e.requestId})))}else{var i=this._dataSource.currentData.map((function(e){return e.requestId}));this.selectedItemIds=this.selectedItemIds.filter((function(e){return i.indexOf(e)<0}))}}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||M0)(Mo(jr))},M0.\u0275cmp=gt({type:M0,selectors:[["app-ga-request-pending-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(i0,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},inputs:{action:"action"},outputs:{selected:"selected",onActionClicked:"onActionClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:36,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","sequence"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accessDate"],["matColumnDef","exitDate"],["matColumnDef","accessLocation"],["matColumnDef","requester"],["mat-cell","","class","polyu-multi-lines-text",4,"matCellDef"],["matColumnDef","purposeOfVisit"],["matColumnDef","visitorCount"],["matColumnDef","more"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","selection"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"polyu-optional"],["mat-cell","",1,"polyu-multi-lines-text"],["mat-cell","",3,"click"],["mat-raised-button",""],["color","primary",3,"checked","change"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,a0,3,0,"div",0),Io(1,"div"),Do(2,r0,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,o0,1,0,"th",4),Do(8,s0,2,1,"td",5),Po(),Ro(9,6),Do(10,l0,5,0,"th",4),Do(11,c0,3,5,"td",5),Po(),Ro(12,7),Do(13,u0,5,0,"th",4),Do(14,d0,3,5,"td",5),Po(),Ro(15,8),Do(16,h0,2,0,"th",4),Do(17,f0,3,3,"td",5),Po(),Ro(18,9),Do(19,p0,2,0,"th",4),Do(20,m0,2,1,"td",10),Po(),Ro(21,11),Do(22,_0,2,0,"th",4),Do(23,g0,2,1,"td",10),Po(),Ro(24,12),Do(25,v0,2,0,"th",4),Do(26,y0,2,1,"td",10),Po(),Ro(27,13),Do(28,k0,1,0,"th",4),Do(29,b0,3,1,"td",14),Po(),Ro(30,15),Do(31,w0,1,0,"th",4),Do(32,C0,2,1,"td",5),Po(),Do(33,D0,1,0,"tr",16),Do(34,S0,1,2,"tr",17),Eo(),Io(35,"mat-paginator",18),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(28),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,gE,TF,LF],pipes:[ih,oh,_X],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),M0),T0=["dataFilter"],A0=["requestTable"];function L0(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function I0(e,t){1&e&&(Oo(0,"span",19),Io(1,"div",20),_s(2," Guest Access Workflow for student is enabled."),Eo())}function E0(e,t){1&e&&(Oo(0,"span",21),Io(1,"div",20),_s(2," Guest Access Workflow for student is disabled."),Eo())}var O0,R0=((O0=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._router=i,this._route=a,this._dialog=r,this._location=o,this._cd=s,this._dataService=l,this.message=null,this.isWorkflowEnable=!1,this.isInAction=!0,this.icon=null,this.resultMessage=null,this.hideHelpMessage=this._route.snapshot.data.hideHelpMessage,this.roles=this._route.snapshot.data.roles}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(1),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.gaStudentApproverSearchAllQuery),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.currentUser.roles.find((function(t){return e.roles.indexOf(t)}))?this.loadData():t.open(nQ)}},{key:"loadData",value:function(){var e=this;null===this._dataService.gaStudentApproverSearchAllQuery&&(this._dataService.gaStudentApproverSearchAllQuery=new ZD,this._dataService.gaStudentApproverSearchAllQuery.date=null,this._dataService.gaStudentApproverSearchAllQuery.keyword="",this._dataService.gaStudentApproverSearchAllQuery.type="all",this._dataService.gaStudentApproverSearchAllQuery.cs=!0,this._dataService.gaStudentApproverSearchAllQuery.createdBy="",this._dataService.gaStudentApproverSearchAllQuery.ownerType="S",this._dataService.gaStudentApproverSearchAllQuery.status="H",this._dataService.gaStudentApproverSearchAllQuery.includeVisitorCount=!0),this._requestTableComponent.setQueryCriteria(this._dataService.gaStudentApproverSearchAllQuery);var t=this,n=new fX;n.configId="VRS.GA.WORKFLOW.STUDENT.ENABLE",this.isLoading=!0,this._applicationService.getGuestAccessConfig(n).pipe(Pv((function(n){if(t.isWorkflowEnable="true"===n.value.toLowerCase(),t.roles.indexOf(pu.roles.hod)>=0){var i=new oS;return i.netId=e._applicationService.currentUser.netid,i.offset=-1,i.row=-1,t._applicationService.searchGuestAccessHodList(i).pipe(V((function(e){var t,n=[],i=_createForOfIteratorHelper(e.data);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.deptAbbr)}}catch(r){i.e(r)}finally{i.f()}return n})))}var a=new JD;return a.netId=t._applicationService.currentUser.netid,a.offset=-1,a.row=-1,t._applicationService.searchGuestAccessApprovers(a).pipe(V((function(e){var t,n=[],i=_createForOfIteratorHelper(e.data);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.deptAbbr)}}catch(r){i.e(r)}finally{i.f()}return n})))})),Uv((function(e){e&&(t._dataService.gaStudentApproverSearchAllQuery.supervisedDepartments=e)}))).subscribe((function(t){e.isLoading=!1,e._requestTableComponent.refresh()}),(function(e){t.isInAction=!1,t.isLoading=!1,t.icon="error",t.resultMessage=e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Fail to approve guest access requests.",e&&401===e.status&&t._dialog.open(_T),t._cd.detectChanges()}))}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.gaStudentApproverSearchAllQuery.keyword=e.keyword,this._dataService.gaStudentApproverSearchAllQuery.date=e.date,this._dataService.gaStudentApproverSearchAllQuery.offset=0,this._dataService.gaStudentApproverSearchAllQuery.type="H",this._dataService.gaStudentApproverSearchAllQuery.ownerType="S",this._requestTableComponent.setQueryCriteria(this._dataService.gaStudentApproverSearchAllQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/studentApprover/request",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.gaStudentApproverSearchAllQuery=null,this._location.back()}},{key:"reject",value:function(){var e=this,t=this,n=this._requestTableComponent.getSelectedRequests();n.length<=0?this._snackBar.open("No Visitor is selected.",null,{duration:4e3}):(this.isLoading=!0,this._applicationService.rejectGuestAccessRequests(n).subscribe((function(e){t.isLoading=!1,t._requestTableComponent.clearSelectedRequests(),t._requestTableComponent.refresh(),t._snackBar.open("Success.",null,{duration:4e3})}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to reject guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)})))}},{key:"approve",value:function(){var e=this,t=this,n=this._requestTableComponent.getSelectedRequests();n.length<=0?this._snackBar.open("No Visitor is selected.",null,{duration:4e3}):(this.isLoading=!0,this._applicationService.approveGuestAccessRequests(n).subscribe((function(e){t.isLoading=!1,t._requestTableComponent.clearSelectedRequests(),t._requestTableComponent.refresh(),t._snackBar.open("Success.",null,{duration:4e3})}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to approve guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)})))}},{key:"selectAll",value:function(){this._requestTableComponent.selectCurrentPage(!0)}},{key:"clearSelection",value:function(){this._requestTableComponent.clearSelectedRequests()}}]),e}()).\u0275fac=function(e){return new(e||O0)(Mo(_S),Mo(EY),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},O0.\u0275cmp=gt({type:O0,selectors:[["app-ga-student-approver-search-page"]],viewQuery:function(e,t){var n;1&e&&(rc(T0,!0),rc(A0,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:38,vars:8,consts:[[1,"polyu-page-headline"],[3,"hidden"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-notice-container"],[3,"ngIf","ngIfElse"],["workflowDisabled",""],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-alert-messge"],[1,"green-dot"],[1,"polyu-notice"],[1,"grey-dot"]],template:function(e,t){if(1&e&&(Io(0,"h4",0),_s(1,"Search Pending Request (Student)"),Eo(),Io(2,"h5",1),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",2),Do(5,L0,2,0,"app-overlay",3),Io(6,"div",1),Io(7,"div",4),Do(8,I0,3,0,"ng-template",5),Do(9,E0,3,0,"ng-template",null,6,mc),Eo(),Io(11,"app-ga-visitor-search-bar",7,8),Ho("clicked",(function(){return t.search()})),Eo(),Io(13,"div",9),Io(14,"app-ga-request-pending-table",10,11),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Io(16,"div",12),Io(17,"button",13),Ho("click",(function(){return t.clearSelection()})),_s(18,"Clear All Selected Requests"),Eo(),Io(19,"button",13),Ho("click",(function(){return t.selectAll()})),_s(20,"Select Current Page"),Eo(),Eo(),Eo(),Io(21,"div",14),Io(22,"button",15),Ho("click",(function(){return t.back()})),_s(23,"Back"),Eo(),Io(24,"div"),Io(25,"button",15),Ho("click",(function(){return t.reject()})),_s(26,"Reject"),Eo(),Io(27,"button",15),Ho("click",(function(){return t.approve()})),_s(28,"Approve"),Eo(),Eo(),Eo(),Eo(),Io(29,"div",1),Io(30,"div",16),Io(31,"mat-icon",17),_s(32),Eo(),Eo(),Io(33,"h3",18),_s(34),Eo(),Io(35,"div",12),Io(36,"button",15),Ho("click",(function(){return t.back()})),_s(37,"Back"),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(10);ma(2),Ao("hidden",t.hideHelpMessage),ma(3),Ao("ngIf",t.isLoading),ma(1),Ao("hidden",!t.isInAction),ma(2),Ao("ngIf",t.isWorkflowEnable)("ngIfElse",n),ma(21),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage)}},directives:[Ed,i1,x0,bS,pT,tV,nV],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.polyu-alert-messge[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.polyu-notice-container[_ngcontent-%COMP%]{padding:20px 5px 5px 0;display:table-cell;vertical-align:middle}.green-dot[_ngcontent-%COMP%]{background-color:#093}.green-dot[_ngcontent-%COMP%], .grey-dot[_ngcontent-%COMP%]{height:15px;width:15px;border-radius:50%;display:inline-block}.grey-dot[_ngcontent-%COMP%]{background-color:grey}.polyu-notice[_ngcontent-%COMP%]{display:inline}"]}),O0),P0=["dataFilter"],Y0=["requestTable"];function F0(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function q0(e,t){1&e&&(Oo(0,"span",19),Io(1,"div",20),_s(2," Guest Access Workflow for staff is enabled."),Eo())}function V0(e,t){1&e&&(Oo(0,"span",21),Io(1,"div",20),_s(2," Guest Access Workflow for staff is disabled."),Eo())}var H0,N0,B0,j0=((H0=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._router=i,this._route=a,this._dialog=r,this._location=o,this._cd=s,this._dataService=l,this.message=null,this.isWorkflowEnable=!1,this.isInAction=!0,this.icon=null,this.resultMessage=null,this.hideHelpMessage=this._route.snapshot.data.hideHelpMessage,this.roles=this._route.snapshot.data.roles}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(1),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.gaStaffApproverSearchAllQuery),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog;this._applicationService.currentUser.roles.find((function(t){return e.roles.indexOf(t)}))?this.loadData():t.open(nQ)}},{key:"loadData",value:function(){var e=this;null===this._dataService.gaStaffApproverSearchAllQuery&&(this._dataService.gaStaffApproverSearchAllQuery=new ZD,this._dataService.gaStaffApproverSearchAllQuery.date=null,this._dataService.gaStaffApproverSearchAllQuery.keyword="",this._dataService.gaStaffApproverSearchAllQuery.type="all",this._dataService.gaStaffApproverSearchAllQuery.cs=!0,this._dataService.gaStaffApproverSearchAllQuery.createdBy="",this._dataService.gaStaffApproverSearchAllQuery.ownerType="W",this._dataService.gaStaffApproverSearchAllQuery.status="H",this._dataService.gaStaffApproverSearchAllQuery.includeVisitorCount=!0),this._requestTableComponent.setQueryCriteria(this._dataService.gaStaffApproverSearchAllQuery);var t=this,n=new fX;n.configId="VRS.GA.WORKFLOW.STAFF.ENABLE",this.isLoading=!0,this._applicationService.getGuestAccessConfig(n).pipe(Pv((function(n){if(t.isWorkflowEnable="true"===n.value.toLowerCase(),t.roles.indexOf(pu.roles.hod)>=0){var i=new oS;return i.netId=e._applicationService.currentUser.netid,i.offset=-1,i.row=-1,t._applicationService.searchGuestAccessHodList(i).pipe(V((function(e){var t,n=[],i=_createForOfIteratorHelper(e.data);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.deptAbbr)}}catch(r){i.e(r)}finally{i.f()}return n})))}var a=new JD;return a.netId=t._applicationService.currentUser.netid,a.offset=-1,a.row=-1,t._applicationService.searchGuestAccessApprovers(a).pipe(V((function(e){var t,n=[],i=_createForOfIteratorHelper(e.data);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.deptAbbr)}}catch(r){i.e(r)}finally{i.f()}return n})))})),Uv((function(e){e&&(t._dataService.gaStaffApproverSearchAllQuery.supervisedDepartments=e)}))).subscribe((function(t){e.isLoading=!1,e._requestTableComponent.refresh()}),(function(e){t.isInAction=!1,t.isLoading=!1,t.icon="error",t.resultMessage=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Fail to approve guest access requests.",e&&401===e.status&&t._dialog.open(_T),t._cd.detectChanges()}))}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.gaStaffApproverSearchAllQuery.keyword=e.keyword,this._dataService.gaStaffApproverSearchAllQuery.date=e.date,this._dataService.gaStaffApproverSearchAllQuery.offset=0,this._dataService.gaStaffApproverSearchAllQuery.ownerType="W",this._dataService.gaStaffApproverSearchAllQuery.status="H",this._requestTableComponent.setQueryCriteria(this._dataService.gaStaffApproverSearchAllQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/staffApprover/request",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.gaStaffApproverSearchAllQuery=null,this._location.back()}},{key:"reject",value:function(){var e=this,t=this,n=this._requestTableComponent.getSelectedRequests();n.length<=0?this._snackBar.open("No Visitor is selected.",null,{duration:4e3}):(this.isLoading=!0,this._applicationService.rejectGuestAccessRequests(n).subscribe((function(e){t.isLoading=!1,t._requestTableComponent.clearSelectedRequests(),t._requestTableComponent.refresh(),t._snackBar.open("Success.",null,{duration:4e3})}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to reject guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)})))}},{key:"approve",value:function(){var e=this,t=this,n=this._requestTableComponent.getSelectedRequests();n.length<=0?this._snackBar.open("No Visitor is selected.",null,{duration:4e3}):(this.isLoading=!0,this._applicationService.approveGuestAccessRequests(n).subscribe((function(e){t.isLoading=!1,t._requestTableComponent.clearSelectedRequests(),t._requestTableComponent.refresh(),t._snackBar.open("Success.",null,{duration:4e3})}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to approve guest access requests.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)})))}},{key:"selectAll",value:function(){this._requestTableComponent.selectCurrentPage(!0)}},{key:"clearSelection",value:function(){this._requestTableComponent.clearSelectedRequests()}}]),e}()).\u0275fac=function(e){return new(e||H0)(Mo(_S),Mo(EY),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},H0.\u0275cmp=gt({type:H0,selectors:[["app-ga-staff-approver-search-page"]],viewQuery:function(e,t){var n;1&e&&(rc(P0,!0),rc(Y0,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:38,vars:8,consts:[[1,"polyu-page-headline"],[3,"hidden"],[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-notice-container"],[3,"ngIf","ngIfElse"],["workflowDisabled",""],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-alert-messge"],[1,"green-dot"],[1,"polyu-notice"],[1,"grey-dot"]],template:function(e,t){if(1&e&&(Io(0,"h4",0),_s(1,"Search Pending Request (Staff)"),Eo(),Io(2,"h5",1),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"div",2),Do(5,F0,2,0,"app-overlay",3),Io(6,"div",1),Io(7,"div",4),Do(8,q0,3,0,"ng-template",5),Do(9,V0,3,0,"ng-template",null,6,mc),Eo(),Io(11,"app-ga-visitor-search-bar",7,8),Ho("clicked",(function(){return t.search()})),Eo(),Io(13,"div",9),Io(14,"app-ga-request-pending-table",10,11),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Io(16,"div",12),Io(17,"button",13),Ho("click",(function(){return t.clearSelection()})),_s(18,"Clear All Selected Requests"),Eo(),Io(19,"button",13),Ho("click",(function(){return t.selectAll()})),_s(20,"Select Current Page"),Eo(),Eo(),Eo(),Io(21,"div",14),Io(22,"button",15),Ho("click",(function(){return t.back()})),_s(23,"Back"),Eo(),Io(24,"div"),Io(25,"button",15),Ho("click",(function(){return t.reject()})),_s(26,"Reject"),Eo(),Io(27,"button",15),Ho("click",(function(){return t.approve()})),_s(28,"Approve"),Eo(),Eo(),Eo(),Eo(),Io(29,"div",1),Io(30,"div",16),Io(31,"mat-icon",17),_s(32),Eo(),Eo(),Io(33,"h3",18),_s(34),Eo(),Io(35,"div",12),Io(36,"button",15),Ho("click",(function(){return t.back()})),_s(37,"Back"),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(10);ma(2),Ao("hidden",t.hideHelpMessage),ma(3),Ao("ngIf",t.isLoading),ma(1),Ao("hidden",!t.isInAction),ma(2),Ao("ngIf",t.isWorkflowEnable)("ngIfElse",n),ma(21),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage)}},directives:[Ed,i1,x0,bS,pT,tV,nV],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.polyu-alert-messge[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.polyu-notice-container[_ngcontent-%COMP%]{padding:20px 5px 5px 0;display:table-cell;vertical-align:middle}.green-dot[_ngcontent-%COMP%]{background-color:#093}.green-dot[_ngcontent-%COMP%], .grey-dot[_ngcontent-%COMP%]{height:15px;width:15px;border-radius:50%;display:inline-block}.grey-dot[_ngcontent-%COMP%]{background-color:grey}.polyu-notice[_ngcontent-%COMP%]{display:inline}"]}),H0),z0=["dataFilter"],U0=["requestTable"],W0=((B0=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this.message=null,this.hideHelpMessage=this._route.snapshot.data.hideHelpMessage,this._role=this._route.snapshot.data.role}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(0),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setVisibility(1),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.csSearchAllQuery),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(this._role)>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){null===this._dataService.csSearchAllQuery&&(this._dataService.csSearchAllQuery=new ZD,this._dataService.csSearchAllQuery.date=null,this._dataService.csSearchAllQuery.keyword="",this._dataService.csSearchAllQuery.type="all",this._dataService.csSearchAllQuery.cs=!0,this._dataService.csSearchAllQuery.createdBy=""),this._requestTableComponent.setQueryCriteria(this._dataService.csSearchAllQuery),this._requestTableComponent.refresh()}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.csSearchAllQuery.keyword=e.keyword,this._dataService.csSearchAllQuery.date=e.date,this._dataService.csSearchAllQuery.offset=0,this._requestTableComponent.setQueryCriteria(this._dataService.csSearchAllQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/cs/request",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.csSearchAllQuery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||B0)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},B0.\u0275cmp=gt({type:B0,selectors:[["app-ga-cs-search-page"]],viewQuery:function(e,t){var n;1&e&&(rc(z0,!0),rc(U0,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:14,vars:1,consts:[[1,"polyu-page-headline"],[3,"hidden"],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","primary","href","/vrs-ajax/ShortVisiting/generateReport","target","_blank","download",""]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Search Request"),Eo(),Io(2,"h5",1),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-visitor-search-bar",2,3),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",4),Io(7,"app-ga-request-table",5,6),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",7),Io(10,"button",8),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Io(12,"a",9),_s(13,"Download last 7 and future 14 days request report"),Eo(),Eo()),2&e&&(ma(2),Ao("hidden",t.hideHelpMessage))},directives:[i1,x1,bS,wS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),B0),G0=((N0=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"close",value:function(){this._matDialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||N0)(Mo(Fx))},N0.\u0275cmp=gt({type:N0,selectors:[["ga-access-restriction-dialog"]],decls:11,vars:0,consts:[[1,"polyu-alert-dialog"],[1,"polyu-alert-message"],[1,"text-left"],["type","submit","mat-raised-button","","color","primary",1,"polyu-dialog-btn",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h3",1),Io(2,"b"),_s(3,"FMO Notice"),Eo(),Eo(),Oo(4,"br"),Io(5,"h5",2),_s(6,"As you are aware, the situation regarding the COVID-19 infections in Hong Kong is worsening. To safeguard the health and safety of all staff and students against the spread of virus on campus, the period of tightened access control to the PolyU campus will be extended. Access to the PolyU campus will be restricted to staff, students and pre-authorized persons with essential duties on campus only until further notice. Visitors will not be allowed on campus except those with special approval from the concerned Head of Department or Student Affairs Office based on solid evidence for the essentiality of campus access."),Eo(),Io(7,"h5",2),_s(8,"Special approval for campus access should be sought at least 2 working days before the intended date of visit through the Visitor Registration System."),Eo(),Io(9,"button",3),Ho("click",(function(){return t.close()})),_s(10,"Close"),Eo(),Eo())},directives:[bS],styles:[".polyu-alert-dialog[_ngcontent-%COMP%]{text-align:center;padding:40px 80px;max-height:60vh;max-width:80vw}.polyu-alert-icon[_ngcontent-%COMP%]{transform:scale(2)}.polyu-alert-message[_ngcontent-%COMP%]{margin:30px 0 0}.polyu-dialog-btn[_ngcontent-%COMP%]{margin:10px 0}.text-left[_ngcontent-%COMP%]{text-align:left}"]}),N0);function Q0(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function K0(e,t){1&e&&(Io(0,"mat-grid-list",29),Io(1,"mat-grid-tile",30),Io(2,"div",12),Io(3,"div",13),Io(4,"div",15),Io(5,"b"),_s(6,"Manage"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&Ao("gutterSize","30px")}function $0(e,t){if(1&e&&(Io(0,"mat-grid-list",10),Io(1,"mat-grid-tile",11),Io(2,"div",12),Io(3,"div",13),Oo(4,"img",14),Io(5,"div",15),Io(6,"b"),_s(7,"New"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(8,"mat-grid-tile",16),Io(9,"div",17),Io(10,"div",13),Oo(11,"img",18),Io(12,"div",19),Io(13,"b"),_s(14,"List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(15,"mat-grid-tile",20),Io(16,"div",21),Io(17,"div",13),Oo(18,"img",22),Io(19,"div",23),Io(20,"b"),_s(21,"Modify"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(22,"mat-grid-tile",24),Io(23,"div",25),Io(24,"div",13),Oo(25,"img",26),Io(26,"div",27),Io(27,"b"),_s(28,"Cancel"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Do(29,K0,7,1,"mat-grid-list",28)),2&e){var n=Uo();Ao("gutterSize","30px"),ma(29),Ao("ngIf",n.showCS)}}function J0(e,t){1&e&&(Io(0,"mat-grid-tile",48),Io(1,"div",12),Io(2,"div",13),Oo(3,"img",41),Io(4,"div",15),Io(5,"b"),_s(6,"Sponsored Guest"),Oo(7,"br"),_s(8,"Approval Enforcement"),Eo(),Eo(),Eo(),Eo(),Eo())}function X0(e,t){if(1&e&&(Io(0,"mat-tab",34),Io(1,"mat-grid-list",10),Io(2,"mat-grid-tile",35),Io(3,"div",12),Io(4,"div",13),Oo(5,"img",18),Io(6,"div",15),Io(7,"b"),_s(8,"List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(9,"mat-grid-tile",36),Io(10,"div",12),Io(11,"div",13),Oo(12,"img",37),Io(13,"div",15),Io(14,"b"),_s(15,"Visitor Request"),Oo(16,"br"),_s(17,"Count Threshold"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(18,"mat-grid-tile",38),Io(19,"div",12),Io(20,"div",13),Oo(21,"img",39),Io(22,"div",15),Io(23,"b"),_s(24,"Visitor Request"),Oo(25,"br"),_s(26,"Suspension"),Eo(),Eo(),Eo(),Eo(),Eo(),Do(27,J0,9,0,"ng-template",33),Io(28,"mat-grid-tile",40),Io(29,"div",12),Io(30,"div",13),Oo(31,"img",41),Io(32,"div",15),Io(33,"b"),_s(34,"Manage"),Oo(35,"br"),_s(36,"QR Codes"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(37,"mat-grid-tile",42),Io(38,"div",12),Io(39,"div",13),Oo(40,"img",41),Io(41,"div",15),Io(42,"b"),_s(43,"Bulk Manage"),Oo(44,"br"),_s(45,"QR Codes"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(46,"mat-grid-tile",43),Io(47,"div",12),Io(48,"div",13),Oo(49,"img",18),Io(50,"div",15),Io(51,"b"),_s(52,"Staff Sponsor "),Oo(53,"br"),_s(54," List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(55,"mat-grid-tile",44),Io(56,"div",12),Io(57,"div",13),Oo(58,"img",18),Io(59,"div",15),Io(60,"b"),_s(61,"Student Sponsor "),Oo(62,"br"),_s(63," List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(64,"mat-grid-tile",45),Io(65,"div",12),Io(66,"div",13),Oo(67,"img",18),Io(68,"div",15),Io(69,"b"),_s(70,"Head of Department "),Oo(71,"br"),_s(72," List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(73,"mat-grid-tile",46),Io(74,"div",12),Io(75,"div",13),Oo(76,"img",18),Io(77,"div",15),Io(78,"b"),_s(79,"Set HoD\u2019s Delegate"),Oo(80,"br"),_s(81,"(Student)"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(82,"mat-grid-tile",47),Io(83,"div",12),Io(84,"div",13),Oo(85,"img",18),Io(86,"div",15),Io(87,"b"),_s(88,"Set HoD\u2019s Delegate"),Oo(89,"br"),_s(90,"(Staff)"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e){var n=Uo(2);ma(1),Ao("gutterSize","30px"),ma(26),Ao("ngIf",n.workflowEnable)}}function Z0(e,t){1&e&&(Io(0,"mat-tab",49),Io(1,"mat-grid-list",50),Oo(2,"mat-grid-tile",51),Io(3,"mat-grid-tile",52),Io(4,"div",12),Io(5,"div",13),Oo(6,"img",18),Io(7,"div",15),Io(8,"b"),_s(9,"List"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("gutterSize","30px"))}function e2(e,t){1&e&&(Oo(0,"mat-grid-tile",51),Io(1,"mat-grid-tile",54),Io(2,"div",12),Io(3,"div",13),Oo(4,"img",18),Io(5,"div",15),Io(6,"b"),_s(7,"Pending Student Request "),Oo(8,"br"),_s(9," List"),Eo(),Eo(),Eo(),Eo(),Eo())}function t2(e,t){1&e&&(Oo(0,"mat-grid-tile",51),Io(1,"mat-grid-tile",55),Io(2,"div",12),Io(3,"div",13),Oo(4,"img",18),Io(5,"div",15),Io(6,"b"),_s(7,"Pending Staff Request "),Oo(8,"br"),_s(9," List"),Eo(),Eo(),Eo(),Eo(),Eo())}function n2(e,t){1&e&&(Io(0,"mat-grid-tile",56),Io(1,"div",12),Io(2,"div",13),Oo(3,"img",18),Io(4,"div",15),Io(5,"b"),_s(6,"Pending Request "),Oo(7,"br"),_s(8," List (Student)"),Eo(),Eo(),Eo(),Eo(),Eo())}function i2(e,t){1&e&&(Io(0,"mat-grid-tile",57),Io(1,"div",12),Io(2,"div",13),Oo(3,"img",18),Io(4,"div",15),Io(5,"b"),_s(6,"Pending Request "),Oo(7,"br"),_s(8," List (Staff)"),Eo(),Eo(),Eo(),Eo(),Eo())}function a2(e,t){1&e&&(Io(0,"mat-grid-tile",58),Io(1,"div",12),Io(2,"div",13),Oo(3,"img",18),Io(4,"div",15),Io(5,"b"),_s(6,"Set HoD\u2019s Delegate"),Oo(7,"br"),_s(8,"(Student)"),Eo(),Eo(),Eo(),Eo(),Eo())}function r2(e,t){1&e&&(Io(0,"mat-grid-tile",59),Io(1,"div",12),Io(2,"div",13),Oo(3,"img",18),Io(4,"div",15),Io(5,"b"),_s(6,"Set HoD\u2019s Delegate"),Oo(7,"br"),_s(8,"(Staff)"),Eo(),Eo(),Eo(),Eo(),Eo())}function o2(e,t){if(1&e&&(Io(0,"mat-tab",53),Io(1,"mat-grid-list",50),Do(2,e2,10,0,"ng-template",33),Do(3,t2,10,0,"ng-template",33),Do(4,n2,9,0,"ng-template",33),Do(5,i2,9,0,"ng-template",33),Do(6,a2,9,0,"ng-template",33),Do(7,r2,9,0,"ng-template",33),Eo(),Eo()),2&e){var n=Uo(2);ma(1),Ao("gutterSize","30px"),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_GA_STUDENT_APPROVER")>=0&&n.roles.indexOf("ROLE_HOD")<0),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_GA_STAFF_APPROVER")>=0&&n.roles.indexOf("ROLE_HOD")<0),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_HOD")>=0),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_HOD")>=0),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_HOD")>=0),ma(1),Ao("ngIf",n.roles.indexOf("ROLE_HOD")>=0)}}function s2(e,t){1&e&&(Io(0,"mat-tab",60),Io(1,"mat-grid-list",50),Io(2,"mat-grid-tile",61),Io(3,"div",12),Io(4,"div",13),Oo(5,"img",18),Io(6,"div",15),Io(7,"b"),_s(8,"Staff Sponsor "),Oo(9,"br"),_s(10," List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(11,"mat-grid-tile",62),Io(12,"div",12),Io(13,"div",13),Oo(14,"img",18),Io(15,"div",15),Io(16,"b"),_s(17,"Student Sponsor "),Oo(18,"br"),_s(19," List"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("gutterSize","30px"))}function l2(e,t){if(1&e){var n=Fo();Io(0,"mat-tab-group",31),Ho("selectedTabChange",(function(e){return en(n),Uo().tabChanged(e)})),Io(1,"mat-tab",32),Io(2,"mat-grid-list",10),Io(3,"mat-grid-tile",11),Io(4,"div",12),Io(5,"div",13),Oo(6,"img",14),Io(7,"div",15),Io(8,"b"),_s(9,"New"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(10,"mat-grid-tile",16),Io(11,"div",17),Io(12,"div",13),Oo(13,"img",18),Io(14,"div",19),Io(15,"b"),_s(16,"List"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(17,"mat-grid-tile",20),Io(18,"div",21),Io(19,"div",13),Oo(20,"img",22),Io(21,"div",23),Io(22,"b"),_s(23,"Modify"),Eo(),Eo(),Eo(),Eo(),Eo(),Io(24,"mat-grid-tile",24),Io(25,"div",25),Io(26,"div",13),Oo(27,"img",26),Io(28,"div",27),Io(29,"b"),_s(30,"Cancel"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Do(31,X0,91,2,"ng-template",33),Do(32,Z0,10,1,"ng-template",33),Do(33,o2,8,7,"ng-template",33),Do(34,s2,20,1,"ng-template",33),Eo()}if(2&e){var i=Uo();Ao("selectedIndex",i.selectedIndex),ma(2),Ao("gutterSize","30px"),ma(29),Ao("ngIf",i.roles.indexOf("fmoadmin")>=0),ma(1),Ao("ngIf",i.roles.indexOf("ROLE_GA_CS")>=0),ma(1),Ao("ngIf",(i.roles.indexOf("ROLE_GA_STUDENT_APPROVER")>=0||i.roles.indexOf("ROLE_GA_STAFF_APPROVER")>=0||i.roles.indexOf("ROLE_HOD")>=0)&&i.workflowEnable),ma(1),Ao("ngIf",i.roles.indexOf("ROLE_GA_TRAFFIC_ANALYST")>=0)}}function c2(e,t){1&e&&(Io(0,"a",63),_s(1,"User Guide"),Eo())}function u2(e,t){1&e&&(Io(0,"a",64),_s(1,"User Guide"),Eo())}function d2(e,t){if(1&e&&(Io(0,"h6",65),_s(1),Eo()),2&e){var n=Uo();ma(1),gs(n.disclaimer)}}var h2,f2,p2,m2=((h2=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._dialog=n,this._cd=i,this._location=a,this._dataService=r,this.roles=[],this.isLoading=!1,this.selectedIndex=r.gaMenauTabIdx,this.workflowEnable=pu.module.guestAccess.workflowEnable}return _createClass(e,[{key:"ngOnInit",value:function(){this.isStudent=!1,this.isStaff=!1,this.showCS=!1,this.checkAccessRight(),this.disclaimer=pu.disclaimer,this.roles=this._applicationService.currentUser.roles}},{key:"checkAccessRight",value:function(){var e=this._dialog,t=this,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){n?(t._applicationService.isCurrrentUserInUserGroup(pu.groups.students).subscribe({next:function(e){t.isStudent=e,t._cd.detectChanges()}}),t._applicationService.isCurrrentUserInUserGroup(pu.groups.staff).subscribe({next:function(e){t.isStaff=e,t._cd.detectChanges()}}),t._applicationService.isCurrrentUserInUserGroup(pu.groups.cs).subscribe({next:function(e){t.showCS=e,t._cd.detectChanges()}}),t.loadData()):e.open(nQ)},error:function(t){e.open(nQ)}})}},{key:"loadData",value:function(){var e=this;if(!this._dataService.isGAAccessRestrictionAlertShown){var t=new fX;t.configId="VRS.ALERT.ACCESS_RESTRICT.ENABLE",this._applicationService.getGuestAccessConfig(t).subscribe((function(t){"true"===t.value.toLowerCase()&&e._dialog.open(G0)}),(function(e){console.log(e)})),this._dataService.isGAAccessRestrictionAlertShown=!0}}},{key:"back",value:function(){this._location.back(),this._dataService.gaMenauTabIdx=0}},{key:"tabChanged",value:function(e){this._dataService.gaMenauTabIdx=e.index}}]),e}()).\u0275fac=function(e){return new(e||h2)(Mo(_S),Mo(Bx),Mo(jr),Mo(ju),Mo(KQ))},h2.\u0275cmp=gt({type:h2,selectors:[["app-ga-sponsor-crud-dashboard"]],decls:18,vars:6,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[3,"ngIf","ngIfElse"],["advancedDashboard",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["href","/manual/Visitor-Registration-System-User-Guide-for-Student.pdf","target","_blank",4,"ngIf"],["href","/manual/Visitor-Registration-System-User-Guide-for-Staff.pdf","target","_blank",4,"ngIf"],["class","disclaimer-text",4,"ngIf"],["cols","2","rowHeight","2:1",1,"polyu-grid-list",3,"gutterSize"],["routerLink","./create","routerLinkActive","active",1,"polyu-grid-cell","md-elevation-z5"],[1,"polyu-grid-cell-container","polyu-grid-cell-container-top-left"],[1,"polyu-grid-button"],["src","assets/img/oda-new.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text","polyu-cell-text-top-left"],["routerLink","./search","routerLinkActive","active",1,"polyu-grid-cell"],[1,"polyu-grid-cell-container","polyu-grid-cell-container-top-right"],["src","assets/img/oda-list.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text","polyu-cell-text-top-right"],["routerLink","./modify","routerLinkActive","active",1,"polyu-grid-cell"],[1,"polyu-grid-cell-container","polyu-grid-cell-container-bottom-left"],["src","assets/img/oda-modfiy.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text","polyu-cell-text-bottom-left"],["routerLink","./cancel","routerLinkActive","active",1,"polyu-grid-cell"],[1,"polyu-grid-cell-container","polyu-grid-cell-container-bottom-right"],["src","assets/img/oda-cancel.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text","polyu-cell-text-bottom-right"],["class","polyu-grid-list","cols","1","rowHeight","15:1",3,"gutterSize",4,"ngIf"],["cols","1","rowHeight","15:1",1,"polyu-grid-list",3,"gutterSize"],["routerLink","../../cs","routerLinkActive","active",1,"polyu-grid-cell","md-elevation-z5"],[1,"tab-group",3,"selectedIndex","selectedTabChange"],["label","User Dashboard"],[3,"ngIf"],["label","FMO Dashboard"],["routerLink","../fmo/list","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../fmo/settings","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["src","assets/img/outline_traffic_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","../fmo/blackout","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["src","assets/img/outline_event_busy_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","../../ga/fmo/qrcode/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["src","assets/img/outline_check_box_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","../../ga/fmo/qrcode/search2","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/staffsponsor/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/studentsponsor/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/fmo/hod/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/fmo/studentapprover/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/fmo/staffapprover/search","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../fmo/workflow","routerLinkActive","active","colspan","1",1,"polyu-grid-cell","md-elevation-z5"],["label","CS Dashboard"],["cols","4","rowHeight","4:4",1,"polyu-grid-list",3,"gutterSize"],["colspan","1"],["routerLink","../../cs/request/search","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["label","Approver Dashboard"],["routerLink","../studentApprover/request/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../staffApprover/request/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../hod/studentrequest/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../hod/staffrequest/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../hod/studentapprover/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../hod/staffapprover/list","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["label","Traffic Analysis Dashboard"],["routerLink","../../ga/staffsponsor/search","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["routerLink","../../ga/studentsponsor/search","routerLinkActive","active","colspan","2",1,"polyu-grid-cell","md-elevation-z5"],["href","/manual/Visitor-Registration-System-User-Guide-for-Student.pdf","target","_blank"],["href","/manual/Visitor-Registration-System-User-Guide-for-Staff.pdf","target","_blank"],[1,"disclaimer-text"]],template:function(e,t){if(1&e&&(Io(0,"div",0),Do(1,Q0,2,0,"app-overlay",1),Io(2,"div"),Io(3,"h4",2),_s(4,"Guest Access"),Eo(),Io(5,"h5"),_s(6,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Do(7,$0,30,2,"ng-template",3),Do(8,l2,35,6,"ng-template",null,4,mc),Io(10,"div",5),Io(11,"button",6),Ho("click",(function(){return t.back()})),_s(12,"Back"),Eo(),Io(13,"div"),Do(14,c2,2,0,"a",7),Do(15,u2,2,0,"a",8),Eo(),Eo(),Io(16,"div"),Do(17,d2,2,1,"h6",9),Eo(),Eo(),Eo()),2&e){var n=So(9);ma(1),Ao("ngIf",t.isLoading),ma(6),Ao("ngIf",t.roles.indexOf("fmoadmin")<0&&t.roles.indexOf("ROLE_GA_STUDENT_APPROVER")<0&&t.roles.indexOf("ROLE_GA_STAFF_APPROVER")<0&&t.roles.indexOf("ROLE_GA_CS")<0&&t.roles.indexOf("ROLE_GA_TRAFFIC_ANALYST")<0&&t.roles.indexOf("ROLE_HOD")<0)("ngIfElse",n),ma(7),Ao("ngIf",t.isStudent),ma(1),Ao("ngIf",t.isStaff),ma(2),Ao("ngIf",t.disclaimer)}},directives:[Ed,bS,tV,nV,YR,bR,_b,Cb,Eq,wq],styles:[".polyu-grid-list[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;margin-bottom:30px;margin-top:15px}.polyu-grid-cell-container[_ngcontent-%COMP%]{width:100%;height:100%;cursor:pointer;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border:0 solid grey;background:#f2f2f2}.polyu-grid-cell-container-top-left[_ngcontent-%COMP%]{border-radius:0 0 0 0}.polyu-grid-cell-container-top-left[_ngcontent-%COMP%]:hover{background:#ffe6e6}.polyu-grid-cell-container-top-right[_ngcontent-%COMP%]{border-radius:0 0 0 0}.polyu-grid-cell-container-top-right[_ngcontent-%COMP%]:hover{background:#ffe6e6}.polyu-grid-cell-container-bottom-left[_ngcontent-%COMP%]{border-radius:0 0 0 0}.polyu-grid-cell-container-bottom-left[_ngcontent-%COMP%]:hover{background:#ffe6e6}.polyu-grid-cell-container-bottom-right[_ngcontent-%COMP%]{border-radius:0 0 0 0}.polyu-grid-cell-container-bottom-right[_ngcontent-%COMP%]:hover{background:#ffe6e6}.polyu-grid-cell-container-bottom-left[_ngcontent-%COMP%]:hover, .polyu-grid-cell-container-bottom-right[_ngcontent-%COMP%]:hover, .polyu-grid-cell-container-top-left[_ngcontent-%COMP%]:hover, .polyu-grid-cell-container-top-right[_ngcontent-%COMP%]:hover{font-size:105%}.polyu-grid-cell[_ngcontent-%COMP%]:focus{outline:none;border:0}.tab-group[_ngcontent-%COMP%]{margin-top:40px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-cell-text[_ngcontent-%COMP%]{width:100%;font-size:1.3em;line-height:110%;color:#4d4d4d;margin-top:10px}.polyu-grid-button[_ngcontent-%COMP%]{display:block;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.disclaimer-text[_ngcontent-%COMP%]{text-align:right}@media only screen and (max-width:800px){.polyu-cell-image[_ngcontent-%COMP%]{display:none}}"]}),h2),_2=["dataFilter"],g2=["requestTable"],v2=((f2=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._dialog=i,this._location=a,this._cd=r,this._dataService=o,this.message=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(1),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setVisibility(0),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.sponsorSearchEditableQuery),this.checkAccessRight()}},{key:"loadData",value:function(){null===this._dataService.sponsorSearchEditableQuery&&(this._dataService.sponsorSearchEditableQuery=new ZD,this._dataService.sponsorSearchEditableQuery.date=null,this._dataService.sponsorSearchEditableQuery.keyword="",this._dataService.sponsorSearchEditableQuery.type="modify",this._dataService.sponsorSearchEditableQuery.cs=!1,this._dataService.sponsorSearchEditableQuery.offset=0,this._dataService.sponsorSearchEditableQuery.createdBy=this._applicationService.currentUser.netid),this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchEditableQuery),this._requestTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){n?e.loadData():t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.sponsorSearchEditableQuery.keyword=e.keyword,this._dataService.sponsorSearchEditableQuery.date=e.date,this._dataService.sponsorSearchEditableQuery.offset=0,this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchEditableQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/request",e.requestId],{state:{updateEnable:!0,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.sponsorSearchEditableQuery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||f2)(Mo(_S),Mo(mb),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},f2.\u0275cmp=gt({type:f2,selectors:[["app-ga-sponsor-search-updatable-page"]],viewQuery:function(e,t){var n;1&e&&(rc(_2,!0),rc(g2,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Modify"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-visitor-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",3),Io(7,"app-ga-request-table",4,5),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[i1,x1,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),f2),y2=["dataFilter"],k2=["requestTable"],b2=((p2=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._dialog=i,this._location=a,this._cd=r,this._dataService=o,this.message=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.setVisibility(1),this._dataFilterComponent.focus(),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setVisibility(0),this._requestTableComponent.setDataStore(this._dataSource),this._dataFilterComponent.setValue(this._dataService.sponsorSearchCancelQyery),this.checkAccessRight()}},{key:"loadData",value:function(){null===this._dataService.sponsorSearchCancelQyery&&(this._dataService.sponsorSearchCancelQyery=new ZD,this._dataService.sponsorSearchCancelQyery.date=null,this._dataService.sponsorSearchCancelQyery.keyword="",this._dataService.sponsorSearchCancelQyery.type="cancel",this._dataService.sponsorSearchCancelQyery.cs=!1,this._dataService.sponsorSearchCancelQyery.offset=0,this._dataService.sponsorSearchCancelQyery.createdBy=this._applicationService.currentUser.netid),this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchCancelQyery),this._requestTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this,t=this._dialog,n=pu.groups.staff.concat(pu.groups.students);this._applicationService.isCurrrentUserInUserGroup(n).subscribe({next:function(n){n?e.loadData():t.open(nQ)},error:function(e){t.open(nQ)}})}},{key:"search",value:function(){this._requestTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.sponsorSearchCancelQyery.keyword=e.keyword,this._dataService.sponsorSearchCancelQyery.date=e.date,this._dataService.sponsorSearchCancelQyery.offset=0,this._requestTableComponent.setQueryCriteria(this._dataService.sponsorSearchCancelQyery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/requester/request",e.requestId],{state:{updateEnable:!1,cancelEnable:!0}})}},{key:"back",value:function(){this._dataService.sponsorSearchCancelQyery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||p2)(Mo(_S),Mo(mb),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},p2.\u0275cmp=gt({type:p2,selectors:[["app-ga-sponsor-search-cancellable-page"]],viewQuery:function(e,t){var n;1&e&&(rc(y2,!0),rc(k2,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[1,"polyu-visitors-container"],[3,"selected","onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Cancel"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-visitor-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",3),Io(7,"app-ga-request-table",4,5),Ho("selected",(function(e){return t.onRequestSelected(e)}))("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[i1,x1,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),p2);function w2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed max value 10000. "),Eo())}function C2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Small than minimum value 1. "),Eo())}function D2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed max value 10000. "),Eo())}function S2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Small than minimum value 1. "),Eo())}function M2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed max value 10000. "),Eo())}function x2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Small than minimum value 1. "),Eo())}function T2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed max value 10000. "),Eo())}function A2(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Small than minimum value 1. "),Eo())}var L2,I2=((L2=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._gloStudentThesholdform=this._generateDataForm(this._formBuilder),this._gloStaffThesholdform=this._generateDataForm(this._formBuilder),this._indStudentThesholdform=this._generateDataForm(this._formBuilder),this._indStaffThesholdform=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({configId:["",N_.required],value:["",[N_.required,N_.max(1e4),N_.min(1)]],createdAt:[""],createdBy:[""],updatedBy:[""],updatedAt:[""]})}},{key:"validateGloStudentThresholdConfigForm",value:function(){return this._gloStudentThesholdform.markAllAsTouched(),this._gloStudentThesholdform.updateValueAndValidity(),this._gloStudentThesholdform.statusChanges.pipe(Vv(this._gloStudentThesholdform.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"validateGloStaffThresholdConfigForm",value:function(){return this._gloStaffThesholdform.markAllAsTouched(),this._gloStaffThesholdform.updateValueAndValidity(),this._gloStaffThesholdform.statusChanges.pipe(Vv(this._gloStaffThesholdform.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"validateIndStudentThresholdConfigForm",value:function(){return this._indStudentThesholdform.markAllAsTouched(),this._indStudentThesholdform.updateValueAndValidity(),this._indStudentThesholdform.statusChanges.pipe(Vv(this._indStudentThesholdform.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"validateIndStaffThresholdConfigForm",value:function(){return this._indStaffThesholdform.markAllAsTouched(),this._indStaffThesholdform.updateValueAndValidity(),this._indStaffThesholdform.statusChanges.pipe(Vv(this._indStaffThesholdform.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalGloStudnetThreadholdConfig",value:function(){return{configId:this._gloStudentThesholdform.get("configId").value?this._gloStudentThesholdform.get("configId").value:null,value:this._gloStudentThesholdform.get("value").value?this._gloStudentThesholdform.get("value").value:null,createdAt:this._gloStudentThesholdform.get("createdAt").value?this._gloStudentThesholdform.get("createdAt").value:null,createdBy:this._gloStudentThesholdform.get("createdBy").value?this._gloStudentThesholdform.get("createdBy").value:null,updatedBy:this._gloStudentThesholdform.get("updatedBy").value?this._gloStudentThesholdform.get("updatedBy").value:null,updatedAt:this._gloStudentThesholdform.get("updatedAt").value?this._gloStudentThesholdform.get("updatedAt").value:null}}},{key:"evalGloStaffThreadholdConfig",value:function(){return{configId:this._gloStaffThesholdform.get("configId").value?this._gloStaffThesholdform.get("configId").value:null,value:this._gloStaffThesholdform.get("value").value?this._gloStaffThesholdform.get("value").value:null,createdAt:this._gloStaffThesholdform.get("createdAt").value?this._gloStaffThesholdform.get("createdAt").value:null,createdBy:this._gloStaffThesholdform.get("createdBy").value?this._gloStaffThesholdform.get("createdBy").value:null,updatedBy:this._gloStaffThesholdform.get("updatedBy").value?this._gloStaffThesholdform.get("updatedBy").value:null,updatedAt:this._gloStaffThesholdform.get("updatedAt").value?this._gloStaffThesholdform.get("updatedAt").value:null}}},{key:"evalIndStudnetThreadholdConfig",value:function(){return{configId:this._indStudentThesholdform.get("configId").value?this._indStudentThesholdform.get("configId").value:null,value:this._indStudentThesholdform.get("value").value?this._indStudentThesholdform.get("value").value:null,createdAt:this._indStudentThesholdform.get("createdAt").value?this._indStudentThesholdform.get("createdAt").value:null,createdBy:this._indStudentThesholdform.get("createdBy").value?this._indStudentThesholdform.get("createdBy").value:null,updatedBy:this._indStudentThesholdform.get("updatedBy").value?this._indStudentThesholdform.get("updatedBy").value:null,updatedAt:this._indStudentThesholdform.get("updatedAt").value?this._indStudentThesholdform.get("updatedAt").value:null}}},{key:"evalIndStaffThreadholdConfig",value:function(){return{configId:this._indStaffThesholdform.get("configId").value?this._indStaffThesholdform.get("configId").value:null,value:this._indStaffThesholdform.get("value").value?this._indStaffThesholdform.get("value").value:null,createdAt:this._indStaffThesholdform.get("createdAt").value?this._indStaffThesholdform.get("createdAt").value:null,createdBy:this._indStaffThesholdform.get("createdBy").value?this._indStaffThesholdform.get("createdBy").value:null,updatedBy:this._indStaffThesholdform.get("updatedBy").value?this._indStaffThesholdform.get("updatedBy").value:null,updatedAt:this._indStaffThesholdform.get("updatedAt").value?this._indStaffThesholdform.get("updatedAt").value:null}}},{key:"setGloStudentThreshold",value:function(e){this._gloStudentThesholdform.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"setGloStaffThreshold",value:function(e){this._gloStaffThesholdform.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"setIndStudentThreshold",value:function(e){this._indStudentThesholdform.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"setIndStaffThreshold",value:function(e){this._indStaffThesholdform.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"gloStudentThesholdform",get:function(){return this._gloStudentThesholdform}},{key:"gloStaffThesholdform",get:function(){return this._gloStaffThesholdform}},{key:"indStudentThesholdform",get:function(){return this._indStudentThesholdform}},{key:"indStaffThesholdform",get:function(){return this._indStaffThesholdform}}]),e}()).\u0275fac=function(e){return new(e||L2)(Mo(tv))},L2.\u0275cmp=gt({type:L2,selectors:[["app-ga-configuration-input"]],decls:36,vars:16,consts:[[1,"polyu-grid-container"],[1,"polyu-grid-cell-4"],[3,"formGroup"],["appearance","standard"],["type","number","matInput","",3,"formControl"],[4,"ngIf"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"div",1),Io(2,"form",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Visitor request count for sponsored by student (Global)"),Eo(),Oo(6,"input",4),Do(7,w2,2,0,"mat-error",5),Do(8,C2,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo(),Io(9,"div",0),Io(10,"div",1),Io(11,"form",2),Io(12,"mat-form-field",3),Io(13,"mat-label"),_s(14,"Visitor request count for sponsored by staff (Global)"),Eo(),Oo(15,"input",4),Do(16,D2,2,0,"mat-error",5),Do(17,S2,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo(),Io(18,"div",0),Io(19,"div",1),Io(20,"form",2),Io(21,"mat-form-field",3),Io(22,"mat-label"),_s(23,"Visitor request count for sponsored by student (Individual)"),Eo(),Oo(24,"input",4),Do(25,M2,2,0,"mat-error",5),Do(26,x2,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo(),Io(27,"div",0),Io(28,"div",1),Io(29,"form",2),Io(30,"mat-form-field",3),Io(31,"mat-label"),_s(32,"Visitor request count for sponsored by staff (Individual)"),Eo(),Oo(33,"input",4),Do(34,T2,2,0,"mat-error",5),Do(35,A2,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(2),Ao("formGroup",t.gloStudentThesholdform),ma(4),Ao("formControl",t.gloStudentThesholdform.controls.value),ma(1),Ao("ngIf",t.gloStudentThesholdform.controls.value.hasError("max")),ma(1),Ao("ngIf",t.gloStudentThesholdform.controls.value.hasError("min")),ma(3),Ao("formGroup",t.gloStaffThesholdform),ma(4),Ao("formControl",t.gloStaffThesholdform.controls.value),ma(1),Ao("ngIf",t.gloStaffThesholdform.controls.value.hasError("max")),ma(1),Ao("ngIf",t.gloStaffThesholdform.controls.value.hasError("min")),ma(3),Ao("formGroup",t.indStudentThesholdform),ma(4),Ao("formControl",t.indStudentThesholdform.controls.value),ma(1),Ao("ngIf",t.indStudentThesholdform.controls.value.hasError("max")),ma(1),Ao("ngIf",t.indStudentThesholdform.controls.value.hasError("min")),ma(3),Ao("formGroup",t.indStaffThesholdform),ma(4),Ao("formControl",t.indStaffThesholdform.controls.value),ma(1),Ao("ngIf",t.indStaffThesholdform.controls.value.hasError("max")),ma(1),Ao("ngIf",t.indStaffThesholdform.controls.value.hasError("min")))},directives:[jg,Y_,Qg,SI,gI,eg,RE,M_,P_,Wg,Ed,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),L2),E2=["gaConfigurationInput"];function O2(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var R2,P2=((R2=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._cd=i,this._dialog=a,this._location=r,this.isLoading=!1,this.isInAction=!0,this.icon=null,this.resultMessage=null}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadDate():e.open(nQ)}},{key:"loadDate",value:function(){var e=this,t=this,n=new fX;n.configId="VRS.Job.GA.TrafficAlert.Threshold.Student";var i=new fX;i.configId="VRS.Job.GA.TrafficAlert.Threshold.Staff";var a=new fX;a.configId="VRS.Job.GA.TrafficAlert.Threshold.IndStudent";var r=new fX;r.configId="VRS.Job.GA.TrafficAlert.Threshold.IndStaff",this.isLoading=!0,m_([this._applicationService.getGuestAccessConfig(n),this._applicationService.getGuestAccessConfig(i),this._applicationService.getGuestAccessConfig(a),this._applicationService.getGuestAccessConfig(r)]).subscribe((function(n){e.isLoading=!1,t._gaConfigurationInput.setGloStudentThreshold(n[0]),t._gaConfigurationInput.setGloStaffThreshold(n[1]),t._gaConfigurationInput.setIndStudentThreshold(n[2]),t._gaConfigurationInput.setIndStaffThreshold(n[3])}),(function(e){t.isInAction=!1,t.isLoading=!1,t.icon="error",t.resultMessage=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Unable to load settings.",t._cd.detectChanges(),e&&401===e.status&&t._dialog.open(_T)}))}},{key:"back",value:function(){this._location.back()}},{key:"update",value:function(){var e=this,t=m_({gloStaffThresholdIput:this._gaConfigurationInput.validateGloStaffThresholdConfigForm(),gloStudentThresholdIput:this._gaConfigurationInput.validateGloStudentThresholdConfigForm(),indStaffThresholdIput:this._gaConfigurationInput.validateIndStaffThresholdConfigForm(),indStudentThresholdIput:this._gaConfigurationInput.validateIndStudentThresholdConfigForm()}).pipe(V((function(e){var t=e.gloStaffThresholdIput,n=e.gloStudentThresholdIput,i=e.indStaffThresholdIput,a=e.indStudentThresholdIput;return t&&n&&i&&a})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isLoading=!0;var t=new hX;return t.dataList=[e._gaConfigurationInput.evalGloStaffThreadholdConfig(),e._gaConfigurationInput.evalGloStudnetThreadholdConfig(),e._gaConfigurationInput.evalIndStaffThreadholdConfig(),e._gaConfigurationInput.evalIndStudnetThreadholdConfig()],e._applicationService.updateGuestAccessConfigs(t)})),Uv((function(t){e.isInAction=!1,e.isLoading=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()})))).subscribe((function(e){}),(function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to update settings.",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}}]),e}()).\u0275fac=function(e){return new(e||R2)(Mo(_S),Mo(EY),Mo(jr),Mo(Bx),Mo(ju))},R2.\u0275cmp=gt({type:R2,selectors:[["app-ga-settings-page"]],viewQuery:function(e,t){var n;1&e&&rc(E2,!0),2&e&&ac(n=dc())&&(t._gaConfigurationInput=n.first)},decls:21,vars:5,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[3,"hidden"],["gaConfigurationInput",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-alert-messge"],[1,"polyu-action-bar"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,O2,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"Visitor Request Count Threshold"),Eo(),Io(4,"div",3),Oo(5,"app-ga-configuration-input",null,4),Io(7,"div",5),Io(8,"button",6),Ho("click",(function(){return t.back()})),_s(9,"Back"),Eo(),Io(10,"button",6),Ho("click",(function(){return t.update()})),_s(11,"Update"),Eo(),Eo(),Eo(),Io(12,"div",3),Io(13,"div",7),Io(14,"mat-icon",8),_s(15),Eo(),Eo(),Io(16,"h3",9),_s(17),Eo(),Io(18,"div",10),Io(19,"button",6),Ho("click",(function(){return t.back()})),_s(20,"Back"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(3),Ao("hidden",!t.isInAction),ma(8),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage))},directives:[Ed,I2,bS,pT,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.polyu-alert-messge[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}"]}),R2),Y2=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessBlackoutPeriod(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj);function F2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-month-view",16),Ho("pickerMomentChange",(function(e){return en(n),Uo().handlePickerMomentChange(e)}))("selectedChange",(function(e){return en(n),Uo().dateSelected(e)}))("userSelection",(function(){return en(n),Uo().userSelected()})),Eo()}if(2&e){var i=Uo();Ao("pickerMoment",i.pickerMoment)("firstDayOfWeek",i.firstDayOfWeek)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("maxDate",i.maxDate)("dateFilter",i.dateFilter)("hideOtherMonths",i.hideOtherMonths)}}function q2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-year-view",17),Ho("keyboardEnter",(function(){return en(n),Uo().focusActiveCell()}))("pickerMomentChange",(function(e){return en(n),Uo().handlePickerMomentChange(e)}))("monthSelected",(function(e){return en(n),Uo().selectMonthInYearView(e)}))("change",(function(e){return en(n),Uo().goToDateInView(e,"month")})),Eo()}if(2&e){var i=Uo();Ao("pickerMoment",i.pickerMoment)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("maxDate",i.maxDate)("dateFilter",i.dateFilter)}}function V2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-multi-year-view",18),Ho("keyboardEnter",(function(){return en(n),Uo().focusActiveCell()}))("pickerMomentChange",(function(e){return en(n),Uo().handlePickerMomentChange(e)}))("yearSelected",(function(e){return en(n),Uo().selectYearInMultiYearView(e)}))("change",(function(e){return en(n),Uo().goToDateInView(e,"year")})),Eo()}if(2&e){var i=Uo();Ao("pickerMoment",i.pickerMoment)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("maxDate",i.maxDate)("dateFilter",i.dateFilter)}}function H2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-timer-box",1),Ho("inputChange",(function(e){return en(n),Uo().setSecondValue(e)}))("valueChange",(function(e){return en(n),Uo().setSecondValue(e)})),Eo()}if(2&e){var i=Uo();Ao("showDivider",!0)("upBtnAriaLabel",i.upSecondButtonLabel)("downBtnAriaLabel",i.downSecondButtonLabel)("upBtnDisabled",!i.upSecondEnabled())("downBtnDisabled",!i.downSecondEnabled())("value",i.secondValue)("min",0)("max",59)("step",i.stepSecond)("inputLabel","Second")}}function N2(e,t){if(1&e){var n=Fo();Io(0,"div",4),Io(1,"button",5),Ho("click",(function(e){return en(n),Uo().setMeridiem(e)})),Io(2,"span",6),_s(3),Eo(),Eo(),Eo()}if(2&e){var i=Uo();ma(3),vs(" ",i.hour12ButtonLabel," ")}}function B2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-calendar",5),Ho("pickerMomentChange",(function(e){return en(n),Uo().pickerMoment=e}))("yearSelected",(function(e){return en(n),Uo().picker.selectYear(e)}))("monthSelected",(function(e){return en(n),Uo().picker.selectMonth(e)}))("selectedChange",(function(e){return en(n),Uo().dateSelected(e)})),Eo()}if(2&e){var i=Uo();Ao("firstDayOfWeek",i.picker.firstDayOfWeek)("pickerMoment",i.pickerMoment)("selected",i.picker.selected)("selecteds",i.picker.selecteds)("selectMode",i.picker.selectMode)("minDate",i.picker.minDateTime)("maxDate",i.picker.maxDateTime)("dateFilter",i.picker.dateTimeFilter)("startView",i.picker.startView)("hideOtherMonths",i.picker.hideOtherMonths)}}function j2(e,t){if(1&e){var n=Fo();Io(0,"owl-date-time-timer",6),Ho("selectedChange",(function(e){return en(n),Uo().timeSelected(e)})),Eo()}if(2&e){var i=Uo();Ao("pickerMoment",i.pickerMoment)("minDateTime",i.picker.minDateTime)("maxDateTime",i.picker.maxDateTime)("showSecondsTimer",i.picker.showSecondsTimer)("hour12Timer",i.picker.hour12Timer)("stepHour",i.picker.stepHour)("stepMinute",i.picker.stepMinute)("stepSecond",i.picker.stepSecond)}}n("wd/R");var z2=function(e){return{"owl-dt-container-info-active":e}};function U2(e,t){if(1&e){var n=Fo();Io(0,"div",7),Io(1,"div",8,9),Ho("click",(function(e){return en(n),Uo().handleClickOnInfoGroup(e,0)}))("keydown",(function(e){en(n);var t=So(9);return Uo().handleKeydownOnInfoGroup(e,t,0)})),Io(3,"span",10),Io(4,"span",11),_s(5),Eo(),Io(6,"span",12),_s(7),Eo(),Eo(),Eo(),Io(8,"div",13,14),Ho("click",(function(e){return en(n),Uo().handleClickOnInfoGroup(e,1)}))("keydown",(function(e){en(n);var t=So(2);return Uo().handleKeydownOnInfoGroup(e,t,1)})),Io(10,"span",10),Io(11,"span",11),_s(12),Eo(),Io(13,"span",12),_s(14),Eo(),Eo(),Eo(),Eo()}if(2&e){var i=Uo();ma(1),Ao("tabindex",0===i.activeSelectedIndex?0:-1)("ngClass",Rl(10,z2,0===i.activeSelectedIndex)),wo("aria-checked",0===i.activeSelectedIndex),ma(4),vs("",i.fromLabel,":"),ma(2),gs(i.fromFormattedValue),ma(1),Ao("tabindex",1===i.activeSelectedIndex?0:-1)("ngClass",Rl(12,z2,1===i.activeSelectedIndex)),wo("aria-checked",1===i.activeSelectedIndex),ma(4),vs("",i.toLabel,":"),ma(2),gs(i.toFormattedValue)}}function W2(e,t){if(1&e){var n=Fo();Io(0,"div",15),Io(1,"button",16),Ho("click",(function(e){return en(n),Uo().onCancelClicked(e)})),Io(2,"span",17),_s(3),Eo(),Eo(),Io(4,"button",16),Ho("click",(function(e){return en(n),Uo().onSetClicked(e)})),Io(5,"span",17),_s(6),Eo(),Eo(),Eo()}if(2&e){var i=Uo();ma(3),vs(" ",i.cancelLabel," "),ma(3),vs(" ",i.setLabel," ")}}function G2(e,t){}var Q2=["owl-date-time-calendar-body",""],K2=function(e,t,n){return{"owl-dt-calendar-cell-out":e,"owl-dt-calendar-cell-today":t,"owl-dt-calendar-cell-selected":n}};function $2(e,t){if(1&e){var n=Fo();Io(0,"td",3),Ho("click",(function(){en(n);var e=t.$implicit;return Uo(2).selectCell(e)})),Io(1,"span",4),_s(2),Eo(),Eo()}if(2&e){var i=t.$implicit,a=t.index,r=Uo().index,o=Uo();ys("owl-dt-calendar-cell ",i.cellClass,""),as("width",100/o.numCols,"%")("padding-top",50*o.cellRatio/o.numCols,"%")("padding-bottom",50*o.cellRatio/o.numCols,"%"),rs("owl-dt-calendar-cell-active",o.isActiveCell(r,a))("owl-dt-calendar-cell-disabled",!i.enabled)("owl-dt-calendar-cell-in-range",o.isInRange(i.value))("owl-dt-calendar-cell-range-from",o.isRangeFrom(i.value))("owl-dt-calendar-cell-range-to",o.isRangeTo(i.value)),Ao("tabindex",o.isActiveCell(r,a)?0:-1),wo("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null),ma(1),Ao("ngClass",Yl(24,K2,i.out,i.value===o.todayValue,o.isSelected(i.value))),ma(1),vs(" ",i.displayValue," ")}}function J2(e,t){if(1&e&&(Io(0,"tr",1),Do(1,$2,3,28,"td",2),Eo()),2&e){var n=t.$implicit;ma(1),Ao("ngForOf",n)}}function X2(e,t){if(1&e&&(Io(0,"th",6),Io(1,"span"),_s(2),Eo(),Eo()),2&e){var n=t.$implicit;wo("aria-label",n.long),ma(2),gs(n.short)}}var Z2=["valueInput"];function e3(e,t){1&e&&Oo(0,"div",10)}var t3,n3,i3,a3,r3,o3,s3,l3,c3,u3,d3,h3,f3,p3,m3,_3,g3,v3,y3=((t3=function e(){_classCallCheck(this,e),this.changes=new T,this.upSecondLabel="Add a second",this.downSecondLabel="Minus a second",this.upMinuteLabel="Add a minute",this.downMinuteLabel="Minus a minute",this.upHourLabel="Add a hour",this.downHourLabel="Minus a hour",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 21 years",this.nextMultiYearLabel="Next 21 years",this.switchToMonthViewLabel="Change to month view",this.switchToMultiYearViewLabel="Choose month and year",this.cancelBtnLabel="Cancel",this.setBtnLabel="Set",this.rangeFromLabel="From",this.rangeToLabel="To",this.hour12AMLabel="AM",this.hour12PMLabel="PM"}).\u0275fac=function(e){return new(e||t3)},t3.\u0275prov=fe({factory:function(){return new t3},token:t3,providedIn:"root"}),t3),k3=new je("OWL_DATE_TIME_LOCALE",{providedIn:"root",factory:function(){return Ze(Sc)}}),b3=function(){function e(){_classCallCheck(this,e),this._localeChanges=new T,this.millisecondsInDay=864e5,this.milliseondsInMinute=6e4}return _createClass(e,[{key:"compare",value:function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var n=this.clone(e),i=this.clone(t),a=this.getTime(n)-this.getTime(i);return a<0?-1:a>0?1:a}},{key:"compareYear",value:function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var n=this.getYear(e)-this.getYear(t);return n<0?-1:n>0?1:0}},{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next(e)}},{key:"getLocale",value:function(){return this.locale}},{key:"clampDate",value:function(e,t,n){return t&&this.compare(e,t)<0?t:n&&this.compare(e,n)>0?n:e}},{key:"localeChanges",get:function(){return this._localeChanges}}]),e}(),w3=new je("OWL_DATE_TIME_FORMATS"),C3=((i3=function(){function e(t,n,i,a,r,o){var s=this;_classCallCheck(this,e),this.elmRef=t,this.pickerIntl=n,this.ngZone=i,this.cdRef=a,this.dateTimeAdapter=r,this.dateTimeFormats=o,this._selecteds=[],this.startView="month",this.pickerMomentChange=new Gl,this.selectedChange=new Gl,this.userSelection=new Gl,this.yearSelected=new Gl,this.monthSelected=new Gl,this.intlChangesSub=h.EMPTY,this.moveFocusOnNextTick=!1,this.dateFilterForViews=function(e){return!!e&&(!s.dateFilter||s.dateFilter(e))&&(!s.minDate||s.dateTimeAdapter.compare(e,s.minDate)>=0)&&(!s.maxDate||s.dateTimeAdapter.compare(e,s.maxDate)<=0)},this.intlChangesSub=this.pickerIntl.changes.subscribe((function(){s.cdRef.markForCheck()}))}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngAfterContentInit",value:function(){this._currentView=this.startView}},{key:"ngAfterViewChecked",value:function(){this.moveFocusOnNextTick&&(this.moveFocusOnNextTick=!1,this.focusActiveCell())}},{key:"ngOnDestroy",value:function(){this.intlChangesSub.unsubscribe()}},{key:"toggleViews",value:function(){this.currentView="month"===this._currentView?"multi-years":"month"}},{key:"previousClicked",value:function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1),this.pickerMomentChange.emit(this.pickerMoment)}},{key:"nextClicked",value:function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1),this.pickerMomentChange.emit(this.pickerMoment)}},{key:"dateSelected",value:function(e){this.dateFilterForViews(e)&&this.selectedChange.emit(e)}},{key:"goToDateInView",value:function(e,t){this.handlePickerMomentChange(e),this.currentView=t}},{key:"handlePickerMomentChange",value:function(e){this.pickerMoment=this.dateTimeAdapter.clampDate(e,this.minDate,this.maxDate),this.pickerMomentChange.emit(this.pickerMoment)}},{key:"userSelected",value:function(){this.userSelection.emit()}},{key:"prevButtonEnabled",value:function(){return!this.minDate||!this.isSameView(this.pickerMoment,this.minDate)}},{key:"nextButtonEnabled",value:function(){return!this.maxDate||!this.isSameView(this.pickerMoment,this.maxDate)}},{key:"focusActiveCell",value:function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))}},{key:"selectYearInMultiYearView",value:function(e){this.yearSelected.emit(e)}},{key:"selectMonthInYearView",value:function(e){this.monthSelected.emit(e)}},{key:"isSameView",value:function(e,t){return"month"===this._currentView?!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t)||this.dateTimeAdapter.getMonth(e)!==this.dateTimeAdapter.getMonth(t)):"year"===this._currentView&&!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"minDate",get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._minDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._maxDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null}},{key:"pickerMoment",get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()}},{key:"selected",get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e)}},{key:"selecteds",get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)}))}},{key:"periodButtonText",get:function(){return this.isMonthView?this.dateTimeAdapter.format(this.pickerMoment,this.dateTimeFormats.monthYearLabel):this.dateTimeAdapter.getYearName(this.pickerMoment)}},{key:"periodButtonLabel",get:function(){return this.isMonthView?this.pickerIntl.switchToMultiYearViewLabel:this.pickerIntl.switchToMonthViewLabel}},{key:"prevButtonLabel",get:function(){return"month"===this._currentView?this.pickerIntl.prevMonthLabel:"year"===this._currentView?this.pickerIntl.prevYearLabel:null}},{key:"nextButtonLabel",get:function(){return"month"===this._currentView?this.pickerIntl.nextMonthLabel:"year"===this._currentView?this.pickerIntl.nextYearLabel:null}},{key:"currentView",get:function(){return this._currentView},set:function(e){this._currentView=e,this.moveFocusOnNextTick=!0}},{key:"isInSingleMode",get:function(){return"single"===this.selectMode}},{key:"isInRangeMode",get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode}},{key:"showControlArrows",get:function(){return"multi-years"!==this._currentView}},{key:"isMonthView",get:function(){return"month"===this._currentView}},{key:"owlDTCalendarClass",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||i3)(Mo(js),Mo(y3),Mo(qc),Mo(jr),Mo(b3,8),Mo(w3,8))},i3.\u0275cmp=gt({type:i3,selectors:[["owl-date-time-calendar"]],hostVars:2,hostBindings:function(e,t){2&e&&rs("owl-dt-calendar",t.owlDTCalendarClass)},inputs:{startView:"startView",minDate:"minDate",maxDate:"maxDate",pickerMoment:"pickerMoment",selected:"selected",selecteds:"selecteds",dateFilter:"dateFilter",firstDayOfWeek:"firstDayOfWeek",selectMode:"selectMode",hideOtherMonths:"hideOtherMonths"},outputs:{pickerMomentChange:"pickerMomentChange",selectedChange:"selectedChange",userSelection:"userSelection",yearSelected:"yearSelected",monthSelected:"monthSelected"},exportAs:["owlDateTimeCalendar"],decls:21,vars:16,consts:[[1,"owl-dt-calendar-control"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-control-arrow-button",3,"disabled","click"],["tabindex","-1",1,"owl-dt-control-content","owl-dt-control-button-content"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve","width","100%","height","100%",2,"enable-background","new 0 0 250.738 250.738"],["d","M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z",2,"fill-rule","evenodd","clip-rule","evenodd"],[1,"owl-dt-calendar-control-content"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-control-period-button",3,"click"],[1,"owl-dt-control-button-arrow"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","width","50%","height","50%","viewBox","0 0 292.362 292.362",0,"xml","space","preserve",2,"enable-background","new 0 0 292.362 292.362"],["d","M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n                                C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n                                s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve",2,"enable-background","new 0 0 250.738 250.738"],["d","M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                    c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                    c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                    C197.237,120.447,195.534,115.448,191.75,111.689z",2,"fill-rule","evenodd","clip-rule","evenodd"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"owl-dt-calendar-main",3,"ngSwitch"],[3,"pickerMoment","firstDayOfWeek","selected","selecteds","selectMode","minDate","maxDate","dateFilter","hideOtherMonths","pickerMomentChange","selectedChange","userSelection",4,"ngSwitchCase"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","monthSelected","change",4,"ngSwitchCase"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","yearSelected","change",4,"ngSwitchCase"],[3,"pickerMoment","firstDayOfWeek","selected","selecteds","selectMode","minDate","maxDate","dateFilter","hideOtherMonths","pickerMomentChange","selectedChange","userSelection"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","monthSelected","change"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","yearSelected","change"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"button",1),Ho("click",(function(){return t.previousClicked()})),Io(2,"span",2),Dn(),Io(3,"svg",3),Oo(4,"path",4),Eo(),Eo(),Eo(),Sn(),Io(5,"div",5),Io(6,"button",6),Ho("click",(function(){return t.toggleViews()})),Io(7,"span",2),_s(8),Io(9,"span",7),Dn(),Io(10,"svg",8),Io(11,"g"),Oo(12,"path",9),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Sn(),Io(13,"button",1),Ho("click",(function(){return t.nextClicked()})),Io(14,"span",2),Dn(),Io(15,"svg",10),Oo(16,"path",11),Eo(),Eo(),Eo(),Eo(),Sn(),Io(17,"div",12),Do(18,F2,1,9,"owl-date-time-month-view",13),Do(19,q2,1,7,"owl-date-time-year-view",14),Do(20,V2,1,7,"owl-date-time-multi-year-view",15),Eo()),2&e&&(ma(1),as("visibility",t.showControlArrows?"visible":"hidden"),Ao("disabled",!t.prevButtonEnabled()),wo("aria-label",t.prevButtonLabel),ma(5),wo("aria-label",t.periodButtonLabel),ma(2),vs(" ",t.periodButtonText," "),ma(1),as("transform","rotate("+(t.isMonthView?0:180)+"deg)"),ma(4),as("visibility",t.showControlArrows?"visible":"hidden"),Ao("disabled",!t.nextButtonEnabled()),wo("aria-label",t.nextButtonLabel),ma(4),Ao("ngSwitch",t.currentView),ma(1),Ao("ngSwitchCase","month"),ma(1),Ao("ngSwitchCase","year"),ma(1),Ao("ngSwitchCase","multi-years"))},directives:function(){return[uC,Nd,Bd,K3,$3,J3]},styles:[""],changeDetection:0}),i3),D3=((n3=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.ngZone=t,this.elmRef=n,this.pickerIntl=i,this.cdRef=a,this.dateTimeAdapter=r,this.isPM=!1,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.selectedChange=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"focus",value:function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e.elmRef.nativeElement.focus()}))}))}},{key:"setHourValueViaInput",value:function(e){this.hour12Timer&&this.isPM&&e>=1&&e<=11?e+=12:this.hour12Timer&&!this.isPM&&12===e&&(e=0),this.setHourValue(e)}},{key:"setHourValue",value:function(e){var t=this.dateTimeAdapter.setHours(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()}},{key:"setMinuteValue",value:function(e){var t=this.dateTimeAdapter.setMinutes(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()}},{key:"setSecondValue",value:function(e){var t=this.dateTimeAdapter.setSeconds(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()}},{key:"setMeridiem",value:function(e){this.isPM=!this.isPM;var t=this.hourValue;this.isPM?t+=12:t-=12,t>=0&&t<=23&&this.setHourValue(t),this.cdRef.markForCheck(),e.preventDefault()}},{key:"upHourEnabled",value:function(){return!this.maxDateTime||this.compareHours(this.stepHour,this.maxDateTime)<1}},{key:"downHourEnabled",value:function(){return!this.minDateTime||this.compareHours(-this.stepHour,this.minDateTime)>-1}},{key:"upMinuteEnabled",value:function(){return!this.maxDateTime||this.compareMinutes(this.stepMinute,this.maxDateTime)<1}},{key:"downMinuteEnabled",value:function(){return!this.minDateTime||this.compareMinutes(-this.stepMinute,this.minDateTime)>-1}},{key:"upSecondEnabled",value:function(){return!this.maxDateTime||this.compareSeconds(this.stepSecond,this.maxDateTime)<1}},{key:"downSecondEnabled",value:function(){return!this.minDateTime||this.compareSeconds(-this.stepSecond,this.minDateTime)>-1}},{key:"compareHours",value:function(e,t){var n=this.dateTimeAdapter.getHours(this.pickerMoment)+e,i=this.dateTimeAdapter.setHours(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,t)}},{key:"compareMinutes",value:function(e,t){var n=this.dateTimeAdapter.getMinutes(this.pickerMoment)+e,i=this.dateTimeAdapter.setMinutes(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,t)}},{key:"compareSeconds",value:function(e,t){var n=this.dateTimeAdapter.getSeconds(this.pickerMoment)+e,i=this.dateTimeAdapter.setSeconds(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,t)}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"pickerMoment",get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()}},{key:"minDateTime",get:function(){return this._minDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDateTime=this.getValidDate(e)}},{key:"maxDateTime",get:function(){return this._maxDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDateTime=this.getValidDate(e)}},{key:"hourValue",get:function(){return this.dateTimeAdapter.getHours(this.pickerMoment)}},{key:"hourBoxValue",get:function(){var e=this.hourValue;return this.hour12Timer?(0===e?(e=12,this.isPM=!1):e>0&&e<12?this.isPM=!1:12===e?this.isPM=!0:e>12&&e<24&&(e-=12,this.isPM=!0),e):e}},{key:"minuteValue",get:function(){return this.dateTimeAdapter.getMinutes(this.pickerMoment)}},{key:"secondValue",get:function(){return this.dateTimeAdapter.getSeconds(this.pickerMoment)}},{key:"upHourButtonLabel",get:function(){return this.pickerIntl.upHourLabel}},{key:"downHourButtonLabel",get:function(){return this.pickerIntl.downHourLabel}},{key:"upMinuteButtonLabel",get:function(){return this.pickerIntl.upMinuteLabel}},{key:"downMinuteButtonLabel",get:function(){return this.pickerIntl.downMinuteLabel}},{key:"upSecondButtonLabel",get:function(){return this.pickerIntl.upSecondLabel}},{key:"downSecondButtonLabel",get:function(){return this.pickerIntl.downSecondLabel}},{key:"hour12ButtonLabel",get:function(){return this.isPM?this.pickerIntl.hour12PMLabel:this.pickerIntl.hour12AMLabel}},{key:"owlDTTimerClass",get:function(){return!0}},{key:"owlDTTimeTabIndex",get:function(){return-1}}]),e}()).\u0275fac=function(e){return new(e||n3)(Mo(qc),Mo(js),Mo(y3),Mo(jr),Mo(b3,8))},n3.\u0275cmp=gt({type:n3,selectors:[["owl-date-time-timer"]],hostVars:3,hostBindings:function(e,t){2&e&&(wo("tabindex",t.owlDTTimeTabIndex),rs("owl-dt-timer",t.owlDTTimerClass))},inputs:{stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",pickerMoment:"pickerMoment",minDateTime:"minDateTime",maxDateTime:"maxDateTime",showSecondsTimer:"showSecondsTimer",hour12Timer:"hour12Timer"},outputs:{selectedChange:"selectedChange"},exportAs:["owlDateTimeTimer"],decls:4,vars:22,consts:[[3,"upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","boxValue","value","min","max","step","inputLabel","inputChange","valueChange"],[3,"showDivider","upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","value","min","max","step","inputLabel","inputChange","valueChange"],[3,"showDivider","upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","value","min","max","step","inputLabel","inputChange","valueChange",4,"ngIf"],["class","owl-dt-timer-hour12",4,"ngIf"],[1,"owl-dt-timer-hour12"],["type","button","tabindex","0",1,"owl-dt-control-button","owl-dt-timer-hour12-box",3,"click"],["tabindex","-1",1,"owl-dt-control-button-content"]],template:function(e,t){1&e&&(Io(0,"owl-date-time-timer-box",0),Ho("inputChange",(function(e){return t.setHourValueViaInput(e)}))("valueChange",(function(e){return t.setHourValue(e)})),Eo(),Io(1,"owl-date-time-timer-box",1),Ho("inputChange",(function(e){return t.setMinuteValue(e)}))("valueChange",(function(e){return t.setMinuteValue(e)})),Eo(),Do(2,H2,1,10,"owl-date-time-timer-box",2),Do(3,N2,4,1,"div",3)),2&e&&(Ao("upBtnAriaLabel",t.upHourButtonLabel)("downBtnAriaLabel",t.downHourButtonLabel)("upBtnDisabled",!t.upHourEnabled())("downBtnDisabled",!t.downHourEnabled())("boxValue",t.hourBoxValue)("value",t.hourValue)("min",0)("max",23)("step",t.stepHour)("inputLabel","Hour"),ma(1),Ao("showDivider",!0)("upBtnAriaLabel",t.upMinuteButtonLabel)("downBtnAriaLabel",t.downMinuteButtonLabel)("upBtnDisabled",!t.upMinuteEnabled())("downBtnDisabled",!t.downMinuteEnabled())("value",t.minuteValue)("min",0)("max",59)("step",t.stepMinute)("inputLabel","Minute"),ma(1),Ao("ngIf",t.showSecondsTimer),ma(1),Ao("ngIf",t.hour12Timer))},directives:function(){return[X3,Ed]},styles:[""],changeDetection:0}),n3),S3={transformPicker:Nf("transformPicker",[Wf("void",Uf({opacity:0,transform:"scale(1, 0)"})),Wf("enter",Uf({opacity:1,transform:"scale(1, 1)"})),Qf("void => enter",jf([$f("@fadeInPicker",Kf(),{optional:!0}),Bf("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),Qf("enter => void",Bf("100ms linear",Uf({opacity:0})))]),fadeInPicker:Nf("fadeInPicker",[Wf("enter",Uf({opacity:1})),Wf("void",Uf({opacity:0})),Qf("void => enter",Bf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},M3=((r3=function(){function e(t,n,i,a){_classCallCheck(this,e),this.cdRef=t,this.elmRef=n,this.pickerIntl=i,this.dateTimeAdapter=a,this.activeSelectedIndex=0,this.hidePicker$=new T,this.confirmSelected$=new T,this.pickerOpened$=new T}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngAfterContentInit",value:function(){this.initPicker()}},{key:"ngAfterViewInit",value:function(){this.focusPicker()}},{key:"handleContainerAnimationDone",value:function(e){"enter"===e.toState&&this.pickerOpened$.next()}},{key:"dateSelected",value:function(e){var t;this.picker.isInSingleMode?(t=this.dateSelectedInSingleMode(e))?(this.pickerMoment=t,this.picker.select(t)):"calendar"===this.pickerType&&this.hidePicker$.next(null):this.picker.isInRangeMode&&(t=this.dateSelectedInRangeMode(e))&&(this.pickerMoment=t[this.activeSelectedIndex],this.picker.select(t))}},{key:"timeSelected",value:function(e){if(this.pickerMoment=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(this.pickerMoment))if(this.picker.isInSingleMode)this.picker.select(this.pickerMoment);else if(this.picker.isInRangeMode){var t=_toConsumableArray(this.picker.selecteds);0===this.activeSelectedIndex&&t[1]&&1===this.dateTimeAdapter.compare(this.pickerMoment,t[1])||1===this.activeSelectedIndex&&t[0]&&-1===this.dateTimeAdapter.compare(this.pickerMoment,t[0])?(t[0]=this.pickerMoment,t[1]=this.pickerMoment):t[this.activeSelectedIndex]=this.pickerMoment,this.picker.select(t)}}},{key:"onCancelClicked",value:function(e){this.hidePicker$.next(null),e.preventDefault()}},{key:"onSetClicked",value:function(e){if(!this.picker.dateTimeChecker(this.pickerMoment))return this.hidePicker$.next(null),void e.preventDefault();this.confirmSelected$.next(e),e.preventDefault()}},{key:"handleClickOnInfoGroup",value:function(e,t){this.setActiveSelectedIndex(t),e.preventDefault(),e.stopPropagation()}},{key:"handleKeydownOnInfoGroup",value:function(e,t,n){switch(e.keyCode){case 40:case 39:case 38:case 37:t.focus(),this.setActiveSelectedIndex(0===n?1:0),e.preventDefault(),e.stopPropagation();break;case 32:this.setActiveSelectedIndex(n),e.preventDefault(),e.stopPropagation();break;default:return}}},{key:"setActiveSelectedIndex",value:function(e){if("range"===this.picker.selectMode&&this.activeSelectedIndex!==e){this.activeSelectedIndex=e;var t=this.picker.selecteds[this.activeSelectedIndex];this.picker.selecteds&&t&&(this.pickerMoment=this.dateTimeAdapter.clone(t))}}},{key:"initPicker",value:function(){this.pickerMoment=this.picker.startAt||this.dateTimeAdapter.now(),this.activeSelectedIndex="rangeTo"===this.picker.selectMode?1:0}},{key:"dateSelectedInSingleMode",value:function(e){return this.dateTimeAdapter.isSameDay(e,this.picker.selected)?null:this.updateAndCheckCalendarDate(e)}},{key:"dateSelectedInRangeMode",value:function(e){var t=this.picker.selecteds[0],n=this.picker.selecteds[1],i=this.updateAndCheckCalendarDate(e);return i?("range"===this.picker.selectMode?this.picker.selecteds&&this.picker.selecteds.length&&!n&&t&&this.dateTimeAdapter.differenceInCalendarDays(i,t)>=0?(n=i,this.activeSelectedIndex=1):(t=i,n=null,this.activeSelectedIndex=0):"rangeFrom"===this.picker.selectMode?(t=i,n&&this.dateTimeAdapter.compare(t,n)>0&&(n=null)):"rangeTo"===this.picker.selectMode&&(n=i,t&&this.dateTimeAdapter.compare(t,n)>0&&(t=null)),[t,n]):null}},{key:"updateAndCheckCalendarDate",value:function(e){var t;return"both"===this.picker.pickerType?(t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment)),t=this.dateTimeAdapter.clampDate(t,this.picker.minDateTime,this.picker.maxDateTime)):t=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(t)?t:null}},{key:"focusPicker",value:function(){"inline"!==this.picker.pickerMode&&(this.calendar?this.calendar.focusActiveCell():this.timer&&this.timer.focus())}},{key:"hidePickerStream",get:function(){return this.hidePicker$.asObservable()}},{key:"confirmSelectedStream",get:function(){return this.confirmSelected$.asObservable()}},{key:"pickerOpenedStream",get:function(){return this.pickerOpened$.asObservable()}},{key:"pickerMoment",get:function(){return this._clamPickerMoment},set:function(e){e&&(this._clamPickerMoment=this.dateTimeAdapter.clampDate(e,this.picker.minDateTime,this.picker.maxDateTime)),this.cdRef.markForCheck()}},{key:"pickerType",get:function(){return this.picker.pickerType}},{key:"cancelLabel",get:function(){return this.pickerIntl.cancelBtnLabel}},{key:"setLabel",get:function(){return this.pickerIntl.setBtnLabel}},{key:"fromLabel",get:function(){return this.pickerIntl.rangeFromLabel}},{key:"toLabel",get:function(){return this.pickerIntl.rangeToLabel}},{key:"fromFormattedValue",get:function(){var e=this.picker.selecteds[0];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""}},{key:"toFormattedValue",get:function(){var e=this.picker.selecteds[1];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""}},{key:"showControlButtons",get:function(){return"dialog"===this.picker.pickerMode||"calendar"!==this.picker.pickerType&&"inline"!==this.picker.pickerMode}},{key:"containerElm",get:function(){return this.elmRef.nativeElement}},{key:"owlDTContainerClass",get:function(){return!0}},{key:"owlDTPopupContainerClass",get:function(){return"popup"===this.picker.pickerMode}},{key:"owlDTDialogContainerClass",get:function(){return"dialog"===this.picker.pickerMode}},{key:"owlDTInlineContainerClass",get:function(){return"inline"===this.picker.pickerMode}},{key:"owlDTContainerDisabledClass",get:function(){return this.picker.disabled}},{key:"owlDTContainerId",get:function(){return this.picker.id}},{key:"owlDTContainerAnimation",get:function(){return"inline"===this.picker.pickerMode?"":"enter"}}]),e}()).\u0275fac=function(e){return new(e||r3)(Mo(jr),Mo(js),Mo(y3),Mo(b3,8))},r3.\u0275cmp=gt({type:r3,selectors:[["owl-date-time-container"]],viewQuery:function(e,t){var n;1&e&&(oc(C3,!0),oc(D3,!0)),2&e&&(ac(n=dc())&&(t.calendar=n.first),ac(n=dc())&&(t.timer=n.first))},hostVars:12,hostBindings:function(e,t){1&e&&No("@transformPicker.done",(function(e){return t.handleContainerAnimationDone(e)})),2&e&&(wo("id",t.owlDTContainerId),bs("@transformPicker",t.owlDTContainerAnimation),rs("owl-dt-container",t.owlDTContainerClass)("owl-dt-popup-container",t.owlDTPopupContainerClass)("owl-dt-dialog-container",t.owlDTDialogContainerClass)("owl-dt-inline-container",t.owlDTInlineContainerClass)("owl-dt-container-disabled",t.owlDTContainerDisabledClass))},exportAs:["owlDateTimeContainer"],decls:5,vars:6,consts:[[1,"owl-dt-container-inner",3,"cdkTrapFocus"],["class","owl-dt-container-row",3,"firstDayOfWeek","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","startView","hideOtherMonths","pickerMomentChange","yearSelected","monthSelected","selectedChange",4,"ngIf"],["class","owl-dt-container-row",3,"pickerMoment","minDateTime","maxDateTime","showSecondsTimer","hour12Timer","stepHour","stepMinute","stepSecond","selectedChange",4,"ngIf"],["role","radiogroup","class","owl-dt-container-info owl-dt-container-row",4,"ngIf"],["class","owl-dt-container-buttons owl-dt-container-row",4,"ngIf"],[1,"owl-dt-container-row",3,"firstDayOfWeek","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","startView","hideOtherMonths","pickerMomentChange","yearSelected","monthSelected","selectedChange"],[1,"owl-dt-container-row",3,"pickerMoment","minDateTime","maxDateTime","showSecondsTimer","hour12Timer","stepHour","stepMinute","stepSecond","selectedChange"],["role","radiogroup",1,"owl-dt-container-info","owl-dt-container-row"],["role","radio",1,"owl-dt-control","owl-dt-container-range","owl-dt-container-from",3,"tabindex","ngClass","click","keydown"],["from",""],["tabindex","-1",1,"owl-dt-control-content","owl-dt-container-range-content"],[1,"owl-dt-container-info-label"],[1,"owl-dt-container-info-value"],["role","radio",1,"owl-dt-control","owl-dt-container-range","owl-dt-container-to",3,"tabindex","ngClass","click","keydown"],["to",""],[1,"owl-dt-container-buttons","owl-dt-container-row"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-container-control-button",3,"click"],["tabindex","-1",1,"owl-dt-control-content","owl-dt-control-button-content"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,B2,1,10,"owl-date-time-calendar",1),Do(2,j2,1,8,"owl-date-time-timer",2),Do(3,U2,15,14,"div",3),Do(4,W2,7,2,"div",4),Eo()),2&e&&(Ao("cdkTrapFocus","inline"!==t.picker.pickerMode)("@fadeInPicker","inline"===t.picker.pickerMode?"":"enter"),ma(1),Ao("ngIf","both"===t.pickerType||"calendar"===t.pickerType),ma(1),Ao("ngIf","both"===t.pickerType||"timer"===t.pickerType),ma(1),Ao("ngIf",t.picker.isInRangeMode),ma(1),Ao("ngIf",t.showControlButtons))},directives:[Gw,Ed,C3,D3,Td],styles:[""],data:{animation:[S3.transformPicker,S3.fadeInPicker]},changeDetection:0}),r3),x3=0,T3=((a3=function(){function e(t,n){var i=this;if(_classCallCheck(this,e),this.dateTimeAdapter=t,this.dateTimeFormats=n,this._showSecondsTimer=!1,this._hour12Timer=!1,this.startView="month",this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._hideOtherMonths=!1,this.dateTimeChecker=function(e){return!!e&&(!i.dateTimeFilter||i.dateTimeFilter(e))&&(!i.minDateTime||i.dateTimeAdapter.compare(e,i.minDateTime)>=0)&&(!i.maxDateTime||i.dateTimeAdapter.compare(e,i.maxDateTime)<=0)},!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimeAdapter. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this._id="owl-dt-picker-".concat(x3++)}return _createClass(e,[{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"showSecondsTimer",get:function(){return this._showSecondsTimer},set:function(e){this._showSecondsTimer=iw(e)}},{key:"hour12Timer",get:function(){return this._hour12Timer},set:function(e){this._hour12Timer=iw(e)}},{key:"stepHour",get:function(){return this._stepHour},set:function(e){this._stepHour=aw(e,1)}},{key:"stepMinute",get:function(){return this._stepMinute},set:function(e){this._stepMinute=aw(e,1)}},{key:"stepSecond",get:function(){return this._stepSecond},set:function(e){this._stepSecond=aw(e,1)}},{key:"firstDayOfWeek",get:function(){return this._firstDayOfWeek},set:function(e){e=aw(e),this._firstDayOfWeek=e>6||e<0?void 0:e}},{key:"hideOtherMonths",get:function(){return this._hideOtherMonths},set:function(e){this._hideOtherMonths=iw(e)}},{key:"id",get:function(){return this._id}},{key:"formatString",get:function(){return"both"===this.pickerType?this.dateTimeFormats.fullPickerInput:"calendar"===this.pickerType?this.dateTimeFormats.datePickerInput:this.dateTimeFormats.timePickerInput}},{key:"disabled",get:function(){return!1}}]),e}()).\u0275fac=function(e){return new(e||a3)(Mo(b3,8),Mo(w3,8))},a3.\u0275dir=Ct({type:a3,inputs:{startView:"startView",showSecondsTimer:"showSecondsTimer",hour12Timer:"hour12Timer",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",firstDayOfWeek:"firstDayOfWeek",hideOtherMonths:"hideOtherMonths"}}),a3),A3=0,L3=function e(){_classCallCheck(this,e),this.ariaDescribedBy=null,this.autoFocus=!0,this.hasBackdrop=!0,this.data=null,this.disableClose=!1,this.role="dialog",this.paneClass="",this.event=null,this.backdropClass="",this.closeOnNavigation=!0,this.width="",this.height="",this.maxWidth="85vw",this.scrollStrategy=new BM,this.id="owl-dialog-".concat(A3++)},I3=function(){function e(t,n,i,a){var r=this;_classCallCheck(this,e),this.overlayRef=t,this.container=n,this.id=i,this._beforeClose$=new T,this._afterOpen$=new T,this._afterClosed$=new T,this.locationChanged=h.EMPTY,this.disableClose=this.container.config.disableClose,this.container.animationStateChanged.pipe(gu((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Av(1)).subscribe((function(){r._afterOpen$.next(),r._afterOpen$.complete()})),this.container.animationStateChanged.pipe(gu((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Av(1)).subscribe((function(){r.overlayRef.dispose(),r.locationChanged.unsubscribe(),r._afterClosed$.next(r.result),r._afterClosed$.complete(),r.componentInstance=null})),this.overlayRef.keydownEvents().pipe(gu((function(e){return 27===e.keyCode&&!r.disableClose}))).subscribe((function(){return r.close()})),a&&(this.locationChanged=a.subscribe((function(){r.container.config.closeOnNavigation&&r.close()})))}return _createClass(e,[{key:"close",value:function(e){var t=this;this.result=e,this.container.animationStateChanged.pipe(gu((function(e){return"start"===e.phaseName})),Av(1)).subscribe((function(){t._beforeClose$.next(e),t._beforeClose$.complete(),t.overlayRef.detachBackdrop()})),this.container.startExitAnimation()}},{key:"backdropClick",value:function(){return this.overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this.overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this.getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this.overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";return this.getPositionStrategy().width(e).height(t),this.overlayRef.updatePosition(),this}},{key:"isAnimating",value:function(){return this.container.isAnimating}},{key:"afterOpen",value:function(){return this._afterOpen$.asObservable()}},{key:"beforeClose",value:function(){return this._beforeClose$.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed$.asObservable()}},{key:"getPositionStrategy",value:function(){return this.overlayRef.getConfig().positionStrategy}}]),e}(),E3={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})"},O3={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})",transformOrigin:"{{ ox }} {{ oy }}"},R3=((o3=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r){var o;return _classCallCheck(this,n),(o=t.call(this)).changeDetector=e,o.elementRef=i,o.focusTrapFactory=a,o.document=r,o.ariaLabelledBy=null,o.animationStateChanged=new Gl,o.isAnimating=!1,o.state="enter",o.params={x:"0px",y:"0px",ox:"50%",oy:"50%",scale:0},o.elementFocusedBeforeDialogWasOpened=null,o}return _createClass(n,[{key:"ngOnInit",value:function(){}},{key:"attachComponentPortal",value:function(e){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach dialog content after content is already attached");return this.savePreviouslyFocusedElement(),this.portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){throw new Error("Method not implemented.")}},{key:"setConfig",value:function(e){this._config=e,e.event&&this.calculateZoomOrigin(event)}},{key:"onAnimationStart",value:function(e){this.isAnimating=!0,this.animationStateChanged.emit(e)}},{key:"onAnimationDone",value:function(e){"enter"===e.toState?this.trapFocus():"exit"===e.toState&&this.restoreFocus(),this.animationStateChanged.emit(e),this.isAnimating=!1}},{key:"startExitAnimation",value:function(){this.state="exit",this.changeDetector.markForCheck()}},{key:"calculateZoomOrigin",value:function(e){if(e){var t=e.clientX,n=e.clientY,i=window.innerWidth/2,a=n-window.innerHeight/2,r=t/window.innerWidth,o=n/window.innerHeight;this.params.x="".concat(t-i,"px"),this.params.y="".concat(a,"px"),this.params.ox="".concat(100*r,"%"),this.params.oy="".concat(100*o,"%"),this.params.scale=0}}},{key:"savePreviouslyFocusedElement",value:function(){var e=this;this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement,Promise.resolve().then((function(){return e.elementRef.nativeElement.focus()})))}},{key:"trapFocus",value:function(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this._config.autoFocus&&this.focusTrap.focusInitialElementWhenReady()}},{key:"restoreFocus",value:function(){var e=this.elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this.focusTrap&&this.focusTrap.destroy()}},{key:"config",get:function(){return this._config}},{key:"owlDialogContainerClass",get:function(){return!0}},{key:"owlDialogContainerTabIndex",get:function(){return-1}},{key:"owlDialogContainerId",get:function(){return this._config.id}},{key:"owlDialogContainerRole",get:function(){return this._config.role||null}},{key:"owlDialogContainerAriaLabelledby",get:function(){return this.ariaLabelledBy}},{key:"owlDialogContainerAriaDescribedby",get:function(){return this._config.ariaDescribedBy||null}},{key:"owlDialogContainerAnimation",get:function(){return{value:this.state,params:this.params}}}]),n}(IM)).\u0275fac=function(e){return new(e||o3)(Mo(jr),Mo(js),Mo(Ww),Mo(Cu,8))},o3.\u0275cmp=gt({type:o3,selectors:[["owl-dialog-container"]],viewQuery:function(e,t){var n;1&e&&rc(RM,!0),2&e&&ac(n=dc())&&(t.portalOutlet=n.first)},hostVars:8,hostBindings:function(e,t){1&e&&No("@slideModal.start",(function(e){return t.onAnimationStart(e)}))("@slideModal.done",(function(e){return t.onAnimationDone(e)})),2&e&&(wo("tabindex",t.owlDialogContainerTabIndex)("id",t.owlDialogContainerId)("role",t.owlDialogContainerRole)("aria-labelledby",t.owlDialogContainerAriaLabelledby)("aria-describedby",t.owlDialogContainerAriaDescribedby),bs("@slideModal",t.owlDialogContainerAnimation),rs("owl-dialog-container",t.owlDialogContainerClass))},features:[Cs],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Do(0,G2,0,0,"ng-template",0)},directives:[RM],encapsulation:2,data:{animation:[Nf("slideModal",[Qf("void => enter",[Uf(O3),Bf("300ms cubic-bezier(0.35, 0, 0.25, 1)",Uf("*")),Bf("150ms",Gf([Uf({transform:"scale(1)",offset:0}),Uf({transform:"scale(1.05)",offset:.3}),Uf({transform:"scale(.95)",offset:.8}),Uf({transform:"scale(1)",offset:1})])),Kf()],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%",scale:1}}),Qf("enter => exit",[Kf(),Bf(200,Uf(E3))],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%"}})])]}}),o3),P3=new je("OwlDialogData"),Y3=new je("owl-dialog-scroll-strategy"),F3={provide:Y3,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},q3=new je("owl-dialog-default-options"),V3=((s3=function(){function e(t,n,i,a,r,o,s){var l=this;_classCallCheck(this,e),this.overlay=t,this.injector=n,this.location=i,this.defaultOptions=r,this.parentDialog=o,this.overlayContainer=s,this.ariaHiddenElements=new Map,this._openDialogsAtThisLevel=[],this._afterOpenAtThisLevel=new T,this._afterAllClosedAtThisLevel=new T,this.afterAllClosed=hv((function(){return l._openDialogsAtThisLevel.length?l._afterAllClosed:l._afterAllClosed.pipe(Vv(void 0))})),this.scrollStrategy=a,!o&&i&&i.subscribe((function(){return l.closeAll()}))}return _createClass(e,[{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var a=0,r=n;a<r.length;a++){var o=r[a];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}(new L3,e,t)}(t,this.defaultOptions)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var i=this.createOverlay(t),a=this.attachDialogContainer(i,t),r=this.attachDialogContent(e,a,i,t);return this.openDialogs.length||this.hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return n.removeOpenDialog(r)})),this.afterOpen.next(r),r}},{key:"closeAll",value:function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"attachDialogContent",value:function(e,t,n,i){var a=new I3(n,t,i.id,this.location);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){a.disableClose||a.close()})),e instanceof fl);else{var r=this.createInjector(i,a,t),o=t.attachComponentPortal(new TM(e,void 0,r));a.componentInstance=o.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=new WeakMap;return a.set(I3,t),a.set(R3,n),a.set(P3,e.data),new qM(i||this.injector,a)}},{key:"createOverlay",value:function(e){var t=this.getOverlayConfig(e);return this.overlay.create(t)}},{key:"attachDialogContainer",value:function(e,t){var n=new TM(R3,t.viewContainerRef),i=e.attach(n);return i.instance.setConfig(t),i.instance}},{key:"getOverlayConfig",value:function(e){var t=new QM({positionStrategy:this.overlay.position().global(),scrollStrategy:e.scrollStrategy||this.scrollStrategy(),panelClass:e.paneClass,hasBackdrop:e.hasBackdrop,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"removeOpenDialog",value:function(e){var t=this._openDialogsAtThisLevel.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this.ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this.ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this.overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this.ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"openDialogs",get:function(){return this.parentDialog?this.parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpen",get:function(){return this.parentDialog?this.parentDialog.afterOpen:this._afterOpenAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this.parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||s3)(Xe(vx),Xe(ro),Xe(ju,8),Xe(Y3),Xe(q3,8),Xe(s3,12),Xe(ix))},s3.\u0275prov=fe({token:s3,factory:s3.\u0275fac}),s3),H3=new je("owl-dtpicker-scroll-strategy"),N3={provide:H3,deps:[vx],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},B3=((c3=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,r,o,s,l,c,u){var d;return _classCallCheck(this,n),(d=t.call(this,s,c)).overlay=e,d.viewContainerRef=i,d.dialogService=a,d.ngZone=r,d.changeDetector=o,d.dateTimeAdapter=s,d.dateTimeFormats=c,d.document=u,d.backdropClass=[],d.panelClass=[],d._pickerType="both",d._pickerMode="popup",d._opened=!1,d.afterPickerClosed=new Gl,d.afterPickerOpen=new Gl,d.yearSelected=new Gl,d.monthSelected=new Gl,d.confirmSelectedChange=new Gl,d.disabledChange=new Gl,d.dtInputSub=h.EMPTY,d.hidePickerStreamSub=h.EMPTY,d.confirmSelectedStreamSub=h.EMPTY,d.pickerOpenedStreamSub=h.EMPTY,d.focusedElementBeforeOpen=null,d._selecteds=[],d.defaultScrollStrategy=l,d}return _createClass(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.close(),this.dtInputSub.unsubscribe(),this.disabledChange.complete(),this.popupRef&&this.popupRef.dispose()}},{key:"registerInput",value:function(e){var t=this;if(this._dtInput)throw Error("A Owl DateTimePicker can only be associated with a single input.");this._dtInput=e,this.dtInputSub=this._dtInput.valueChange.subscribe((function(e){Array.isArray(e)?t.selecteds=e:t.selected=e}))}},{key:"open",value:function(){var e=this;if(!this._opened&&!this.disabled){if(!this._dtInput)throw Error("Attempted to open an DateTimePicker with no associated input.");this.document&&(this.focusedElementBeforeOpen=this.document.activeElement),this.isInSingleMode?this.selected=this._dtInput.value:this.isInRangeMode&&(this.selecteds=this._dtInput.values),this.selected&&"calendar"!==this.pickerType&&this._startAt&&(this.selected=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.selected),this.dateTimeAdapter.getMonth(this.selected),this.dateTimeAdapter.getDate(this.selected),this.dateTimeAdapter.getHours(this._startAt),this.dateTimeAdapter.getMinutes(this._startAt),this.dateTimeAdapter.getSeconds(this._startAt))),"dialog"===this.pickerMode?this.openAsDialog():this.openAsPopup(),this.pickerContainer.picker=this,this.hidePickerStreamSub=this.pickerContainer.hidePickerStream.subscribe((function(){e.close()})),this.confirmSelectedStreamSub=this.pickerContainer.confirmSelectedStream.subscribe((function(t){e.confirmSelect(t)}))}}},{key:"select",value:function(e){Array.isArray(e)?this.selecteds=_toConsumableArray(e):this.selected=e,"dialog"!==this.pickerMode&&"calendar"===this.pickerType&&("single"===this.selectMode&&this.selected||"rangeFrom"===this.selectMode&&this.selecteds[0]||"rangeTo"===this.selectMode&&this.selecteds[1]||"range"===this.selectMode&&this.selecteds[0]&&this.selecteds[1])&&this.confirmSelect()}},{key:"selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"close",value:function(){var e=this;if(this._opened){this.popupRef&&this.popupRef.hasAttached()&&this.popupRef.detach(),this.pickerContainerPortal&&this.pickerContainerPortal.isAttached&&this.pickerContainerPortal.detach(),this.hidePickerStreamSub&&(this.hidePickerStreamSub.unsubscribe(),this.hidePickerStreamSub=null),this.confirmSelectedStreamSub&&(this.confirmSelectedStreamSub.unsubscribe(),this.confirmSelectedStreamSub=null),this.pickerOpenedStreamSub&&(this.pickerOpenedStreamSub.unsubscribe(),this.pickerOpenedStreamSub=null),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null);var t=function(){e._opened&&(e._opened=!1,e.afterPickerClosed.emit(null),e.focusedElementBeforeOpen=null)};this.focusedElementBeforeOpen&&"function"==typeof this.focusedElementBeforeOpen.focus?(this.focusedElementBeforeOpen.focus(),setTimeout(t)):t()}}},{key:"confirmSelect",value:function(e){if(this.isInSingleMode){var t=this.selected||this.startAt||this.dateTimeAdapter.now();this.confirmSelectedChange.emit(t)}else this.isInRangeMode&&this.confirmSelectedChange.emit(this.selecteds);this.close()}},{key:"openAsDialog",value:function(){var e=this;this.dialogRef=this.dialogService.open(M3,{autoFocus:!1,backdropClass:["cdk-overlay-dark-backdrop"].concat(_toConsumableArray(ow(this.backdropClass))),paneClass:["owl-dt-dialog"].concat(_toConsumableArray(ow(this.panelClass))),viewContainerRef:this.viewContainerRef,scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy()}),this.pickerContainer=this.dialogRef.componentInstance,this.dialogRef.afterOpen().subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0})),this.dialogRef.afterClosed().subscribe((function(){return e.close()}))}},{key:"openAsPopup",value:function(){var e=this;if(this.pickerContainerPortal||(this.pickerContainerPortal=new TM(M3,this.viewContainerRef)),this.popupRef||this.createPopup(),!this.popupRef.hasAttached()){var t=this.popupRef.attach(this.pickerContainerPortal);this.pickerContainer=t.instance,this.ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e.popupRef.updatePosition()})),this.pickerOpenedStreamSub=this.pickerContainer.pickerOpenedStream.pipe(Av(1)).subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0}))}}},{key:"createPopup",value:function(){var e=this,t=new QM({positionStrategy:this.createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:["cdk-overlay-transparent-backdrop"].concat(_toConsumableArray(ow(this.backdropClass))),scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy(),panelClass:["owl-dt-popup"].concat(_toConsumableArray(ow(this.panelClass)))});this.popupRef=this.overlay.create(t),K(this.popupRef.backdropClick(),this.popupRef.detachments(),this.popupRef.keydownEvents().pipe(gu((function(t){return 27===t.keyCode||e._dtInput&&t.altKey&&38===t.keyCode})))).subscribe((function(){return e.close()}))}},{key:"createPopupPositionStrategy",value:function(){return this.overlay.position().flexibleConnectedTo(this._dtInput.elementRef).withTransformOriginOn(".owl-dt-container").withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-176},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-352}])}},{key:"startAt",get:function(){return this._startAt?this._startAt:this._dtInput?"single"===this._dtInput.selectMode?this._dtInput.value||null:"range"===this._dtInput.selectMode||"rangeFrom"===this._dtInput.selectMode?this._dtInput.values[0]||null:"rangeTo"===this._dtInput.selectMode?this._dtInput.values[1]||null:void 0:null},set:function(e){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))}},{key:"pickerType",get:function(){return this._pickerType},set:function(e){e!==this._pickerType&&(this._pickerType=e,this._dtInput&&this._dtInput.formatNativeInputValue())}},{key:"pickerMode",get:function(){return this._pickerMode},set:function(e){this._pickerMode="popup"===e?e:"dialog"}},{key:"disabled",get:function(){return void 0===this._disabled&&this._dtInput?this._dtInput.disabled:!!this._disabled},set:function(e){(e=iw(e))!==this._disabled&&(this._disabled=e,this.disabledChange.next(e))}},{key:"opened",get:function(){return this._opened},set:function(e){e?this.open():this.close()}},{key:"dtInput",get:function(){return this._dtInput}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.changeDetector.markForCheck()}},{key:"selecteds",get:function(){return this._selecteds},set:function(e){this._selecteds=e,this.changeDetector.markForCheck()}},{key:"minDateTime",get:function(){return this._dtInput&&this._dtInput.min}},{key:"maxDateTime",get:function(){return this._dtInput&&this._dtInput.max}},{key:"dateTimeFilter",get:function(){return this._dtInput&&this._dtInput.dateTimeFilter}},{key:"selectMode",get:function(){return this._dtInput.selectMode}},{key:"isInSingleMode",get:function(){return this._dtInput.isInSingleMode}},{key:"isInRangeMode",get:function(){return this._dtInput.isInRangeMode}}]),n}(T3)).\u0275fac=function(e){return new(e||c3)(Mo(vx),Mo(ml),Mo(V3),Mo(qc),Mo(jr),Mo(b3,8),Mo(H3),Mo(w3,8),Mo(Cu,8))},c3.\u0275cmp=gt({type:c3,selectors:[["owl-date-time"]],inputs:{backdropClass:"backdropClass",panelClass:"panelClass",startAt:"startAt",pickerType:"pickerType",pickerMode:"pickerMode",disabled:"disabled",opened:"opened",scrollStrategy:"scrollStrategy"},outputs:{afterPickerClosed:"afterPickerClosed",afterPickerOpen:"afterPickerOpen",yearSelected:"yearSelected",monthSelected:"monthSelected"},exportAs:["owlDateTime"],features:[Cs],decls:0,vars:0,template:function(e,t){},styles:[""],changeDetection:0}),c3),j3=((l3=function(){function e(t){_classCallCheck(this,e),this.changeDetector=t,this.stateChanges=h.EMPTY}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){e.datepicker&&this.watchStateChanges()}},{key:"ngAfterContentInit",value:function(){this.watchStateChanges()}},{key:"ngOnDestroy",value:function(){this.stateChanges.unsubscribe()}},{key:"handleClickOnHost",value:function(e){this.dtPicker&&(this.dtPicker.open(),e.stopPropagation())}},{key:"watchStateChanges",value:function(){var e=this;this.stateChanges.unsubscribe();var t=this.dtPicker&&this.dtPicker.dtInput?this.dtPicker.dtInput.disabledChange:mu(),n=this.dtPicker?this.dtPicker.disabledChange:mu();this.stateChanges=K(n,t).subscribe((function(){e.changeDetector.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled?this.dtPicker.disabled:!!this._disabled},set:function(e){this._disabled=e}},{key:"owlDTTriggerDisabledClass",get:function(){return this.disabled}}]),e}()).\u0275fac=function(e){return new(e||l3)(Mo(jr))},l3.\u0275dir=Ct({type:l3,selectors:[["","owlDateTimeTrigger",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ho("click",(function(e){return t.handleClickOnHost(e)})),2&e&&rs("owl-dt-trigger-disabled",t.owlDTTriggerDisabledClass)},inputs:{disabled:"disabled",dtPicker:["owlDateTimeTrigger","dtPicker"]},features:[As]}),l3),z3={provide:b_,useExisting:xe((function(){return W3})),multi:!0},U3={provide:q_,useExisting:xe((function(){return W3})),multi:!0},W3=((u3=function(){function e(t,n,i,a){var r=this;if(_classCallCheck(this,e),this.elmRef=t,this.renderer=n,this.dateTimeAdapter=i,this.dateTimeFormats=a,this._selectMode="single",this.rangeSeparator="-",this._values=[],this.dateTimeChange=new Gl,this.dateTimeInput=new Gl,this.dtPickerSub=h.EMPTY,this.localeSub=h.EMPTY,this.lastValueValid=!0,this.onModelChange=function(){},this.onModelTouched=function(){},this.validatorOnChange=function(){},this.parseValidator=function(){return r.lastValueValid?null:{owlDateTimeParse:{text:r.elmRef.nativeElement.value}}},this.minValidator=function(e){if(r.isInSingleMode){var t=r.getValidDate(r.dateTimeAdapter.deserialize(e.value));return!r.min||!t||r.dateTimeAdapter.compare(r.min,t)<=0?null:{owlDateTimeMin:{min:r.min,actual:t}}}if(r.isInRangeMode&&e.value){var n=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[0])),i=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[1]));return!r.min||!n||!i||r.dateTimeAdapter.compare(r.min,n)<=0?null:{owlDateTimeMin:{min:r.min,actual:[n,i]}}}},this.maxValidator=function(e){if(r.isInSingleMode){var t=r.getValidDate(r.dateTimeAdapter.deserialize(e.value));return!r.max||!t||r.dateTimeAdapter.compare(r.max,t)>=0?null:{owlDateTimeMax:{max:r.max,actual:t}}}if(r.isInRangeMode&&e.value){var n=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[0])),i=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[1]));return!r.max||!n||!i||r.dateTimeAdapter.compare(r.max,i)>=0?null:{owlDateTimeMax:{max:r.max,actual:[n,i]}}}},this.filterValidator=function(e){var t=r.getValidDate(r.dateTimeAdapter.deserialize(e.value));return r._dateTimeFilter&&t&&!r._dateTimeFilter(t)?{owlDateTimeFilter:!0}:null},this.rangeValidator=function(e){if(r.isInSingleMode||!e.value)return null;var t=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[0])),n=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[1]));return!t||!n||r.dateTimeAdapter.compare(t,n)<=0?null:{owlDateTimeRange:!0}},this.requiredRangeValidator=function(e){if(r.isInSingleMode||!e.value||!r.required)return null;var t=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[0])),n=r.getValidDate(r.dateTimeAdapter.deserialize(e.value[1]));return t&&n?null:{owlRequiredDateTimeRange:[t,n]}},this.validator=N_.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator,this.rangeValidator,this.requiredRangeValidator]),this.valueChange=new Gl,this.disabledChange=new Gl,!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimePicker. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){r.value=r.value}))}return _createClass(e,[{key:"ngOnInit",value:function(){if(!this.dtPicker)throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component")}},{key:"ngAfterContentInit",value:function(){var e=this;this.dtPickerSub=this.dtPicker.confirmSelectedChange.subscribe((function(t){Array.isArray(t)?e.values=t:e.value=t,e.onModelChange(t),e.onModelTouched(),e.dateTimeChange.emit({source:e,value:t,input:e.elmRef.nativeElement}),e.dateTimeInput.emit({source:e,value:t,input:e.elmRef.nativeElement})}))}},{key:"ngOnDestroy",value:function(){this.dtPickerSub.unsubscribe(),this.localeSub.unsubscribe(),this.valueChange.complete(),this.disabledChange.complete()}},{key:"writeValue",value:function(e){this.isInSingleMode?this.value=e:this.values=e}},{key:"registerOnChange",value:function(e){this.onModelChange=e}},{key:"registerOnTouched",value:function(e){this.onModelTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"validate",value:function(e){return this.validator?this.validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this.validatorOnChange=e}},{key:"handleKeydownOnHost",value:function(e){e.altKey&&40===e.keyCode&&(this.dtPicker.open(),e.preventDefault())}},{key:"handleBlurOnHost",value:function(e){this.onModelTouched()}},{key:"handleInputOnHost",value:function(e){var t=e.target.value;"single"===this._selectMode?this.changeInputInSingleMode(t):"range"===this._selectMode?this.changeInputInRangeMode(t):this.changeInputInRangeFromToMode(t)}},{key:"handleChangeOnHost",value:function(e){var t;this.isInSingleMode?t=this.value:this.isInRangeMode&&(t=this.values),this.dateTimeChange.emit({source:this,value:t,input:this.elmRef.nativeElement})}},{key:"formatNativeInputValue",value:function(){if(this.isInSingleMode)this.renderer.setProperty(this.elmRef.nativeElement,"value",this._value?this.dateTimeAdapter.format(this._value,this.dtPicker.formatString):"");else if(this.isInRangeMode)if(this._values&&this.values.length>0){var e=this._values[0],t=this._values[1],n=e?this.dateTimeAdapter.format(e,this.dtPicker.formatString):"",i=t?this.dateTimeAdapter.format(t,this.dtPicker.formatString):"";n||i?"range"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",n+" "+this.rangeSeparator+" "+i):"rangeFrom"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",n):"rangeTo"===this._selectMode&&this.renderer.setProperty(this.elmRef.nativeElement,"value",i):this.renderer.setProperty(this.elmRef.nativeElement,"value",null)}else this.renderer.setProperty(this.elmRef.nativeElement,"value","")}},{key:"registerDateTimePicker",value:function(e){e&&(this.dtPicker=e,this.dtPicker.registerInput(this))}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"convertTimeStringToDateTimeString",value:function(e,t){if(e){var n=t||this.dateTimeAdapter.now();return this.dateTimeAdapter.format(n,this.dateTimeFormats.datePickerInput)+" "+e}return null}},{key:"changeInputInSingleMode",value:function(e){var t=e;"timer"===this.dtPicker.pickerType&&(t=this.convertTimeStringToDateTimeString(t,this.value));var n=this.dateTimeAdapter.parse(t,this.dateTimeFormats.parseInput);this.lastValueValid=!n||this.dateTimeAdapter.isValid(n),n=this.getValidDate(n),this.isSameValue(n,this._value)&&null!==n||(this._value=n,this.valueChange.emit(n),this.onModelChange(n),this.dateTimeInput.emit({source:this,value:n,input:this.elmRef.nativeElement}))}},{key:"changeInputInRangeFromToMode",value:function(e){"timer"===this.dtPicker.pickerType&&(e=this.convertTimeStringToDateTimeString(e,"rangeFrom"===this._selectMode?this._values[0]:this._values[1]));var t=this.dateTimeAdapter.parse(e,this.dateTimeFormats.parseInput);this.lastValueValid=!t||this.dateTimeAdapter.isValid(t),t=this.getValidDate(t),"rangeFrom"===this._selectMode&&this.isSameValue(t,this._values[0])&&t||"rangeTo"===this._selectMode&&this.isSameValue(t,this._values[1])&&t||(this._values="rangeFrom"===this._selectMode?[t,this._values[1]]:[this._values[0],t],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))}},{key:"changeInputInRangeMode",value:function(e){var t=e.split(this.rangeSeparator),n=t[0],i=t[1];"timer"===this.dtPicker.pickerType&&(n=this.convertTimeStringToDateTimeString(n,this.values[0]),i=this.convertTimeStringToDateTimeString(i,this.values[1]));var a=this.dateTimeAdapter.parse(n,this.dateTimeFormats.parseInput),r=this.dateTimeAdapter.parse(i,this.dateTimeFormats.parseInput);this.lastValueValid=(!a||this.dateTimeAdapter.isValid(a))&&(!r||this.dateTimeAdapter.isValid(r)),a=this.getValidDate(a),r=this.getValidDate(r),this.isSameValue(a,this._values[0])&&this.isSameValue(r,this._values[1])&&(null!==a||null!==r)||(this._values=[a,r],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))}},{key:"isSameValue",value:function(e,t){return e&&t?0===this.dateTimeAdapter.compare(e,t):e===t}},{key:"required",get:function(){return this._required},set:function(e){this._required=e,this.validatorOnChange()}},{key:"owlDateTime",set:function(e){this.registerDateTimePicker(e)}},{key:"owlDateTimeFilter",set:function(e){this._dateTimeFilter=e,this.validatorOnChange()}},{key:"dateTimeFilter",get:function(){return this._dateTimeFilter}},{key:"disabled",get:function(){return!!this._disabled},set:function(e){var t=iw(e),n=this.elmRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.disabledChange.emit(t)),t&&n.blur&&n.blur()}},{key:"min",get:function(){return this._min},set:function(e){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()}},{key:"selectMode",get:function(){return this._selectMode},set:function(e){if("single"!==e&&"range"!==e&&"rangeFrom"!==e&&"rangeTo"!==e)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=e}},{key:"value",get:function(){return this._value},set:function(e){e=this.dateTimeAdapter.deserialize(e),this.lastValueValid=!e||this.dateTimeAdapter.isValid(e),e=this.getValidDate(e);var t=this._value;this._value=e,this.formatNativeInputValue(),this.dateTimeAdapter.isEqual(t,e)||this.valueChange.emit(e)}},{key:"values",get:function(){return this._values},set:function(e){var t=this;e&&e.length>0?(this._values=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.lastValueValid=(!this._values[0]||this.dateTimeAdapter.isValid(this._values[0]))&&(!this._values[1]||this.dateTimeAdapter.isValid(this._values[1]))):(this._values=[],this.lastValueValid=!0),this.formatNativeInputValue(),this.valueChange.emit(this._values)}},{key:"elementRef",get:function(){return this.elmRef}},{key:"isInSingleMode",get:function(){return"single"===this._selectMode}},{key:"isInRangeMode",get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode}},{key:"owlDateTimeInputAriaHaspopup",get:function(){return!0}},{key:"owlDateTimeInputAriaOwns",get:function(){return this.dtPicker.opened&&this.dtPicker.id||null}},{key:"minIso8601",get:function(){return this.min?this.dateTimeAdapter.toIso8601(this.min):null}},{key:"maxIso8601",get:function(){return this.max?this.dateTimeAdapter.toIso8601(this.max):null}},{key:"owlDateTimeInputDisabled",get:function(){return this.disabled}}]),e}()).\u0275fac=function(e){return new(e||u3)(Mo(js),Mo(Gs),Mo(b3,8),Mo(w3,8))},u3.\u0275dir=Ct({type:u3,selectors:[["input","owlDateTime",""]],hostVars:5,hostBindings:function(e,t){1&e&&Ho("keydown",(function(e){return t.handleKeydownOnHost(e)}))("blur",(function(e){return t.handleBlurOnHost(e)}))("input",(function(e){return t.handleInputOnHost(e)}))("change",(function(e){return t.handleChangeOnHost(e)})),2&e&&(ks("disabled",t.owlDateTimeInputDisabled),wo("aria-haspopup",t.owlDateTimeInputAriaHaspopup)("aria-owns",t.owlDateTimeInputAriaOwns)("min",t.minIso8601)("max",t.maxIso8601))},inputs:{rangeSeparator:"rangeSeparator",value:"value",required:"required",owlDateTime:"owlDateTime",owlDateTimeFilter:"owlDateTimeFilter",_disabled:"_disabled",min:"min",max:"max",selectMode:"selectMode",values:"values"},outputs:{dateTimeChange:"dateTimeChange",dateTimeInput:"dateTimeInput"},exportAs:["owlDateTimeInput"],features:[Vs([z3,U3])]}),u3),G3=function e(t,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";_classCallCheck(this,e),this.value=t,this.displayValue=n,this.ariaLabel=i,this.enabled=a,this.out=r,this.cellClass=o},Q3=((v3=function(){function e(t,n){_classCallCheck(this,e),this.elmRef=t,this.ngZone=n,this.activeCell=0,this.numCols=7,this.cellRatio=1,this.select=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"selectCell",value:function(e){this.select.emit(e)}},{key:"isActiveCell",value:function(e,t){return e*this.numCols+t===this.activeCell}},{key:"isSelected",value:function(e){if(!this.selectedValues||0===this.selectedValues.length)return!1;if(this.isInSingleMode)return e===this.selectedValues[0];if(this.isInRangeMode){var t=this.selectedValues[1];return e===this.selectedValues[0]||e===t}}},{key:"isInRange",value:function(e){if(this.isInRangeMode){var t=this.selectedValues[0],n=this.selectedValues[1];return null!==t&&null!==n?e>=t&&e<=n:e===t||e===n}}},{key:"isRangeFrom",value:function(e){if(this.isInRangeMode){var t=this.selectedValues[0];return null!==t&&e===t}}},{key:"isRangeTo",value:function(e){if(this.isInRangeMode){var t=this.selectedValues[1];return null!==t&&e===t}}},{key:"focusActiveCell",value:function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(Av(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))}},{key:"owlDTCalendarBodyClass",get:function(){return!0}},{key:"isInSingleMode",get:function(){return"single"===this.selectMode}},{key:"isInRangeMode",get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode}}]),e}()).\u0275fac=function(e){return new(e||v3)(Mo(js),Mo(qc))},v3.\u0275cmp=gt({type:v3,selectors:[["","owl-date-time-calendar-body",""]],hostVars:2,hostBindings:function(e,t){2&e&&rs("owl-dt-calendar-body",t.owlDTCalendarBodyClass)},inputs:{activeCell:"activeCell",numCols:"numCols",cellRatio:"cellRatio",rows:"rows",todayValue:"todayValue",selectedValues:"selectedValues",selectMode:"selectMode"},outputs:{select:"select"},exportAs:["owlDateTimeCalendarBody"],attrs:Q2,decls:1,vars:1,consts:[["role","row",4,"ngFor","ngForOf"],["role","row"],[3,"class","tabindex","owl-dt-calendar-cell-active","owl-dt-calendar-cell-disabled","owl-dt-calendar-cell-in-range","owl-dt-calendar-cell-range-from","owl-dt-calendar-cell-range-to","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],[3,"tabindex","click"],[1,"owl-dt-calendar-cell-content",3,"ngClass"]],template:function(e,t){1&e&&Do(0,J2,2,1,"tr",0),2&e&&Ao("ngForOf",t.rows)},directives:[Ld,Td],styles:[""],changeDetection:0}),v3),K3=((g3=function(){function e(t,n,i){_classCallCheck(this,e),this.cdRef=t,this.dateTimeAdapter=n,this.dateTimeFormats=i,this.hideOtherMonths=!1,this.isDefaultFirstDayOfWeek=!0,this._firstDayOfWeek=Ju(this.dateTimeAdapter.getLocale()),this._selectMode="single",this._selecteds=[],this.localeSub=h.EMPTY,this.initiated=!1,this.selectedDates=[],this.selectedChange=new Gl,this.userSelection=new Gl,this.pickerMomentChange=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.generateWeekDays(),this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(t){e.generateWeekDays(),e.generateCalendar(),e.firstDayOfWeek=e.isDefaultFirstDayOfWeek?Ju(t):e.firstDayOfWeek,e.cdRef.markForCheck()}))}},{key:"ngAfterContentInit",value:function(){this.generateCalendar(),this.initiated=!0}},{key:"ngOnDestroy",value:function(){this.localeSub.unsubscribe()}},{key:"selectCalendarCell",value:function(e){!e.enabled||this.hideOtherMonths&&e.out||this.selectDate(e.value)}},{key:"selectDate",value:function(e){var t=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,e-1);this.selectedChange.emit(t),this.userSelection.emit()}},{key:"handleCalendarKeydown",value:function(e){var t;switch(e.keyCode){case 37:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case 39:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case 38:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-7),this.pickerMomentChange.emit(t);break;case 40:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,7),this.pickerMomentChange.emit(t);break;case 36:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case 35:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment)-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case 33:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case 34:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case 13:this.dateFilter&&!this.dateFilter(this.pickerMoment)||this.selectDate(this.dateTimeAdapter.getDate(this.pickerMoment));break;default:return}this.focusActiveCell(),e.preventDefault()}},{key:"generateWeekDays",value:function(){var e=this.dateTimeAdapter.getDayOfWeekNames("long"),t=this.dateTimeAdapter.getDayOfWeekNames("short"),n=this.dateTimeAdapter.getDayOfWeekNames("narrow"),i=this.firstDayOfWeek,a=e.map((function(e,i){return{long:e,short:t[i],narrow:n[i]}}));this._weekdays=a.slice(i).concat(a.slice(0,i)),this.dateNames=this.dateTimeAdapter.getDateNames()}},{key:"generateCalendar",value:function(){if(this.pickerMoment){this.todayDate=null;var e=0-(this.dateTimeAdapter.getDay(this.firstDateOfMonth)+(7-this.firstDayOfWeek))%7;this.firstRowOffset=Math.abs(e),this._days=[];for(var t=0;t<6;t++){for(var n=[],i=0;i<7;i++){var a=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,e),r=this.createDateCell(a,e);this.dateTimeAdapter.isSameDay(this.dateTimeAdapter.now(),a)&&(this.todayDate=e+1),n.push(r),e+=1}this._days.push(n)}this.setSelectedDates()}}},{key:"createDateCell",value:function(e,t){var n=this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment),i=this.dateTimeAdapter.getDate(e).toString(),a=this.dateTimeAdapter.format(e,this.dateTimeFormats.dateA11yLabel),r=this.isDateEnabled(e),o=t+1,s=o<1||o>n,l="owl-dt-day-"+this.dateTimeAdapter.getDay(e);return new G3(o,i,a,r,s,l)}},{key:"isDateEnabled",value:function(e){return!!e&&(!this.dateFilter||this.dateFilter(e))&&(!this.minDate||this.dateTimeAdapter.compare(e,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(e,this.maxDate)<=0)}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"isSameMonth",value:function(e,t){return!!(e&&t&&this.dateTimeAdapter.isValid(e)&&this.dateTimeAdapter.isValid(t)&&this.dateTimeAdapter.getYear(e)===this.dateTimeAdapter.getYear(t)&&this.dateTimeAdapter.getMonth(e)===this.dateTimeAdapter.getMonth(t))}},{key:"setSelectedDates",value:function(){var e=this;if(this.selectedDates=[],this.firstDateOfMonth)if(this.isInSingleMode&&this.selected){var t=this.dateTimeAdapter.differenceInCalendarDays(this.selected,this.firstDateOfMonth);this.selectedDates[0]=t+1}else this.isInRangeMode&&this.selecteds&&(this.selectedDates=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.differenceInCalendarDays(t,e.firstDateOfMonth)+1:null})))}},{key:"focusActiveCell",value:function(){this.calendarBodyElm.focusActiveCell()}},{key:"firstDayOfWeek",get:function(){return this._firstDayOfWeek},set:function(e){e>=0&&e<=6&&e!==this._firstDayOfWeek&&(this._firstDayOfWeek=e,this.isDefaultFirstDayOfWeek=!1,this.initiated&&(this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()))}},{key:"selectMode",get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}},{key:"selected",get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedDates()}},{key:"selecteds",get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedDates()}},{key:"pickerMoment",get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),this.firstDateOfMonth=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerMoment),this.dateTimeAdapter.getMonth(this._pickerMoment),1),!this.isSameMonth(t,this._pickerMoment)&&this.initiated&&this.generateCalendar()}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}},{key:"minDate",get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}},{key:"weekdays",get:function(){return this._weekdays}},{key:"days",get:function(){return this._days}},{key:"activeCell",get:function(){if(this.pickerMoment)return this.dateTimeAdapter.getDate(this.pickerMoment)+this.firstRowOffset-1}},{key:"isInSingleMode",get:function(){return"single"===this.selectMode}},{key:"isInRangeMode",get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode}},{key:"owlDTCalendarView",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||g3)(Mo(jr),Mo(b3,8),Mo(w3,8))},g3.\u0275cmp=gt({type:g3,selectors:[["owl-date-time-month-view"]],viewQuery:function(e,t){var n;1&e&&rc(Q3,!0),2&e&&ac(n=dc())&&(t.calendarBodyElm=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&rs("owl-dt-calendar-view",t.owlDTCalendarView)},inputs:{hideOtherMonths:"hideOtherMonths",firstDayOfWeek:"firstDayOfWeek",selectMode:"selectMode",selected:"selected",selecteds:"selecteds",pickerMoment:"pickerMoment",dateFilter:"dateFilter",minDate:"minDate",maxDate:"maxDate"},outputs:{selectedChange:"selectedChange",userSelection:"userSelection",pickerMomentChange:"pickerMomentChange"},exportAs:["owlYearView"],decls:7,vars:8,consts:[[1,"owl-dt-calendar-table","owl-dt-calendar-month-table"],[1,"owl-dt-calendar-header"],[1,"owl-dt-weekdays"],["class","owl-dt-weekday","scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"owl-dt-calendar-table-divider"],["owl-date-time-calendar-body","","role","grid",3,"rows","todayValue","selectedValues","selectMode","activeCell","keydown","select"],["scope","col",1,"owl-dt-weekday"]],template:function(e,t){1&e&&(Io(0,"table",0),Io(1,"thead",1),Io(2,"tr",2),Do(3,X2,3,2,"th",3),Eo(),Io(4,"tr"),Oo(5,"th",4),Eo(),Eo(),Io(6,"tbody",5),Ho("keydown",(function(e){return t.handleCalendarKeydown(e)}))("select",(function(e){return t.selectCalendarCell(e)})),Eo(),Eo()),2&e&&(rs("owl-dt-calendar-only-current-month",t.hideOtherMonths),ma(3),Ao("ngForOf",t.weekdays),ma(3),Ao("rows",t.days)("todayValue",t.todayDate)("selectedValues",t.selectedDates)("selectMode",t.selectMode)("activeCell",t.activeCell))},directives:[Ld,Q3],styles:[""],changeDetection:0}),g3),$3=((_3=function(){function e(t,n,i){_classCallCheck(this,e),this.cdRef=t,this.dateTimeAdapter=n,this.dateTimeFormats=i,this._selectMode="single",this._selecteds=[],this.localeSub=h.EMPTY,this.initiated=!1,this.selectedMonths=[],this.change=new Gl,this.monthSelected=new Gl,this.pickerMomentChange=new Gl,this.keyboardEnter=new Gl,this.monthNames=this.dateTimeAdapter.getMonthNames("short")}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){e.generateMonthList(),e.cdRef.markForCheck()}))}},{key:"ngAfterContentInit",value:function(){this.generateMonthList(),this.initiated=!0}},{key:"ngOnDestroy",value:function(){this.localeSub.unsubscribe()}},{key:"selectCalendarCell",value:function(e){this.selectMonth(e.value)}},{key:"selectMonth",value:function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.monthSelected.emit(t);var n=this.dateTimeAdapter.getNumDaysInMonth(t),i=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,Math.min(n,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(i)}},{key:"handleCalendarKeydown",value:function(e){var t;switch(e.keyCode){case 37:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case 39:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case 38:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-3),this.pickerMomentChange.emit(t);break;case 40:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,3),this.pickerMomentChange.emit(t);break;case 36:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case 35:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,11-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case 33:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?-10:-1),this.pickerMomentChange.emit(t);break;case 34:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?10:1),this.pickerMomentChange.emit(t);break;case 13:this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()}},{key:"generateMonthList",value:function(){if(this.pickerMoment){this.setSelectedMonths(),this.todayMonth=this.getMonthInCurrentYear(this.dateTimeAdapter.now()),this._months=[];for(var e=0;e<4;e++){for(var t=[],n=0;n<3;n++){var i=this.createMonthCell(n+3*e);t.push(i)}this._months.push(t)}}}},{key:"createMonthCell",value:function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1),n=this.dateTimeAdapter.format(t,this.dateTimeFormats.monthYearA11yLabel),i="owl-dt-month-"+e;return new G3(e,this.monthNames[e],n,this.isMonthEnabled(e),!1,i)}},{key:"isMonthEnabled",value:function(e){for(var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.dateTimeAdapter.getMonth(t)===e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this.dateTimeAdapter.compare(t,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(t,this.maxDate)<=0))return!0;return!1}},{key:"getMonthInCurrentYear",value:function(e){if(this.getValidDate(e)&&this.getValidDate(this._pickerMoment)){var t=this.dateTimeAdapter.compareYear(e,this._pickerMoment);return t<0?-1:t>0?12:this.dateTimeAdapter.getMonth(e)}return null}},{key:"setSelectedMonths",value:function(){this.selectedMonths=[],this.isInSingleMode&&this.selected&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selecteds[0]),this.selectedMonths[1]=this.getMonthInCurrentYear(this.selecteds[1]))}},{key:"hasSameYear",value:function(e,t){return!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"focusActiveCell",value:function(){this.calendarBodyElm.focusActiveCell()}},{key:"selectMode",get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateMonthList(),this.cdRef.markForCheck())}},{key:"selected",get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.setSelectedMonths()}},{key:"selecteds",get:function(){return this._selecteds},set:function(e){this._selecteds=[];for(var t=0;t<e.length;t++){var n=this.dateTimeAdapter.deserialize(e[t]);this._selecteds.push(this.getValidDate(n))}this.setSelectedMonths()}},{key:"pickerMoment",get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),!this.hasSameYear(t,this._pickerMoment)&&this.initiated&&this.generateMonthList()}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateMonthList()}},{key:"minDate",get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateMonthList()}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateMonthList()}},{key:"months",get:function(){return this._months}},{key:"activeCell",get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getMonth(this._pickerMoment)}},{key:"isInSingleMode",get:function(){return"single"===this.selectMode}},{key:"isInRangeMode",get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode}},{key:"owlDTCalendarView",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||_3)(Mo(jr),Mo(b3,8),Mo(w3,8))},_3.\u0275cmp=gt({type:_3,selectors:[["owl-date-time-year-view"]],viewQuery:function(e,t){var n;1&e&&rc(Q3,!0),2&e&&ac(n=dc())&&(t.calendarBodyElm=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&rs("owl-dt-calendar-view",t.owlDTCalendarView)},inputs:{selectMode:"selectMode",selected:"selected",selecteds:"selecteds",pickerMoment:"pickerMoment",dateFilter:"dateFilter",minDate:"minDate",maxDate:"maxDate"},outputs:{change:"change",monthSelected:"monthSelected",pickerMomentChange:"pickerMomentChange",keyboardEnter:"keyboardEnter"},exportAs:["owlMonthView"],decls:5,vars:7,consts:[[1,"owl-dt-calendar-table","owl-dt-calendar-year-table"],[1,"owl-dt-calendar-header"],["aria-hidden","true","colspan","3",1,"owl-dt-calendar-table-divider"],["owl-date-time-calendar-body","","role","grid",3,"rows","numCols","cellRatio","activeCell","todayValue","selectedValues","selectMode","keydown","select"]],template:function(e,t){1&e&&(Io(0,"table",0),Io(1,"thead",1),Io(2,"tr"),Oo(3,"th",2),Eo(),Eo(),Io(4,"tbody",3),Ho("keydown",(function(e){return t.handleCalendarKeydown(e)}))("select",(function(e){return t.selectCalendarCell(e)})),Eo(),Eo()),2&e&&(ma(4),Ao("rows",t.months)("numCols",3)("cellRatio",3/7)("activeCell",t.activeCell)("todayValue",t.todayMonth)("selectedValues",t.selectedMonths)("selectMode",t.selectMode))},directives:[Q3],styles:[""],changeDetection:0}),_3),J3=((m3=function(){function e(t,n,i){_classCallCheck(this,e),this.cdRef=t,this.pickerIntl=n,this.dateTimeAdapter=i,this._selectMode="single",this._selecteds=[],this.initiated=!1,this.change=new Gl,this.yearSelected=new Gl,this.pickerMomentChange=new Gl,this.keyboardEnter=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngAfterContentInit",value:function(){this._todayYear=this.dateTimeAdapter.getYear(this.dateTimeAdapter.now()),this.generateYearList(),this.initiated=!0}},{key:"selectCalendarCell",value:function(e){this.selectYear(e.value)}},{key:"selectYear",value:function(e){this.yearSelected.emit(this.dateTimeAdapter.createDate(e,0,1));var t=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),1),n=this.dateTimeAdapter.getNumDaysInMonth(t),i=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),Math.min(n,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(i)}},{key:"prevYearList",value:function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-21),this.generateYearList(),e.preventDefault()}},{key:"nextYearList",value:function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,21),this.generateYearList(),e.preventDefault()}},{key:"generateYearList",value:function(){this._years=[];for(var e=this.dateTimeAdapter.getYear(this._pickerMoment),t=e%21,n=0;n<7;n++){for(var i=[],a=0;a<3;a++){var r=this.createYearCell(e-t+(a+3*n));i.push(r)}this._years.push(i)}}},{key:"previousEnabled",value:function(){return!this.minDate||!this.minDate||!this.isSameYearList(this._pickerMoment,this.minDate)}},{key:"nextEnabled",value:function(){return!this.maxDate||!this.isSameYearList(this._pickerMoment,this.maxDate)}},{key:"handleCalendarKeydown",value:function(e){var t;switch(e.keyCode){case 37:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-1),this.pickerMomentChange.emit(t);break;case 39:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,1),this.pickerMomentChange.emit(t);break;case 38:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-3),this.pickerMomentChange.emit(t);break;case 40:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,3),this.pickerMomentChange.emit(t);break;case 36:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-this.dateTimeAdapter.getYear(this._pickerMoment)%21),this.pickerMomentChange.emit(t);break;case 35:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,21-this.dateTimeAdapter.getYear(this._pickerMoment)%21-1),this.pickerMomentChange.emit(t);break;case 33:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?-210:-21),this.pickerMomentChange.emit(t);break;case 34:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?210:21),this.pickerMomentChange.emit(t);break;case 13:this.selectYear(this.dateTimeAdapter.getYear(this._pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()}},{key:"createYearCell",value:function(e){var t=this.dateTimeAdapter.createDate(e,0,1),n=this.dateTimeAdapter.getYearName(t),i="owl-dt-year-"+e;return new G3(e,e.toString(),n,this.isYearEnabled(e),!1,i)}},{key:"setSelectedYears",value:function(){var e=this;this._selectedYears=[],this.isInSingleMode&&this.selected&&(this._selectedYears[0]=this.dateTimeAdapter.getYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this._selectedYears=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.getYear(t):null})))}},{key:"isYearEnabled",value:function(e){if(null==e||this.maxDate&&e>this.dateTimeAdapter.getYear(this.maxDate)||this.minDate&&e<this.dateTimeAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this.dateTimeAdapter.createDate(e,0,1);this.dateTimeAdapter.getYear(t)===e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}},{key:"isSameYearList",value:function(e,t){return Math.floor(this.dateTimeAdapter.getYear(e)/21)===Math.floor(this.dateTimeAdapter.getYear(t)/21)}},{key:"getValidDate",value:function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null}},{key:"focusActiveCell",value:function(){this.calendarBodyElm.focusActiveCell()}},{key:"selectMode",get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.setSelectedYears(),this.cdRef.markForCheck())}},{key:"selected",get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedYears()}},{key:"selecteds",get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedYears()}},{key:"pickerMoment",get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),t&&this._pickerMoment&&!this.isSameYearList(t,this._pickerMoment)&&this.generateYearList()}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateYearList()}},{key:"minDate",get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateYearList()}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateYearList()}},{key:"todayYear",get:function(){return this._todayYear}},{key:"years",get:function(){return this._years}},{key:"selectedYears",get:function(){return this._selectedYears}},{key:"isInSingleMode",get:function(){return"single"===this.selectMode}},{key:"isInRangeMode",get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode}},{key:"activeCell",get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getYear(this._pickerMoment)%21}},{key:"tableHeader",get:function(){if(this._years&&this._years.length>0)return"".concat(this._years[0][0].displayValue," - ").concat(this._years[6][2].displayValue)}},{key:"prevButtonLabel",get:function(){return this.pickerIntl.prevMultiYearLabel}},{key:"nextButtonLabel",get:function(){return this.pickerIntl.nextMultiYearLabel}},{key:"owlDTCalendarView",get:function(){return!0}},{key:"owlDTCalendarMultiYearView",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||m3)(Mo(jr),Mo(y3),Mo(b3,8))},m3.\u0275cmp=gt({type:m3,selectors:[["owl-date-time-multi-year-view"]],viewQuery:function(e,t){var n;1&e&&rc(Q3,!0),2&e&&ac(n=dc())&&(t.calendarBodyElm=n.first)},hostVars:4,hostBindings:function(e,t){2&e&&rs("owl-dt-calendar-view",t.owlDTCalendarView)("owl-dt-calendar-multi-year-view",t.owlDTCalendarMultiYearView)},inputs:{selectMode:"selectMode",selected:"selected",selecteds:"selecteds",pickerMoment:"pickerMoment",dateFilter:"dateFilter",minDate:"minDate",maxDate:"maxDate"},outputs:{change:"change",yearSelected:"yearSelected",pickerMomentChange:"pickerMomentChange",keyboardEnter:"keyboardEnter"},decls:14,vars:12,consts:[["type","button","tabindex","0",1,"owl-dt-control-button","owl-dt-control-arrow-button",3,"disabled","click"],["tabindex","-1",1,"owl-dt-control-button-content"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve","width","100%","height","100%",2,"enable-background","new 0 0 250.738 250.738"],["d","M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z",2,"fill-rule","evenodd","clip-rule","evenodd"],[1,"owl-dt-calendar-table","owl-dt-calendar-multi-year-table"],[1,"owl-dt-calendar-header"],["colspan","3"],["owl-date-time-calendar-body","","role","grid",3,"rows","numCols","cellRatio","activeCell","todayValue","selectedValues","selectMode","keydown","select"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve",2,"enable-background","new 0 0 250.738 250.738"],["d","M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                C197.237,120.447,195.534,115.448,191.75,111.689z",2,"fill-rule","evenodd","clip-rule","evenodd"]],template:function(e,t){1&e&&(Io(0,"button",0),Ho("click",(function(e){return t.prevYearList(e)})),Io(1,"span",1),Dn(),Io(2,"svg",2),Oo(3,"path",3),Eo(),Eo(),Eo(),Sn(),Io(4,"table",4),Io(5,"thead",5),Io(6,"tr"),Io(7,"th",6),_s(8),Eo(),Eo(),Eo(),Io(9,"tbody",7),Ho("keydown",(function(e){return t.handleCalendarKeydown(e)}))("select",(function(e){return t.selectCalendarCell(e)})),Eo(),Eo(),Io(10,"button",0),Ho("click",(function(e){return t.nextYearList(e)})),Io(11,"span",1),Dn(),Io(12,"svg",8),Oo(13,"path",9),Eo(),Eo(),Eo()),2&e&&(Ao("disabled",!t.previousEnabled()),wo("aria-label",t.prevButtonLabel),ma(8),gs(t.tableHeader),ma(1),Ao("rows",t.years)("numCols",3)("cellRatio",3/7)("activeCell",t.activeCell)("todayValue",t.todayYear)("selectedValues",t.selectedYears)("selectMode",t.selectMode),ma(1),Ao("disabled",!t.nextEnabled()),wo("aria-label",t.nextButtonLabel))},directives:[Q3],styles:[""],changeDetection:0}),m3),X3=((p3=function(){function e(){_classCallCheck(this,e),this.showDivider=!1,this.step=1,this.valueChange=new Gl,this.inputChange=new Gl,this.inputStream=new T,this.inputStreamSub=h.EMPTY,this.onValueInputMouseWheelBind=this.onValueInputMouseWheel.bind(this)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.inputStreamSub=this.inputStream.pipe(Xb(500),NS()).subscribe((function(t){if(t){var n=aw(t,0);e.updateValueViaInput(n)}})),this.bindValueInputMouseWheel()}},{key:"ngOnDestroy",value:function(){this.unbindValueInputMouseWheel(),this.inputStreamSub.unsubscribe()}},{key:"upBtnClicked",value:function(){this.updateValue(this.value+this.step)}},{key:"downBtnClicked",value:function(){this.updateValue(this.value-this.step)}},{key:"handleInputChange",value:function(e){this.inputStream.next(e)}},{key:"updateValue",value:function(e){this.valueChange.emit(e)}},{key:"updateValueViaInput",value:function(e){e>this.max||e<this.min||this.inputChange.emit(e)}},{key:"onValueInputMouseWheel",value:function(e){var t=(e=e||window.event).wheelDelta||-e.deltaY||-e.detail;t>0?this.upBtnDisabled||this.upBtnClicked():t<0&&(this.downBtnDisabled||this.downBtnClicked()),e.preventDefault?e.preventDefault():e.returnValue=!1}},{key:"bindValueInputMouseWheel",value:function(){this.valueInput.nativeElement.addEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)}},{key:"unbindValueInputMouseWheel",value:function(){this.valueInput.nativeElement.removeEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)}},{key:"displayValue",get:function(){return this.boxValue||this.value}},{key:"owlDTTimerBoxClass",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||p3)},p3.\u0275cmp=gt({type:p3,selectors:[["owl-date-time-timer-box"]],viewQuery:function(e,t){var n;1&e&&rc(Z2,!0),2&e&&ac(n=dc())&&(t.valueInput=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&rs("owl-dt-timer-box",t.owlDTTimerBoxClass)},inputs:{showDivider:"showDivider",step:"step",upBtnAriaLabel:"upBtnAriaLabel",upBtnDisabled:"upBtnDisabled",downBtnAriaLabel:"downBtnAriaLabel",downBtnDisabled:"downBtnDisabled",boxValue:"boxValue",value:"value",min:"min",max:"max",inputLabel:"inputLabel"},outputs:{valueChange:"valueChange",inputChange:"inputChange"},exportAs:["owlDateTimeTimerBox"],decls:15,vars:10,consts:[["class","owl-dt-timer-divider","aria-hidden","true",4,"ngIf"],["type","button","tabindex","-1",1,"owl-dt-control-button","owl-dt-control-arrow-button",3,"disabled","click"],["tabindex","-1",1,"owl-dt-control-button-content"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","x","0px","y","0px","viewBox","0 0 451.847 451.846",0,"xml","space","preserve","width","100%","height","100%",2,"enable-background","new 0 0 451.847 451.846"],["d","M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n                        L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n                        c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z"],[1,"owl-dt-timer-content"],["maxlength","2",1,"owl-dt-timer-input",3,"value","keydown.arrowup","keydown.arrowdown","input"],["valueInput",""],[1,"owl-hidden-accessible"],["d","M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n                        c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n                        c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"],["aria-hidden","true",1,"owl-dt-timer-divider"]],template:function(e,t){if(1&e){var n=Fo();Do(0,e3,1,0,"div",0),Io(1,"button",1),Ho("click",(function(){return t.upBtnClicked()})),Io(2,"span",2),Dn(),Io(3,"svg",3),Oo(4,"path",4),Eo(),Eo(),Eo(),Sn(),Io(5,"label",5),Io(6,"input",6,7),Ho("keydown.arrowup",(function(){return!t.upBtnDisabled&&t.upBtnClicked()}))("keydown.arrowdown",(function(){return!t.downBtnDisabled&&t.downBtnClicked()}))("input",(function(){en(n);var e=So(7);return t.handleInputChange(e.value)})),Nl(8,"numberFixedLen"),Eo(),Io(9,"span",8),_s(10),Eo(),Eo(),Io(11,"button",1),Ho("click",(function(){return t.downBtnClicked()})),Io(12,"span",2),Dn(),Io(13,"svg",3),Oo(14,"path",9),Eo(),Eo(),Eo()}2&e&&(Ao("ngIf",t.showDivider),ma(1),Ao("disabled",t.upBtnDisabled),wo("aria-label",t.upBtnAriaLabel),ma(5),Ao("value",jl(8,7,t.displayValue,2)),ma(4),gs(t.inputLabel),ma(1),Ao("disabled",t.downBtnDisabled),wo("aria-label",t.downBtnAriaLabel))},directives:function(){return[Ed]},pipes:function(){return[Z3]},styles:[""],changeDetection:0}),p3),Z3=((f3=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var n=Math.floor(e),i=Math.floor(t);if(null===e||isNaN(n)||isNaN(i))return e;for(var a=n.toString();a.length<i;)a="0"+a;return a}}]),e}()).\u0275fac=function(e){return new(e||f3)},f3.\u0275pipe=Dt({name:"numberFixedLen",type:f3,pure:!0}),f3),e4=((h3=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:h3}),h3.\u0275inj=me({factory:function(e){return new(e||h3)},providers:[F3,V3],imports:[[uh,hC,Dx,FM]]}),h3),t4=((d3=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:d3}),d3.\u0275inj=me({factory:function(e){return new(e||d3)},providers:[y3,N3],imports:[[uh,Dx,e4,hC]]}),d3),n4={fullPickerInput:"dd-MM-yyyy HH:mm",parseInput:"dd-MM-yyyy HH:mm",datePickerInput:"dd-MM-yyyy HH:mm",timePickerInput:"HH:mm",monthYearLabel:"MMM yyyy",dateA11yLabel:"dd-MM-yyyy",monthYearA11yLabel:"MMMM YYYY"},i4={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},a4={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},r4=l4(31,(function(e){return String(e+1)})),o4="undefined"!=typeof Intl,s4=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:[+\-]\d{2}:\d{2}))?)?$/;function l4(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var c4,u4=((c4=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a,r;return _classCallCheck(this,n),(r=t.call(this)).owlDateTimeLocale=e,_get((a=_assertThisInitialized(r),_getPrototypeOf(n.prototype)),"setLocale",a).call(a,e),r.useUtcForDisplay=!i.TRIDENT,r._clampDate=i.TRIDENT||i.EDGE,r}return _createClass(n,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDay",value:function(e){return e.getDay()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getHours",value:function(e){return e.getHours()}},{key:"getMinutes",value:function(e){return e.getMinutes()}},{key:"getSeconds",value:function(e){return e.getSeconds()}},{key:"getTime",value:function(e){return e.getTime()}},{key:"getNumDaysInMonth",value:function(e){var t=this.createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0);return this.getDate(t)}},{key:"getLocale",value:function(){return _get(_getPrototypeOf(n.prototype),"locale",this)?_get(_getPrototypeOf(n.prototype),"locale",this):"en-HK"}},{key:"differenceInCalendarDays",value:function(e,t){if(this.isValid(e)&&this.isValid(t)){var n=this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e)),i=this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t)),a=this.getTime(n)-n.getTimezoneOffset()*this.milliseondsInMinute,r=this.getTime(i)-i.getTimezoneOffset()*this.milliseondsInMinute;return Math.round((a-r)/this.millisecondsInDay)}return null}},{key:"getYearName",value:function(e){if(o4){var t=new Intl.DateTimeFormat(this.getLocale(),{year:"numeric",timeZone:"utc"});return this.stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getMonthNames",value:function(e){var t=this;if(o4){var n=new Intl.DateTimeFormat(this.getLocale(),{month:e,timeZone:"utc"});return l4(12,(function(e){return t.stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))}))}return i4[e]}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(o4){var n=new Intl.DateTimeFormat(this.getLocale(),{weekday:e,timeZone:"utc"});return l4(7,(function(e){return t.stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))}))}return a4[e]}},{key:"getDateNames",value:function(){var e=this;if(o4){var t=new Intl.DateTimeFormat(this.getLocale(),{day:"numeric",timeZone:"utc"});return l4(31,(function(n){return e.stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))}))}return r4}},{key:"toIso8601",value:function(e){return e.toISOString()}},{key:"isEqual",value:function(e,t){return!(!this.isValid(e)||!this.isValid(t))&&e.getTime()===t.getTime()}},{key:"isSameDay",value:function(e,t){if(this.isValid(e)&&this.isValid(t)){var n=this.clone(e),i=this.clone(t);return n.setHours(0,0,0,0),i.setHours(0,0,0,0),n.getTime()===i.getTime()}return!1}},{key:"isValid",value:function(e){return e&&!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this.clone(e);t=Number(t);var i=n.getMonth()+t,a=new Date(0);a.setFullYear(n.getFullYear(),i,1),a.setHours(0,0,0,0);var r=this.getNumDaysInMonth(a);return n.setMonth(i,Math.min(r,n.getDate())),n}},{key:"addCalendarDays",value:function(e,t){var n=this.clone(e);return t=Number(t),n.setDate(n.getDate()+t),n}},{key:"setHours",value:function(e,t){var n=this.clone(e);return n.setHours(t),n}},{key:"setMinutes",value:function(e,t){var n=this.clone(e);return n.setMinutes(t),n}},{key:"setSeconds",value:function(e,t){var n=this.clone(e);return n.setSeconds(t),n}},{key:"createDate",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(t<0||t>11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));if(i<0||i>23)throw Error('Invalid hours "'.concat(i,'". Hours has to be between 0 and 23.'));if(a<0||a>59)throw Error('Invalid minutes "'.concat(a,'". Minutes has to between 0 and 59.'));if(r<0||r>59)throw Error('Invalid seconds "'.concat(r,'". Seconds has to be between 0 and 59.'));var o=this.createDateWithOverflow(e,t,n,i,a,r);if(o.getMonth()!==t)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(t,'".'));return o}},{key:"clone",value:function(e){return this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e),this.getHours(e),this.getMinutes(e),this.getSeconds(e))}},{key:"now",value:function(){return new Date}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("JSNativeDate: Cannot format invalid date.");return dd(e,t,this.getLocale()?this.getLocale():"en-HK")}},{key:"parse",value:function(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(s4.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(n.prototype),"deserialize",this).call(this,e)}},{key:"createDateWithOverflow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=new Date(e,t,n,i,a,r);return e>=0&&e<100&&o.setFullYear(this.getYear(o)-1900),o}},{key:"stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(n)}}]),n}(b3)).\u0275fac=function(e){return new(e||c4)(Xe(k3,8),Xe(mw))},c4.\u0275prov=fe({token:c4,factory:c4.\u0275fac}),c4);function d4(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}function h4(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length(256)."),Eo())}function f4(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Contains blocked period."),Eo())}function p4(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Contains blocked period."),Eo())}function m4(e,t){1&e&&(Io(0,"mat-error"),_s(1,"End time should be greater than start time."),Eo())}var _4,g4=((_4=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this._formBuilder=t,this._cd=n,this._renderer=i,this.endDateConstraintsValidator=function(e){if(a._form){if(!a._registerdBackoutPeriods)return null;if(a._form.get("startDate").value&&a._form.get("endDate").value){var t=new Date(a._form.get("startDate").value);t.setSeconds(0);var n=new Date(a._form.get("endDate").value);n.setSeconds(0);var i,r=_createForOfIteratorHelper(a._registerdBackoutPeriods);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=new Date(o.startDate),l=new Date(o.endDate);if(t.getTime()>=s.getTime()&&t.getTime()<=l.getTime())return{dateConstraints:!0};if(n.getTime()>=s.getTime()&&n.getTime()<=l.getTime())return{dateConstraints:!0};if(s.getTime()>=t.getTime()&&s.getTime()<=n.getTime())return{dateConstraints:!0};if(l.getTime()>=t.getTime()&&l.getTime()<=n.getTime())return{dateConstraints:!0};if(t.getTime()>=n.getTime())return{reverseOrderConstraints:!0}}}catch(c){r.e(c)}finally{r.f()}}}},this._form=this._generateDataForm(this._formBuilder),this._registerdBackoutPeriods=null,this.blackoutStartDateMin=new Date,this.blackoutStartDateMax=new Date,this.blackoutStartDateMax.setDate(this.blackoutStartDateMax.getDate()+365),this.blackoutEndDateMin=new Date,this.blackoutEndDateMax=new Date,this.blackoutEndDateMax.setDate(this.blackoutEndDateMax.getDate()+365)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._form.get("startDate").valueChanges.subscribe({next:function(t){e._form.get("startDate").value&&(e.blackoutEndDateMin=new Date(e._form.get("startDate").value)),e._form.get("endDate").value&&e._form.get("endDate").markAsTouched()}}),this._form.get("endDate").valueChanges.subscribe({next:function(t){e._form.get("startDate").value&&e._form.get("startDate").markAsTouched()}})}},{key:"_generateDataForm",value:function(e){return e.group({blackoutId:[""],name:["",[N_.required,N_.maxLength(256)]],startDate:["",[N_.required]],endDate:["",[N_.required,this.endDateConstraintsValidator]],createdBy:[""],createdAt:[""],updatedBy:[""],updatedAt:[""]})}},{key:"setPeriod",value:function(e){this._form.setValue({blackoutId:e.blackoutId,name:e.name,startDate:new Date(e.startDate),endDate:new Date(e.endDate),createdBy:e.createdBy,createdAt:e.createdAt,updatedBy:e.updatedBy,updatedAt:e.updatedAt})}},{key:"evalInput",value:function(){var e=this._form.get("startDate").value?new Date(this._form.get("startDate").value):null;e.setSeconds(0);var t=this._form.get("endDate").value?new Date(this._form.get("endDate").value):null;return t.setSeconds(0),{blackoutId:this._form.get("blackoutId").value?this._form.get("blackoutId").value:null,name:this._form.get("name").value?this._form.get("name").value:null,startDate:FV(e),endDate:FV(t),createdBy:this._form.get("createdBy").value,createdAt:this._form.get("createdAt").value,updatedBy:this._form.get("updatedBy").value,updatedAt:this._form.get("updatedAt").value}}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"setRegisteredBackOut",value:function(e){this._registerdBackoutPeriods=e,this._form.get("startDate").value&&this._form.get("startDate").updateValueAndValidity(),this._form.get("endDate").value&&this._form.get("endDate").updateValueAndValidity()}},{key:"clear",value:function(){this._form=this._generateDataForm(this._formBuilder),this._form.setValue({blackoutId:null,name:null,startDate:null,endDate:null,createdBy:null,createdAt:null,updatedBy:null,updatedAt:null})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||_4)(Mo(tv),Mo(jr),Mo(Gs))},_4.\u0275cmp=gt({type:_4,selectors:[["app-ga-blackout-input"]],features:[Vs([{provide:b3,useClass:u4},{provide:w3,useValue:n4}])],decls:26,vars:21,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3","no-top-padding"],["appearance","standard"],["matInput","","required","",3,"formControl"],[4,"ngIf"],["matInput","","required","",3,"owlDateTime","owlDateTimeTrigger","formControl","min","max","readonly"],[3,"hour12Timer"],["picker1",""],["picker2",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Reason for visitor request suspension"),Eo(),Oo(6,"input",4),Do(7,d4,2,0,"mat-error",5),Do(8,h4,2,0,"mat-error",5),Eo(),Eo(),Io(9,"div",2),Io(10,"mat-form-field",3),Io(11,"mat-label"),_s(12,"Start Date Time (dd-mm-yyyy HH:MM)"),Eo(),Oo(13,"input",6),Oo(14,"owl-date-time",7,8),Do(16,f4,2,0,"mat-error",5),Eo(),Eo(),Io(17,"div",2),Io(18,"mat-form-field",3),Io(19,"mat-label"),_s(20,"End Date Time (dd-mm-yyyy HH:MM)"),Eo(),Oo(21,"input",6),Oo(22,"owl-date-time",7,9),Do(24,p4,2,0,"mat-error",5),Do(25,m4,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(15),i=So(23);Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.name),ma(1),Ao("ngIf",t.form.controls.name.hasError("required")),ma(1),Ao("ngIf",t.form.controls.name.hasError("maxlength")),ma(5),Ao("owlDateTime",n)("owlDateTimeTrigger",n)("formControl",t.form.controls.startDate)("min",t.blackoutStartDateMin)("max",t.blackoutStartDateMax)("readonly",!0),ma(1),Ao("hour12Timer",!1),ma(2),Ao("ngIf",t.form.controls.startDate.hasError("dateConstraints")),ma(5),Ao("owlDateTime",i)("owlDateTimeTrigger",i)("formControl",t.form.controls.endDate)("min",t.blackoutEndDateMin)("max",t.blackoutEndDateMax)("readonly",!0),ma(1),Ao("hour12Timer",!1),ma(2),Ao("ngIf",t.form.controls.endDate.hasError("dateConstraints")),ma(1),Ao("ngIf",t.form.controls.endDate.hasError("reverseOrderConstraints"))}},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,W3,j3,B3,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.time-picker-icon[_ngcontent-%COMP%]{cursor:pointer}"]}),_4),v4=["errorComponent"];function y4(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,12),Eo())}function k4(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function b4(e,t){1&e&&(Io(0,"th",13),_s(1," Reason for visitor request suspension "),Eo())}function w4(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function C4(e,t){1&e&&(Io(0,"th",13),_s(1," End Date Time"),Eo())}function D4(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.endDate,"dd-MM-yyyy HH:mm","en-HK")," ")}}function S4(e,t){1&e&&(Io(0,"th",13),_s(1," Start Date Time"),Eo())}function M4(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.startDate,"dd-MM-yyyy HH:mm","en-HK")," ")}}function x4(e,t){1&e&&Oo(0,"th",13)}function T4(e,t){if(1&e){var n=Fo();Io(0,"td",14),Io(1,"div",15),Io(2,"button",16),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDeleteBtnClicked(e,i)})),_s(3,"Cancel"),Eo(),Io(4,"button",17),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onNotifyBtnClicked(e,i)})),_s(5,"Notify"),Eo(),Eo(),Eo()}}function A4(e,t){1&e&&Oo(0,"tr",18)}function L4(e,t){1&e&&Oo(0,"tr",19)}var I4,E4,O4,R4=((O4=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["name","startDate","endDate","action"],this.notified=new Gl,this.onDeleted=new Gl,this.onDataLoaded=new Gl,this._dataSource=null}return _createClass(e,[{key:"ngOnInit",value:function(){null!=this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"clear",value:function(){this._dataSource.clear()}},{key:"onNotifyBtnClicked",value:function(e,t){this.notified.emit(t)}},{key:"onDeleteBtnClicked",value:function(e,t){this.onDeleted.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||O4)(Mo(jr))},O4.\u0275cmp=gt({type:O4,selectors:[["app-ga-blackout-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(v4,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{notified:"notified",onDeleted:"onDeleted",onDataLoaded:"onDataLoaded"},decls:21,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","endDate"],["matColumnDef","startDate"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"table-action"],["mat-raised-button","","onclick","this.blur()",1,"action-btn",3,"click"],["mat-raised-button","","onclick","this.blur()",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,y4,3,0,"div",0),Io(1,"div"),Do(2,k4,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,b4,2,0,"th",4),Do(8,w4,2,1,"td",5),Po(),Ro(9,6),Do(10,C4,2,0,"th",4),Do(11,D4,3,5,"td",5),Po(),Ro(12,7),Do(13,S4,2,0,"th",4),Do(14,M4,3,5,"td",5),Po(),Ro(15,8),Do(16,x4,1,0,"th",4),Do(17,T4,6,0,"td",5),Po(),Do(18,A4,1,0,"tr",9),Do(19,L4,1,0,"tr",10),Eo(),Io(20,"mat-paginator",11),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-header-cell[_ngcontent-%COMP%]{padding:0}.mat-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-endDate[_ngcontent-%COMP%], .mat-column-startDate[_ngcontent-%COMP%]{width:25%;padding:13px 0!important}.mat-column-name[_ngcontent-%COMP%]{width:25%;padding:13px 0 13px 10px!important}.mat-column-action[_ngcontent-%COMP%]{width:25%;padding:13px 24px 13px 0!important}.table-action[_ngcontent-%COMP%]{float:right}.table-action[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{margin-right:15px}"]}),O4),P4=((E4=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"confirm",value:function(){this._matDialogRef.close(!0)}},{key:"cancel",value:function(){this._matDialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||E4)(Mo(Fx))},E4.\u0275cmp=gt({type:E4,selectors:[["app-ga-notify-dialog"]],decls:8,vars:0,consts:[[1,"polyu-alert-container"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"p"),_s(2,"Confirm to notify users?"),Eo(),Io(3,"div",1),Io(4,"button",2),Ho("click",(function(){return t.cancel()})),_s(5,"No"),Eo(),Io(6,"button",2),Ho("click",(function(){return t.confirm()})),_s(7,"Yes"),Eo(),Eo(),Eo())},directives:[bS],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}.polyu-alert-container[_ngcontent-%COMP%]{min-width:400px}"]}),E4),Y4=((I4=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"confirm",value:function(){this._matDialogRef.close(!0)}},{key:"cancel",value:function(){this._matDialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||I4)(Mo(Fx))},I4.\u0275cmp=gt({type:I4,selectors:[["app-ga-blackout-canncel-confirm-dialog"]],decls:8,vars:0,consts:[[1,"polyu-alert-container"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"p"),_s(2,"Cancel this blackout period?"),Eo(),Io(3,"div",1),Io(4,"button",2),Ho("click",(function(){return t.cancel()})),_s(5,"No"),Eo(),Io(6,"button",2),Ho("click",(function(){return t.confirm()})),_s(7,"Yes"),Eo(),Eo(),Eo())},directives:[bS],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}.polyu-alert-container[_ngcontent-%COMP%]{min-width:400px}"]}),I4),F4=["blackoutTable"],q4=["blackoutInput"];function V4(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var H4,N4,B4=((N4=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._location=a,this._cd=r,this.message=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new Y2(this._applicationService,this._cd),this._blackoutTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles&&this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){var e=this,t=new pX;this._blackoutTableComponent.setQueryCriteria(t),this._blackoutTableComponent.refresh();var n=new Date,i=new Date;i.setDate(i.getDate()+365);var a=new pX;a.startDate=n,a.endDate=i,a.row=-1,a.offset=0,this.isDataLoading=!0,this._applicationService.searchGuestAccessBlackoutPeriod(a).subscribe((function(t){e._blackoutInputComponent.setRegisteredBackOut(t.data),e.isDataLoading=!1,e._cd.detectChanges()}),(function(t){e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to unblock vehicle access. Please try again later.",null,{duration:4e3}),e.isDataLoading=!1,e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"back",value:function(){this._location.back()}},{key:"addBlackout",value:function(){var e=this,t=this,n=m_({input:this._blackoutInputComponent.validateForm()}).pipe(V((function(e){return e.input})));K(n.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),n.pipe(gu((function(e){return e})),Pv((function(){e.isAPILoading=!0;var t=e._blackoutInputComponent.evalInput();return e._applicationService.addGuestAccessBlackoutPeriod(t)})),Pv((function(){var e=new Date,n=new Date;n.setDate(n.getDate()+365);var i=new pX;return i.startDate=e,i.endDate=n,i.row=-1,i.offset=0,t._applicationService.searchGuestAccessBlackoutPeriod(i)})),Uv((function(t){e.isAPILoading=!1,e._blackoutInputComponent.clear(),e._blackoutInputComponent.setRegisteredBackOut(t.data),e._blackoutTableComponent.refresh()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to add blockout date range.",null,{duration:4e3}),e.isAPILoading=!1,e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"clearBlackout",value:function(){this._blackoutInputComponent.clear()}},{key:"onRequestNotified",value:function(e){var t=this;this._dialog.open(P4).afterClosed().subscribe((function(n){n&&(t.isAPILoading=!0,t._applicationService.notifyGuestBlackoutPeriod(e).subscribe((function(e){t.isAPILoading=!1,t._snackBar.open("Success.",null,{duration:2e3}),t._cd.detectChanges()}),(function(e){t._snackBar.open(e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Fail to add notify users.",null,{duration:4e3}),t.isAPILoading=!1,t._cd.detectChanges(),e&&401===e.status&&t._dialog.open(_T)})))}))}},{key:"onDeleted",value:function(e){var t=this,n=this;this._dialog.open(Y4).afterClosed().subscribe((function(i){i&&(n.isAPILoading=!0,n._applicationService.deleteGuestBlackoutPeriod(e).pipe(Pv((function(e){var t=new Date,i=new Date;i.setDate(i.getDate()+365);var a=new pX;return a.startDate=t,a.endDate=i,a.row=-1,a.offset=0,n._applicationService.searchGuestAccessBlackoutPeriod(a)}))).subscribe((function(e){t._blackoutInputComponent.setRegisteredBackOut(e.data),n.isAPILoading=!1,n._blackoutTableComponent.clear(),n._blackoutTableComponent.refresh(),n._cd.detectChanges()}),(function(e){n._snackBar.open(e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"System error. Please try again later.",null,{duration:4e3}),n.isAPILoading=!1,n._cd.detectChanges(),e&&401===e.status&&n._dialog.open(_T)})))}))}}]),e}()).\u0275fac=function(e){return new(e||N4)(Mo(_S),Mo(EY),Mo(Bx),Mo(ju),Mo(jr))},N4.\u0275cmp=gt({type:N4,selectors:[["app-ga-blackout-page"]],viewQuery:function(e,t){var n;1&e&&(rc(F4,!0),rc(q4,!0)),2&e&&(ac(n=dc())&&(t._blackoutTableComponent=n.first),ac(n=dc())&&(t._blackoutInputComponent=n.first))},decls:18,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-input-container"],[4,"ngIf"],["blackoutInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-table-container"],[3,"notified","onDeleted"],["blackoutTable",""],[1,"polyu-action-space-separated-bar"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Visitor Request Suspension"),Eo(),Io(2,"div",1),Do(3,V4,2,0,"app-overlay",2),Io(4,"div"),Oo(5,"app-ga-blackout-input",null,3),Eo(),Io(7,"div",4),Io(8,"button",5),Ho("click",(function(){return t.addBlackout()})),_s(9,"Add"),Eo(),Io(10,"button",6),Ho("click",(function(){return t.clearBlackout()})),_s(11,"Reset"),Eo(),Eo(),Eo(),Io(12,"div",7),Io(13,"app-ga-blackout-table",8,9),Ho("notified",(function(e){return t.onRequestNotified(e)}))("onDeleted",(function(e){return t.onDeleted(e)})),Eo(),Eo(),Io(15,"div",10),Io(16,"button",5),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf",t.isAPILoading||t.isDataLoading))},directives:[Ed,g4,bS,R4,tV,nV],styles:[".polyu-table-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-section-title[_ngcontent-%COMP%]{margin-top:30px}.polyu-input-container[_ngcontent-%COMP%]{margin-top:40px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px;padding-right:24px;margin-top:0}"]}),N4),j4=((H4=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this.isEnable=!0,this._studentWorkflowForm=this._generateDataForm(this._formBuilder),this._staffWorkflowForm=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setEnable",value:function(e){this.isEnable=e}},{key:"_generateDataForm",value:function(e){return e.group({configId:["",N_.required],value:["",[N_.required]],createdAt:[""],createdBy:[""],updatedBy:[""],updatedAt:[""]})}},{key:"validateStudentWorkflowSettingsForm",value:function(){return this._studentWorkflowForm.markAllAsTouched(),this._studentWorkflowForm.updateValueAndValidity(),this._studentWorkflowForm.statusChanges.pipe(Vv(this._studentWorkflowForm.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"validateStaffWorkflowSettingsForm",value:function(){return this._staffWorkflowForm.markAllAsTouched(),this._staffWorkflowForm.updateValueAndValidity(),this._staffWorkflowForm.statusChanges.pipe(Vv(this._staffWorkflowForm.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalStudentWorkflowSettingsConfig",value:function(){return{configId:this._studentWorkflowForm.get("configId").value?this._studentWorkflowForm.get("configId").value:null,value:this._studentWorkflowForm.get("value").value?this._studentWorkflowForm.get("value").value:null,createdAt:this._studentWorkflowForm.get("createdAt").value?this._studentWorkflowForm.get("createdAt").value:null,createdBy:this._studentWorkflowForm.get("createdBy").value?this._studentWorkflowForm.get("createdBy").value:null,updatedBy:this._studentWorkflowForm.get("updatedBy").value?this._studentWorkflowForm.get("updatedBy").value:null,updatedAt:this._studentWorkflowForm.get("updatedAt").value?this._studentWorkflowForm.get("updatedAt").value:null}}},{key:"evalStaffWorkflowSettingsConfig",value:function(){return{configId:this._staffWorkflowForm.get("configId").value?this._staffWorkflowForm.get("configId").value:null,value:this._staffWorkflowForm.get("value").value?this._staffWorkflowForm.get("value").value:null,createdAt:this._staffWorkflowForm.get("createdAt").value?this._staffWorkflowForm.get("createdAt").value:null,createdBy:this._staffWorkflowForm.get("createdBy").value?this._staffWorkflowForm.get("createdBy").value:null,updatedBy:this._staffWorkflowForm.get("updatedBy").value?this._staffWorkflowForm.get("updatedBy").value:null,updatedAt:this._staffWorkflowForm.get("updatedAt").value?this._staffWorkflowForm.get("updatedAt").value:null}}},{key:"setStudentWorkflowSettings",value:function(e){this._studentWorkflowForm.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"setStaffWorkflowSettings",value:function(e){this._staffWorkflowForm.setValue({configId:e.configId?e.configId:"",value:e.value?e.value:"",createdAt:e.createdAt?e.createdAt:"",createdBy:e.createdBy?e.createdBy:"",updatedBy:e.updatedBy?e.updatedBy:"",updatedAt:e.updatedAt?e.updatedAt:""})}},{key:"studentWorkflowForm",get:function(){return this._studentWorkflowForm}},{key:"staffWorkflowForm",get:function(){return this._staffWorkflowForm}}]),e}()).\u0275fac=function(e){return new(e||H4)(Mo(tv))},H4.\u0275cmp=gt({type:H4,selectors:[["app-ga-workflow-settings-input"]],decls:23,vars:7,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-6"],[1,"polyu-ratio-label"],["matInput","","color","primary",1,"polyu-radio-group",3,"formControl","disabled"],["value","True",1,"polyu-radio-button"],["value","False",1,"polyu-radio-button"],[3,"hidden"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"app-form-field"),Io(4,"mat-label",3),_s(5,"Student sponsored guest required HoD's approval"),Eo(),Io(6,"mat-radio-group",4),Io(7,"mat-radio-button",5),_s(8,"Enable"),Eo(),Io(9,"mat-radio-button",6),_s(10,"Disable"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Io(11,"div",7),Io(12,"form",0),Io(13,"div",1),Io(14,"div",2),Io(15,"app-form-field"),Io(16,"mat-label",3),_s(17,"Staff sponsored guest required FMO's approval"),Eo(),Io(18,"mat-radio-group",4),Io(19,"mat-radio-button",5),_s(20,"Enable"),Eo(),Io(21,"mat-radio-button",6),_s(22,"Disable"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.studentWorkflowForm),ma(6),Ao("formControl",t.studentWorkflowForm.controls.value)("disabled",!t.isEnable),ma(5),Ao("hidden",!1),ma(1),Ao("formGroup",t.staffWorkflowForm),ma(6),Ao("formControl",t.staffWorkflowForm.controls.value)("disabled",!t.isEnable))},directives:[jg,Y_,Qg,gH,gI,uY,P_,Wg,hY],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-radio-button[_ngcontent-%COMP%]{margin-left:15px}.polyu-ratio-label[_ngcontent-%COMP%]{display:block;padding-bottom:15px}"]}),H4),z4=["gaConfigurationInput"];function U4(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var W4,G4=((W4=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._cd=i,this._dialog=a,this._location=r,this.isLoading=!1,this.isInAction=!0,this.icon=null,this.resultMessage=null,this.isEnabled=!0}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadDate():e.open(nQ)}},{key:"loadDate",value:function(){var e=this,t=this;this.isEnabled=pu.module.guestAccess.workflowEnable,this._gaConfigurationInput.setEnable(this.isEnabled);var n=new fX;n.configId="VRS.GA.WORKFLOW.STUDENT.ENABLE";var i=new fX;i.configId="VRS.GA.WORKFLOW.STAFF.ENABLE",this.isLoading=!0,m_(this._applicationService.getGuestAccessConfig(n),this._applicationService.getGuestAccessConfig(i)).subscribe((function(n){e.isLoading=!1,t._gaConfigurationInput.setStudentWorkflowSettings(n[0]),t._gaConfigurationInput.setStaffWorkflowSettings(n[1])}),(function(e){t.isInAction=!1,t.isLoading=!1,t.icon="error",t.resultMessage=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Unable to load settings.",t._cd.detectChanges(),e&&401===e.status&&t._dialog.open(_T)}))}},{key:"back",value:function(){this._location.back()}},{key:"update",value:function(){var e=this,t=m_({studentWorkflowIput:this._gaConfigurationInput.validateStudentWorkflowSettingsForm(),staffWorkflowIput:this._gaConfigurationInput.validateStaffWorkflowSettingsForm()}).pipe(V((function(e){var t=e.studentWorkflowIput,n=e.staffWorkflowIput;return t&&n})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isLoading=!0;var t=new hX;return t.dataList=[e._gaConfigurationInput.evalStudentWorkflowSettingsConfig(),e._gaConfigurationInput.evalStaffWorkflowSettingsConfig()],e._applicationService.updateGuestAccessConfigs(t)})),Uv((function(t){e.isInAction=!1,e.isLoading=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()})))).subscribe((function(e){}),(function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to update settings.",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}}]),e}()).\u0275fac=function(e){return new(e||W4)(Mo(_S),Mo(EY),Mo(jr),Mo(Bx),Mo(ju))},W4.\u0275cmp=gt({type:W4,selectors:[["app-ga-workflow-setting-page"]],viewQuery:function(e,t){var n;1&e&&rc(z4,!0),2&e&&ac(n=dc())&&(t._gaConfigurationInput=n.first)},decls:21,vars:6,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[3,"hidden"],["gaConfigurationInput",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-alert-messge"],[1,"polyu-action-bar"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,U4,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"Sponsored Guest Approval Enforcement"),Eo(),Io(4,"div",3),Oo(5,"app-ga-workflow-settings-input",null,4),Io(7,"div",5),Io(8,"button",6),Ho("click",(function(){return t.back()})),_s(9,"Back"),Eo(),Io(10,"button",7),Ho("click",(function(){return t.update()})),_s(11,"Update"),Eo(),Eo(),Eo(),Io(12,"div",3),Io(13,"div",8),Io(14,"mat-icon",9),_s(15),Eo(),Eo(),Io(16,"h3",10),_s(17),Eo(),Io(18,"div",11),Io(19,"button",6),Ho("click",(function(){return t.back()})),_s(20,"Back"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(3),Ao("hidden",!t.isInAction),ma(6),Ao("disabled",!t.isEnabled),ma(2),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage))},directives:[Ed,j4,bS,pT,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.polyu-alert-messge[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}"]}),W4),Q4=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessSponsors(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),K4=["keywordInput"];function $4(e,t){if(1&e){var n=Fo();Io(0,"button",15),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function J4(e,t){if(1&e){var n=Fo();Io(0,"button",17),Ho("click",(function(){return en(n),Uo().clearValue("from")})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function X4(e,t){1&e&&Oo(0,"mat-datepicker-toggle",18),2&e&&(Uo(),Ao("for",So(19)))}function Z4(e,t){if(1&e){var n=Fo();Io(0,"button",17),Ho("click",(function(){return en(n),Uo().clearValue("to")})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function e5(e,t){1&e&&Oo(0,"mat-datepicker-toggle",18),2&e&&(Uo(),Ao("for",So(30)))}var t5,n5=((t5=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){(new Date).setHours(0,0,0,0)}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""],from:[""],to:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:"",from:this._form.get("from").value?new Date(this._form.get("from").value):null,to:this._form.get("to").value?new Date(this._form.get("to").value):null}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:"",from:e.from?dd(e.from,"yyyy-MM-dd","en-HK"):null,to:e.to?dd(e.to,"yyyy-MM-dd","en-HK"):null}:{keyword:"",from:null,to:null})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:"",from:this._form.get("from").value?this._form.get("date").value:null,to:this._form.get("to").value?this._form.get("to").value:null})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearValue",value:function(e){event.stopPropagation(),this._form.controls[e].setValue("")}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||t5)(Mo(tv))},t5.\u0275cmp=gt({type:t5,selectors:[["app-ga-sponsor-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(K4,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:36,vars:13,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","readonly"],["matSuffix","",1,"flex-container"],["type","button","mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[3,"for",4,"ngIf"],["picker1",""],["picker2",""],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"],["type","button","mat-button","","mat-icon-button","",3,"click"],[3,"for"]],template:function(e,t){if(1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Keyword"),Eo(),Oo(6,"input",4,5),Do(8,$4,3,0,"button",6),Eo(),Eo(),Io(9,"div",2),Io(10,"mat-form-field",3),Io(11,"mat-label"),_s(12,"From"),Eo(),Oo(13,"input",7),Io(14,"div",8),Do(15,J4,3,0,"button",9),Io(16,"div"),Do(17,X4,1,1,"mat-datepicker-toggle",10),Oo(18,"mat-datepicker",null,11),Eo(),Eo(),Eo(),Eo(),Io(20,"div",2),Io(21,"mat-form-field",3),Io(22,"mat-label"),_s(23,"To"),Eo(),Oo(24,"input",7),Io(25,"div",8),Do(26,Z4,3,0,"button",9),Io(27,"div"),Do(28,e5,1,1,"mat-datepicker-toggle",10),Oo(29,"mat-datepicker",null,12),Eo(),Eo(),Eo(),Eo(),Io(31,"div",13),Io(32,"button",14),_s(33,"Search"),Eo(),Eo(),Eo(),Io(34,"h5"),_s(35,"Search by Sponsor Name, Sponsor Email, Sponsor NetID and Sponsor Department"),Eo(),Eo()),2&e){var n=So(19),i=So(30);Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value),ma(5),Ao("matDatepicker",n)("formControl",t.form.controls.from)("readonly",!0),ma(2),Ao("ngIf",t.form.get("from").value),ma(2),Ao("ngIf",!t.form.controls.from.value),ma(7),Ao("matDatepicker",i)("formControl",t.form.controls.to)("readonly",!0),ma(2),Ao("ngIf",t.form.get("to").value),ma(2),Ao("ngIf",!t.form.controls.to.value)}},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,YO,kI,EO,bS,pT,qO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),t5),i5=["errorComponent"];function a5(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,17),Eo())}function r5(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function o5(e,t){1&e&&(Io(0,"th",18),_s(1,"Date"),Eo())}function s5(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.date,"dd-MM-yyyy","en-HK")," ")}}function l5(e,t){1&e&&(Io(0,"th",18),_s(1,"NetID"),Eo())}function c5(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.sponsorNetId," ")}}function u5(e,t){1&e&&(Io(0,"th",18),_s(1,"Name"),Eo())}function d5(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.sponsorName," ")}}function h5(e,t){1&e&&(Io(0,"th",18),_s(1," Department "),Eo())}function f5(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.sponsorDepartment," ")}}function p5(e,t){1&e&&(Io(0,"th",18),_s(1," Email "),Eo())}function m5(e,t){if(1&e&&(Io(0,"td",20),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.sponsorEmail)}}function _5(e,t){1&e&&(Io(0,"th",18),_s(1," Visitor Count "),Eo())}var g5=function(e){return{"text-highlighted":e}};function v5(e,t){if(1&e&&(Io(0,"td",20),Io(1,"span",21),_s(2),Eo(),Eo()),2&e){var n=t.$implicit,i=Uo();ma(1),Ao("ngClass",Rl(2,g5,"W"===n.sponsorType&&n.count>=i.indStaffThrehold&&i.indStaffThrehold>0||"S"===n.sponsorType&&n.count>=i.indStudentThrehold&&i.indStudentThrehold>0)),ma(1),gs(n.count)}}function y5(e,t){1&e&&Oo(0,"th",18)}function k5(e,t){if(1&e){var n=Fo();Io(0,"td",22),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onActionBtnClicked(e,i)})),Io(1,"button",23),_s(2,"Details"),Eo(),Eo()}}function b5(e,t){1&e&&Oo(0,"tr",24)}function w5(e,t){if(1&e){var n=Fo();Io(0,"tr",25),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var C5,D5=((C5=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["date","sponsorNetId","sponsorName","sponsorDepartment","sponsorEmail","count","more"],this._query=new aS,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onActionClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1,this.action="Details",this._indStudentThrehold=null,this._indStaffThrehold=null}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setIndividualStudentThreshold",value:function(e){this._indStudentThrehold=e}},{key:"setIndividualStaffThreshold",value:function(e){this._indStaffThrehold=e}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onActionBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onActionClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"dataSource",get:function(){return this._dataSource}},{key:"indStudentThrehold",get:function(){return this._indStudentThrehold}},{key:"indStaffThrehold",get:function(){return this._indStaffThrehold}}]),e}()).\u0275fac=function(e){return new(e||C5)(Mo(jr))},C5.\u0275cmp=gt({type:C5,selectors:[["app-ga-sponsor-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(i5,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},inputs:{action:"action"},outputs:{selected:"selected",onActionClicked:"onActionClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:30,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sponsorNetId"],["matColumnDef","sponsorName"],["matColumnDef","sponsorDepartment"],["matColumnDef","sponsorEmail"],["mat-cell","","class","polyu-multi-lines-text",4,"matCellDef"],["matColumnDef","count"],["matColumnDef","more"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"polyu-multi-lines-text"],[3,"ngClass"],["mat-cell","",3,"click"],["mat-raised-button",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,a5,3,0,"div",0),Io(1,"div"),Do(2,r5,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,o5,2,0,"th",4),Do(8,s5,3,5,"td",5),Po(),Ro(9,6),Do(10,l5,2,0,"th",4),Do(11,c5,2,1,"td",5),Po(),Ro(12,7),Do(13,u5,2,0,"th",4),Do(14,d5,2,1,"td",5),Po(),Ro(15,8),Do(16,h5,2,0,"th",4),Do(17,f5,2,1,"td",5),Po(),Ro(18,9),Do(19,p5,2,0,"th",4),Do(20,m5,2,1,"td",10),Po(),Ro(21,11),Do(22,_5,2,0,"th",4),Do(23,v5,3,4,"td",10),Po(),Ro(24,12),Do(25,y5,1,0,"th",4),Do(26,k5,3,0,"td",13),Po(),Do(27,b5,1,0,"tr",14),Do(28,w5,1,2,"tr",15),Eo(),Io(29,"mat-paginator",16),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(22),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,Td,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}.text-highlighted[_ngcontent-%COMP%]{color:#9b1003}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),C5),S5=["dataFilter"],M5=["modelTable"];function x5(e,t){if(1&e&&(Io(0,"div"),_s(1),Eo()),2&e){var n=Uo();ma(1),vs("Individual Student Threshold: ",n.indStuentConfig.value,"")}}function T5(e,t){if(1&e&&(Io(0,"div"),_s(1),Eo()),2&e){var n=Uo();ma(1),vs("Individual Staff Threshold: ",n.indStaffConfig.value,"")}}var A5,L5,I5,E5=((L5=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this.message=null,this._indStuentConfig=null,this._indStaffConfig=null,this._title=this._route.snapshot.data.title,this._sponsorType=this._route.snapshot.data.sponsorType}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new Q4(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){var e=this;if(null===this._dataService.gaAnalystSearchSponsorsQuery){var t=new Date;this._dataService.gaAnalystSearchSponsorsQuery=new aS,this._dataService.gaAnalystSearchSponsorsQuery.keyword="",this._dataService.gaAnalystSearchSponsorsQuery.from=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this._dataService.gaAnalystSearchSponsorsQuery.to=new Date(t.getFullYear(),t.getMonth(),t.getDate()+7),this._dataService.gaAnalystSearchSponsorsQuery.row=10,this._dataService.gaAnalystSearchSponsorsQuery.offset=0}this._dataService.gaAnalystSearchSponsorsQuery.type=this._sponsorType,this._dataFilterComponent.setValue(this._dataService.gaAnalystSearchSponsorsQuery),this._modelTableComponent.setQueryCriteria(this._dataService.gaAnalystSearchSponsorsQuery);var n=new fX;n.configId="VRS.Job.GA.TrafficAlert.Threshold.IndStudent";var i=new fX;i.configId="VRS.Job.GA.TrafficAlert.Threshold.IndStaff",this.isLoading=!0,m_([this._applicationService.getGuestAccessConfig(n),this._applicationService.getGuestAccessConfig(i)]).subscribe((function(t){e.isLoading=!1,e._indStuentConfig=t[0],e._indStaffConfig=t[1];var n=Number(e._indStaffConfig.value),i=Number(e._indStuentConfig.value);e._modelTableComponent.setIndividualStaffThreshold(n),e._modelTableComponent.setIndividualStudentThreshold(i),e._dataService.gaAnalystSearchSponsorsQuery.minVisitorCount="W"===e._sponsorType?n:"S"===e._sponsorType?i:null,e._modelTableComponent.refresh()}),(function(t){e.isLoading=!1,t&&401===t.status&&e._dialog.open(_T)}))}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessTraffccAnalyst)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.gaAnalystSearchSponsorsQuery.keyword=e.keyword,this._dataService.gaAnalystSearchSponsorsQuery.from=e.from,this._dataService.gaAnalystSearchSponsorsQuery.to=e.to,this._dataService.gaAnalystSearchSponsorsQuery.offset=0,this._modelTableComponent.setQueryCriteria(this._dataService.gaAnalystSearchSponsorsQuery),this._modelTableComponent.refresh()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["ga/sponsor",e.sponsorNetId,"request","search"],{state:{userName:e.sponsorName},queryParams:{at:e.date?dd(e.date,"yyyy-MM-dd","en-HK"):null}})}},{key:"back",value:function(){this._dataService.gaAnalystSearchSponsorsQuery=null,this._location.back()}},{key:"export",value:function(){var e=this._applicationService.exportGuestAccessSponsors(this._dataService.gaAnalystSearchSponsorsQuery);window.open(e,"_blank")}},{key:"title",get:function(){return this._title}},{key:"indStuentConfig",get:function(){return this._indStuentConfig}},{key:"indStaffConfig",get:function(){return this._indStaffConfig}},{key:"sponsorType",get:function(){return this._sponsorType}}]),e}()).\u0275fac=function(e){return new(e||L5)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},L5.\u0275cmp=gt({type:L5,selectors:[["app-analyst-search-sponsors-page"]],viewQuery:function(e,t){var n;1&e&&(rc(S5,!0),rc(M5,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:16,vars:3,consts:[[1,"polyu-page-headline"],[4,"ngIf"],[3,"clicked"],["dataFilter",""],[3,"onActionClicked"],["modelTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Do(4,x5,2,1,"div",1),Do(5,T5,2,1,"div",1),Io(6,"app-ga-sponsor-search-bar",2,3),Ho("clicked",(function(){return t.search()})),Eo(),Io(8,"div"),Io(9,"app-ga-sponsor-table",4,5),Ho("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(11,"div",6),Io(12,"button",7),Ho("click",(function(){return t.back()})),_s(13,"Back"),Eo(),Io(14,"button",7),Ho("click",(function(){return t.export()})),_s(15,"Export"),Eo(),Eo()),2&e&&(ma(1),gs(t.title),ma(3),Ao("ngIf",t.indStuentConfig&&"S"===t.sponsorType),ma(1),Ao("ngIf",t.indStuentConfig&&"W"===t.sponsorType))},directives:[Ed,n5,D5,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),L5),O5=((A5=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({netId:[""],name:[""],at:[""]})}},{key:"setValue",value:function(e,t,n){this._form.setValue({netId:e||null,name:t||null,at:n})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||A5)(Mo(tv))},A5.\u0275cmp=gt({type:A5,selectors:[["app-ga-sponsor-request-search-bar"]],features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:14,vars:6,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3"],["appearance","null"],["matInput","","placeholder","",1,"input-box",3,"formControl","readonly"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","readonly"],["picker1",""]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Sponsor NetID"),Eo(),Oo(6,"input",4),Eo(),Eo(),Io(7,"div",2),Io(8,"mat-form-field",3),Io(9,"mat-label"),_s(10,"At"),Eo(),Oo(11,"input",5),Oo(12,"mat-datepicker",null,6),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(13);Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.netId)("readonly",!0),ma(5),Ao("matDatepicker",n)("formControl",t.form.controls.at)("readonly",!0)}},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,YO,EO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),A5),R5=["dataFilter"],P5=["requestTable"],Y5=((I5=function(){function e(t,n,i,a,r,o,s){var l=this;if(_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this.message=null,this._netId=this._route.snapshot.data.netId,this._route.queryParams.subscribe((function(e){try{l._at=e.at?new Date(e.at):null}catch(t){l._at=null}})),this.routerSubscription=this._route.params.subscribe((function(e){e.netId&&(l._netId=e.netId)})),this._router.getCurrentNavigation()){var c=this._router.getCurrentNavigation().extras.state;c&&(this._userName=c.userName)}}return _createClass(e,[{key:"ngOnInit",value:function(){this._searchBar.setValue(this._netId,this._userName,this._at),this._dataSource=new JZ(this._applicationService,this._cd),this._requestTableComponent.setVisibility(0),this._requestTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}},{key:"loadData",value:function(){null===this._dataService.gaAnalystSearchRequestsQuery&&(this._dataService.gaAnalystSearchRequestsQuery=new ZD,this._dataService.gaAnalystSearchRequestsQuery.createdBy=this._netId,this._dataService.gaAnalystSearchRequestsQuery.from=this._at,this._dataService.gaAnalystSearchRequestsQuery.to=this._at,this._dataService.gaAnalystSearchRequestsQuery.offset=0,this._dataService.gaAnalystSearchRequestsQuery.cs=!1,this._dataService.gaAnalystSearchRequestsQuery.status="A"),this._requestTableComponent.setQueryCriteria(this._dataService.gaAnalystSearchRequestsQuery),this._requestTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.guestAccessTraffccAnalyst)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._requestTableComponent.setQueryCriteria(this._dataService.gaAnalystSearchRequestsQuery),this._requestTableComponent.refresh()}},{key:"onRequestSelected",value:function(e){this._requestTableComponent.clearSelected()}},{key:"onActionBtnClicked",value:function(e){e&&this._router.navigate(["/ga/sponsor/request/",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}})}},{key:"back",value:function(){this._dataService.gaAnalystSearchRequestsQuery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||I5)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},I5.\u0275cmp=gt({type:I5,selectors:[["app-analyst-search-requests-page"]],viewQuery:function(e,t){var n;1&e&&(rc(R5,!0),rc(P5,!0)),2&e&&(ac(n=dc())&&(t._searchBar=n.first),ac(n=dc())&&(t._requestTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],["dataFilter",""],[3,"onActionClicked"],["requestTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"List"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Oo(4,"app-ga-sponsor-request-search-bar",null,1),Io(6,"div"),Io(7,"app-ga-request-table",2,3),Ho("onActionClicked",(function(e){return t.onActionBtnClicked(e)})),Eo(),Eo(),Io(9,"div",4),Io(10,"button",5),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[O5,x1,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),I5),F5=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessQRCode(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),q5=["keywordInput"];function V5(e,t){if(1&e){var n=Fo();Io(0,"button",15),Ho("click",(function(){return en(n),Uo().clear("qrcode")})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function H5(e,t){if(1&e){var n=Fo();Io(0,"button",17),Ho("click",(function(){return en(n),Uo().clearValue("from")})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function N5(e,t){1&e&&Oo(0,"mat-datepicker-toggle",18),2&e&&(Uo(),Ao("for",So(19)))}function B5(e,t){if(1&e){var n=Fo();Io(0,"button",17),Ho("click",(function(){return en(n),Uo().clearValue("to")})),Io(1,"mat-icon",16),_s(2,"clear"),Eo(),Eo()}}function j5(e,t){1&e&&Oo(0,"mat-datepicker-toggle",18),2&e&&(Uo(),Ao("for",So(30)))}var z5,U5=((z5=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){(new Date).setHours(0,0,0,0)}},{key:"_generateDataForm",value:function(e){return e.group({qrcode:[""],from:[""],to:[""]})}},{key:"evalInput",value:function(){return{qrcode:this._form.get("qrcode").value?this._form.get("qrcode").value:"",from:this._form.get("from").value?new Date(this._form.get("from").value):null,to:this._form.get("to").value?new Date(this._form.get("to").value):null}}},{key:"setValue",value:function(e){this._form.setValue(e?{qrcode:e.qrcode?e.qrcode:"",from:e.from?dd(e.from,"yyyy-MM-dd","en-HK"):null,to:e.to?dd(e.to,"yyyy-MM-dd","en-HK"):null}:{qrcode:"",from:null,to:null})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(e){this._form.controls[e].setValue("")}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearValue",value:function(e){event.stopPropagation(),this._form.controls[e].setValue("")}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||z5)(Mo(tv))},z5.\u0275cmp=gt({type:z5,selectors:[["app-ga-qrcode-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(q5,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:34,vars:13,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","readonly"],["matSuffix","",1,"flex-container"],["type","button","mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[3,"for",4,"ngIf"],["picker1",""],["picker2",""],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"],["type","button","mat-button","","mat-icon-button","",3,"click"],[3,"for"]],template:function(e,t){if(1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"QR Code"),Eo(),Oo(6,"input",4,5),Do(8,V5,3,0,"button",6),Eo(),Eo(),Io(9,"div",2),Io(10,"mat-form-field",3),Io(11,"mat-label"),_s(12,"From"),Eo(),Oo(13,"input",7),Io(14,"div",8),Do(15,H5,3,0,"button",9),Io(16,"div"),Do(17,N5,1,1,"mat-datepicker-toggle",10),Oo(18,"mat-datepicker",null,11),Eo(),Eo(),Eo(),Eo(),Io(20,"div",2),Io(21,"mat-form-field",3),Io(22,"mat-label"),_s(23,"To"),Eo(),Oo(24,"input",7),Io(25,"div",8),Do(26,B5,3,0,"button",9),Io(27,"div"),Do(28,j5,1,1,"mat-datepicker-toggle",10),Oo(29,"mat-datepicker",null,12),Eo(),Eo(),Eo(),Eo(),Io(31,"div",13),Io(32,"button",14),_s(33,"Search"),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(19),i=So(30);Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.qrcode),ma(2),Ao("ngIf",t.form.get("qrcode").value),ma(5),Ao("matDatepicker",n)("formControl",t.form.controls.from)("readonly",!0),ma(2),Ao("ngIf",t.form.get("from").value),ma(2),Ao("ngIf",!t.form.controls.from.value),ma(7),Ao("matDatepicker",i)("formControl",t.form.controls.to)("readonly",!0),ma(2),Ao("ngIf",t.form.get("to").value),ma(2),Ao("ngIf",!t.form.controls.to.value)}},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,YO,kI,EO,bS,pT,qO],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),z5),W5=["errorComponent"];function G5(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,16),Eo())}function Q5(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function K5(e,t){1&e&&(Io(0,"th",17),_s(1," Accesscode "),Eo())}function $5(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accesscode," ")}}function J5(e,t){1&e&&(Io(0,"th",17),_s(1," Start "),Eo())}function X5(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessStart,"dd-MM-yyyy","en-HK")," ")}}function Z5(e,t){1&e&&(Io(0,"th",17),_s(1," End "),Eo())}function e6(e,t){if(1&e&&(Io(0,"td",18),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessEnd,"dd-MM-yyyy","en-HK")," ")}}function t6(e,t){1&e&&(Io(0,"th",17),_s(1,"Last Name"),Eo())}function n6(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.lastName," ")}}function i6(e,t){1&e&&(Io(0,"th",17),_s(1,"First Name"),Eo())}function a6(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.firstName," ")}}function r6(e,t){1&e&&Oo(0,"th",17)}function o6(e,t){if(1&e){var n=Fo();Io(0,"td",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onToggleBtnClicked(e,i)})),Io(1,"button",20),_s(2),Eo(),Eo()}if(2&e){var i=t.$implicit;ma(2),gs(i.antiPassback?"Enable":"Disable")}}function s6(e,t){1&e&&Oo(0,"th",17)}function l6(e,t){if(1&e){var n=Fo();Io(0,"td",19),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),Io(1,"button",20),_s(2,"Details"),Eo(),Eo()}}function c6(e,t){1&e&&Oo(0,"tr",21)}function u6(e,t){if(1&e){var n=Fo();Io(0,"tr",22),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var d6,h6,f6=((d6=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["accesscode","accessStart","accessEnd","lastName","firstName","details","toggle"],this._query=new rS,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onToggleClicked=new Gl,this.onDetailsClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onToggleBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onToggleClicked.emit(t)}},{key:"onDetailsBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onDetailsClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||d6)(Mo(jr))},d6.\u0275cmp=gt({type:d6,selectors:[["app-ga-qrcode-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(W5,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{selected:"selected",onToggleClicked:"onToggleClicked",onDetailsClicked:"onDetailsClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:30,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","accesscode"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","lastName"],["matColumnDef","firstName"],["matColumnDef","toggle"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"click"],["mat-raised-button",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,G5,3,0,"div",0),Io(1,"div"),Do(2,Q5,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,K5,2,0,"th",4),Do(8,$5,2,1,"td",5),Po(),Ro(9,6),Do(10,J5,2,0,"th",4),Do(11,X5,3,5,"td",5),Po(),Ro(12,7),Do(13,Z5,2,0,"th",4),Do(14,e6,3,5,"td",5),Po(),Ro(15,8),Do(16,t6,2,0,"th",4),Do(17,n6,2,1,"td",5),Po(),Ro(18,9),Do(19,i6,2,0,"th",4),Do(20,a6,2,1,"td",5),Po(),Ro(21,10),Do(22,r6,1,0,"th",4),Do(23,o6,3,1,"td",11),Po(),Ro(24,12),Do(25,s6,1,0,"th",4),Do(26,l6,3,0,"td",11),Po(),Do(27,c6,1,0,"tr",13),Do(28,u6,1,2,"tr",14),Eo(),Io(29,"mat-paginator",15),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(22),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}.text-highlighted[_ngcontent-%COMP%]{color:#9b1003}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),d6),p6=["dataFilter"],m6=["modelTable"],_6=((h6=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this._snackBar=l}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new F5(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){var e=new Date;null===this._dataService.gaQRCodeQuery&&(this._dataService.gaQRCodeQuery=new rS,this._dataService.gaQRCodeQuery.accessCode="",this._dataService.gaQRCodeQuery.fromDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this._dataService.gaQRCodeQuery.toDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()+7),this._dataService.gaQRCodeQuery.skipEmptyAccessCode=!0,this._dataService.gaQRCodeQuery.row=10,this._dataService.gaQRCodeQuery.offset=0),this._dataFilterComponent.setValue({qrcode:this._dataService.gaQRCodeQuery.accessCode,from:this._dataService.gaQRCodeQuery.fromDate,to:this._dataService.gaQRCodeQuery.toDate}),this._modelTableComponent.setQueryCriteria(this._dataService.gaQRCodeQuery),this._modelTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.qrcode=e.qrcode.trim(),this._dataService.gaQRCodeQuery.accessCode=e.qrcode,this._dataService.gaQRCodeQuery.fromDate=e.from,this._dataService.gaQRCodeQuery.toDate=e.to,this._dataService.gaQRCodeQuery.offset=0,this._modelTableComponent.setQueryCriteria(this._dataService.gaQRCodeQuery),this._modelTableComponent.refresh()}},{key:"onToggleClicked",value:function(e){var t=this;e&&(this.isLoading=!0,e.antiPassback=!e.antiPassback,this._applicationService.updateGuestAccessQRCodeAntipassback(e).subscribe((function(e){t.isLoading=!1,t._modelTableComponent.refresh()}),(function(e){var n;t.isLoading=!1,n=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Unable to update qr code",t._snackBar.open(n,null,{duration:4e3}),e&&401===e.status&&t._dialog.open(_T)})))}},{key:"onDetailsClicked",value:function(e){e&&(console.log(e),this._router.navigate(["/requester/fmo",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}}))}},{key:"back",value:function(){this._dataService.gaQRCodeQuery=null,this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||h6)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ),Mo(EY))},h6.\u0275cmp=gt({type:h6,selectors:[["app-search-qrcode-page"]],viewQuery:function(e,t){var n;1&e&&(rc(p6,!0),rc(m6,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[3,"onToggleClicked","onDetailsClicked"],["modelTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Manage QR codes"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-qrcode-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div"),Io(7,"app-ga-qrcode-table",3,4),Ho("onToggleClicked",(function(e){return t.onToggleClicked(e)}))("onDetailsClicked",(function(e){return t.onDetailsClicked(e)})),Eo(),Eo(),Io(9,"div",5),Io(10,"button",6),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[U5,f6,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),h6),g6=["errorComponent"];function v6(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,17),Eo())}function y6(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function k6(e,t){1&e&&(Io(0,"th",18),_s(1," Accesscode "),Eo())}function b6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accesscode," ")}}function w6(e,t){1&e&&(Io(0,"th",18),_s(1," Start "),Eo())}function C6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessStart,"dd-MM-yyyy","en-HK")," ")}}function D6(e,t){1&e&&(Io(0,"th",18),_s(1," End "),Eo())}function S6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",zl(2,1,n.accessEnd,"dd-MM-yyyy","en-HK")," ")}}function M6(e,t){1&e&&(Io(0,"th",18),_s(1,"Last Name"),Eo())}function x6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.lastName," ")}}function T6(e,t){1&e&&(Io(0,"th",18),_s(1,"First Name"),Eo())}function A6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.firstName," ")}}function L6(e,t){1&e&&(Io(0,"th",18),_s(1,"Enabled"),Eo())}function I6(e,t){if(1&e&&(Io(0,"td",19),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.antiPassback?"False":"True"," ")}}function E6(e,t){1&e&&Oo(0,"th",18)}function O6(e,t){if(1&e){var n=Fo();Io(0,"td",19),Io(1,"mat-checkbox",20),Ho("change",(function(e){en(n);var i=t.$implicit;return Uo().onCheckboxChanged(i,e.checked)})),Eo(),Eo()}if(2&e){var i=t.$implicit,a=Uo();ma(1),Ao("checked",a.selectedItemCodes.indexOf(i.accesscode)>=0)}}function R6(e,t){1&e&&Oo(0,"th",18)}function P6(e,t){if(1&e){var n=Fo();Io(0,"td",21),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDetailsBtnClicked(e,i)})),Io(1,"button",22),_s(2,"Details"),Eo(),Eo()}}function Y6(e,t){1&e&&Oo(0,"tr",23)}function F6(e,t){if(1&e){var n=Fo();Io(0,"tr",24),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var q6,V6,H6=((q6=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["accesscode","accessStart","accessEnd","lastName","firstName","antipassback","details","selected"],this._query=new rS,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onDetailsClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1,this.selectedItemCodes=[],this.selectedItems=[]}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onDetailsBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onDetailsClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedItemCodes=[],this.selectedItems=[],this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"onCheckboxChanged",value:function(e,t){t?(this.selectedItemCodes=this.selectedItemCodes.concat(e.accesscode),this.selectedItems=this.selectedItems.concat(e)):(this.selectedItemCodes=this.selectedItemCodes.filter((function(t){return t!==e.accesscode})),this.selectedItems=this.selectedItems.filter((function(t){return t.accesscode!==e.accesscode})))}},{key:"clearSelectedCodes",value:function(){this.selectedItemCodes=[],this.selectedItems=[]}},{key:"selectCurrentPage",value:function(e){var t=this;if(e){var n=this._dataSource.currentData.filter((function(e){return t.selectedItemCodes.indexOf(e.accesscode)<0}));this.selectedItemCodes=this.selectedItemCodes.concat(n.map((function(e){return e.accesscode}))),this.selectedItems=this.selectedItems.concat(n)}else{var i=this._dataSource.currentData.map((function(e){return e.accesscode}));this.selectedItemCodes=this.selectedItemCodes.filter((function(e){return i.indexOf(e)<0})),this.selectedItems=this.selectedItems.filter((function(e){return i.indexOf(e.accesscode)<0}))}}},{key:"getSelectedCodes",value:function(){return this.selectedItems}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||q6)(Mo(jr))},q6.\u0275cmp=gt({type:q6,selectors:[["app-ga-qrcode-bulk-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(g6,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{selected:"selected",onDetailsClicked:"onDetailsClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:33,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","accesscode"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","lastName"],["matColumnDef","firstName"],["matColumnDef","antipassback"],["matColumnDef","selected"],["matColumnDef","details"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["color","primary",3,"checked","change"],["mat-cell","",3,"click"],["mat-raised-button",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,v6,3,0,"div",0),Io(1,"div"),Do(2,y6,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,k6,2,0,"th",4),Do(8,b6,2,1,"td",5),Po(),Ro(9,6),Do(10,w6,2,0,"th",4),Do(11,C6,3,5,"td",5),Po(),Ro(12,7),Do(13,D6,2,0,"th",4),Do(14,S6,3,5,"td",5),Po(),Ro(15,8),Do(16,M6,2,0,"th",4),Do(17,x6,2,1,"td",5),Po(),Ro(18,9),Do(19,T6,2,0,"th",4),Do(20,A6,2,1,"td",5),Po(),Ro(21,10),Do(22,L6,2,0,"th",4),Do(23,I6,2,1,"td",5),Po(),Ro(24,11),Do(25,E6,1,0,"th",4),Do(26,O6,2,1,"td",5),Po(),Ro(27,12),Do(28,R6,1,0,"th",4),Do(29,P6,3,0,"td",13),Po(),Do(30,Y6,1,0,"tr",14),Do(31,F6,1,2,"tr",15),Eo(),Io(32,"mat-paginator",16),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(25),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,gE,bS,TF,LF],pipes:[ih,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-visitorEmail[_ngcontent-%COMP%], .mat-column-visitorPhone[_ngcontent-%COMP%]{padding-right:10px}.text-highlighted[_ngcontent-%COMP%]{color:#9b1003}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),q6),N6=["dataFilter"],B6=["modelTable"],j6=((V6=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this._snackBar=l}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new F5(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){var e=new Date;null===this._dataService.gaQRCodeQuery&&(this._dataService.gaQRCodeQuery=new rS,this._dataService.gaQRCodeQuery.accessCode="",this._dataService.gaQRCodeQuery.fromDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this._dataService.gaQRCodeQuery.toDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()+7),this._dataService.gaQRCodeQuery.skipEmptyAccessCode=!0,this._dataService.gaQRCodeQuery.row=10,this._dataService.gaQRCodeQuery.offset=0),this._dataFilterComponent.setValue({qrcode:this._dataService.gaQRCodeQuery.accessCode,from:this._dataService.gaQRCodeQuery.fromDate,to:this._dataService.gaQRCodeQuery.toDate}),this._modelTableComponent.setQueryCriteria(this._dataService.gaQRCodeQuery),this._modelTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.qrcode=e.qrcode.trim(),this._dataService.gaQRCodeQuery.accessCode=e.qrcode,this._dataService.gaQRCodeQuery.fromDate=e.from,this._dataService.gaQRCodeQuery.toDate=e.to,this._dataService.gaQRCodeQuery.offset=0,this._modelTableComponent.setQueryCriteria(this._dataService.gaQRCodeQuery),this._modelTableComponent.refresh()}},{key:"onDetailsClicked",value:function(e){e&&(console.log(e),this._router.navigate(["/requester/fmo",e.requestId],{state:{updateEnable:!1,cancelEnable:!1}}))}},{key:"back",value:function(){this._dataService.gaQRCodeQuery=null,this._location.back()}},{key:"selectAll",value:function(){this._modelTableComponent.selectCurrentPage(!0)}},{key:"clearSelection",value:function(){this._modelTableComponent.selectCurrentPage(!1)}},{key:"setEnabled",value:function(){var e=this,t=this._modelTableComponent.getSelectedCodes();if(t&&t.length>0){this.isLoading=!0;var n=new sS;n.data=t.map((function(e){return e.antiPassback=!1,e})),this._applicationService.batchupdateGuestAccessQRCodeAntipassback(n).subscribe((function(t){e.isLoading=!1,e._modelTableComponent.clearSelectedCodes(),e._modelTableComponent.refresh()}),(function(t){var n;e.isLoading=!1,n=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to create update qr codes",e._snackBar.open(n,null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}else this._snackBar.open("No Visitor is selected.",null,{duration:4e3})}},{key:"setDisabled",value:function(){var e=this,t=this._modelTableComponent.getSelectedCodes();if(t&&t.length>0){this.isLoading=!0;var n=new sS;n.data=t.map((function(e){return e.antiPassback=!0,e})),this._applicationService.batchupdateGuestAccessQRCodeAntipassback(n).subscribe((function(t){e.isLoading=!1,e._modelTableComponent.clearSelectedCodes(),e._modelTableComponent.refresh()}),(function(t){var n;e.isLoading=!1,n=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to update qr codes",e._snackBar.open(n,null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}else this._snackBar.open("No Visitor is selected.",null,{duration:4e3})}}]),e}()).\u0275fac=function(e){return new(e||V6)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ),Mo(EY))},V6.\u0275cmp=gt({type:V6,selectors:[["app-search-bulk-qrcode-page"]],viewQuery:function(e,t){var n;1&e&&(rc(N6,!0),rc(B6,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:22,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[3,"onDetailsClicked"],["modelTable",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Manage QR codes"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-qrcode-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div"),Io(7,"app-ga-qrcode-bulk-table",3,4),Ho("onDetailsClicked",(function(e){return t.onDetailsClicked(e)})),Eo(),Io(9,"div",5),Io(10,"button",6),Ho("click",(function(){return t.clearSelection()})),_s(11,"Clear All Selected QR Codes"),Eo(),Io(12,"button",6),Ho("click",(function(){return t.selectAll()})),_s(13,"Select Current Page"),Eo(),Eo(),Eo(),Io(14,"div",7),Io(15,"button",8),Ho("click",(function(){return t.back()})),_s(16,"Back"),Eo(),Io(17,"div"),Io(18,"button",8),Ho("click",(function(){return t.setEnabled()})),_s(19,"Set Enabled"),Eo(),Io(20,"button",8),Ho("click",(function(){return t.setDisabled()})),_s(21,"Set Disabled"),Eo(),Eo(),Eo())},directives:[U5,H6,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),V6),z6=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessHodList(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),U6=["keywordInput"];function W6(e,t){if(1&e){var n=Fo();Io(0,"button",9),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",10),_s(2,"clear"),Eo(),Eo()}}var G6,Q6=((G6=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:""}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:""}:{keyword:""})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearValue",value:function(e){event.stopPropagation(),this._form.controls[e].setValue("")}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||G6)(Mo(tv))},G6.\u0275cmp=gt({type:G6,selectors:[["app-ga-hod-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(U6,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:14,vars:3,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Keyword"),Eo(),Oo(6,"input",4,5),Do(8,W6,3,0,"button",6),Eo(),Eo(),Io(9,"div",7),Io(10,"button",8),_s(11,"Search"),Eo(),Eo(),Eo(),Io(12,"h5"),_s(13,"Search by Hod Name, Hod Email, Hod NetID and Hod Department"),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,bS,kI,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),G6),K6=["errorComponent"];function $6(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,12),Eo())}function J6(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function X6(e,t){1&e&&(Io(0,"th",13),_s(1,"Department"),Eo())}function Z6(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.deptAbbr," ")}}function e8(e,t){1&e&&(Io(0,"th",13),_s(1,"NetID"),Eo())}function t8(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.netId," ")}}function n8(e,t){1&e&&(Io(0,"th",13),_s(1,"Name"),Eo())}function i8(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.displayName," ")}}function a8(e,t){1&e&&(Io(0,"th",13),_s(1,"Email"),Eo())}function r8(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.email," ")}}function o8(e,t){1&e&&Oo(0,"tr",15)}function s8(e,t){if(1&e){var n=Fo();Io(0,"tr",16),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var l8,c8,u8=((l8=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["deptAbbr","netId","displayName","email"],this._query=new oS,this._dataSource=null,this.showError=!1}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||l8)(Mo(jr))},l8.\u0275cmp=gt({type:l8,selectors:[["app-ga-hod-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(K6,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},decls:21,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","deptAbbr"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","netId"],["matColumnDef","displayName"],["matColumnDef","email"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,$6,3,0,"div",0),Io(1,"div"),Do(2,J6,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,X6,2,0,"th",4),Do(8,Z6,2,1,"td",5),Po(),Ro(9,6),Do(10,e8,2,0,"th",4),Do(11,t8,2,1,"td",5),Po(),Ro(12,7),Do(13,n8,2,0,"th",4),Do(14,i8,2,1,"td",5),Po(),Ro(15,8),Do(16,a8,2,0,"th",4),Do(17,r8,2,1,"td",5),Po(),Do(18,o8,1,0,"tr",9),Do(19,s8,1,2,"tr",10),Eo(),Io(20,"mat-paginator",11),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,TF,LF],pipes:[ih],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-deptAbbr[_ngcontent-%COMP%]{width:20%}.mat-column-displayName[_ngcontent-%COMP%], .mat-column-netId[_ngcontent-%COMP%]{width:25%}.mat-column-email[_ngcontent-%COMP%]{width:30%}.text-highlighted[_ngcontent-%COMP%]{color:#9b1003}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),l8),d8=["dataFilter"],h8=["modelTable"],f8=((c8=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this.message=null,this._query=null}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new z6(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){this._query=new oS,this._query.keyword="",this._dataFilterComponent.setValue(this._query),this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._query.keyword=e.keyword,this._query.offset=0,this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"back",value:function(){this._query=null,this._location.back()}},{key:"export",value:function(){var e=this._applicationService.exportGuestAccessHod(this._query);window.open(e,"_blank")}}]),e}()).\u0275fac=function(e){return new(e||c8)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},c8.\u0275cmp=gt({type:c8,selectors:[["app-hod-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(d8,!0),rc(h8,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:14,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],["modelTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Head of Department List"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-hod-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div"),Oo(7,"app-ga-hod-table",null,3),Eo(),Io(9,"div",4),Io(10,"button",5),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Io(12,"button",5),Ho("click",(function(){return t.export()})),_s(13,"Export"),Eo(),Eo())},directives:[Q6,u8,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),c8),p8=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchGuestAccessApprovers(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),m8=["keywordInput"];function _8(e,t){if(1&e){var n=Fo();Io(0,"button",9),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",10),_s(2,"clear"),Eo(),Eo()}}var g8,v8=((g8=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:""}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:""}:{keyword:""})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:""})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearValue",value:function(e){event.stopPropagation(),this._form.controls[e].setValue("")}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||g8)(Mo(tv))},g8.\u0275cmp=gt({type:g8,selectors:[["app-ga-approver-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(m8,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:13,vars:3,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"]],template:function(e,t){1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Keyword"),Eo(),Oo(6,"input",4,5),Do(8,_8,3,0,"button",6),Eo(),Eo(),Io(9,"div",7),Io(10,"button",8),_s(11,"Search"),Eo(),Eo(),Eo(),Oo(12,"h5"),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.keyword),ma(2),Ao("ngIf",t.form.get("keyword").value))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Ed,bS,kI,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),g8),y8=["errorComponent"];function k8(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,13),Eo())}function b8(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function w8(e,t){1&e&&(Io(0,"th",14),_s(1,"Department"),Eo())}function C8(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.deptAbbr," ")}}function D8(e,t){1&e&&(Io(0,"th",14),_s(1,"NetID"),Eo())}function S8(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.netId," ")}}function M8(e,t){1&e&&(Io(0,"th",14),_s(1,"Delegate\u2019s Name"),Eo())}function x8(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.displayName," ")}}function T8(e,t){1&e&&(Io(0,"th",14),_s(1,"Delegate\u2019s Email"),Eo())}function A8(e,t){if(1&e&&(Io(0,"td",15),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.email," ")}}function L8(e,t){if(1&e){var n=Fo();Io(0,"th",14),Io(1,"button",16),Ho("click",(function(){return en(n),Uo().onAddBtnClicked()})),_s(2,"Add"),Eo(),Eo()}}function I8(e,t){if(1&e){var n=Fo();Io(0,"td",15),Io(1,"button",16),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDeleteBtnClicked(e,i)})),_s(2,"Delete"),Eo(),Eo()}}function E8(e,t){1&e&&Oo(0,"tr",17)}function O8(e,t){if(1&e){var n=Fo();Io(0,"tr",18),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var R8,P8=((R8=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["deptAbbr","netId","displayName","email","action"],this._query=new JD,this._dataSource=null,this.showError=!1,this.onDeleted=new Gl,this.onAdded=new Gl}return _createClass(e,[{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this.showError=!1,this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){}},{key:"onDeleteBtnClicked",value:function(e,t){this.onDeleted.emit(t)}},{key:"onAddBtnClicked",value:function(){this.onAdded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||R8)(Mo(jr))},R8.\u0275cmp=gt({type:R8,selectors:[["app-ga-approver-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(y8,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{onDeleted:"onDeleted",onAdded:"onAdded"},decls:24,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","deptAbbr"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","netId"],["matColumnDef","displayName"],["matColumnDef","email"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],["mat-raised-button","","onclick","this.blur()",1,"action-btn",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,k8,3,0,"div",0),Io(1,"div"),Do(2,b8,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,w8,2,0,"th",4),Do(8,C8,2,1,"td",5),Po(),Ro(9,6),Do(10,D8,2,0,"th",4),Do(11,S8,2,1,"td",5),Po(),Ro(12,7),Do(13,M8,2,0,"th",4),Do(14,x8,2,1,"td",5),Po(),Ro(15,8),Do(16,T8,2,0,"th",4),Do(17,A8,2,1,"td",5),Po(),Ro(18,9),Do(19,L8,3,0,"th",4),Do(20,I8,3,0,"td",5),Po(),Do(21,E8,1,0,"tr",10),Do(22,O8,1,2,"tr",11),Eo(),Io(23,"mat-paginator",12),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(16),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-deptAbbr[_ngcontent-%COMP%]{width:20%}.mat-column-displayName[_ngcontent-%COMP%], .mat-column-netId[_ngcontent-%COMP%]{width:25%}.mat-column-email[_ngcontent-%COMP%]{width:30%}.text-highlighted[_ngcontent-%COMP%]{color:#9b1003}@media (max-width:800px){.mat-column-purposeOfVisit[_ngcontent-%COMP%], .polyu-optional[_ngcontent-%COMP%]{display:none}}"]}),R8);function Y8(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function F8(e,t){if(1&e&&(Io(0,"mat-option",12),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}var q8,V8,H8,N8,B8=((q8=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._cd=t,this._snackBar=n,this._applicationService=i,this._formBuilder=a,this._dialog=r,this._dialogRef=o,this._data=s,this._form=this._generateDataForm(this._formBuilder),this._loading=!1,this._user=null,this._departmentList=this._data.departments?this._data.departments:[],this._role=this._data.role?this._data.role:null}return _createClass(e,[{key:"ngOnInit",value:function(){this._departmentList&&this._departmentList.length>0&&this._form.controls.deptAbbr.setValue(this._departmentList[0].deptAbbr)}},{key:"_generateDataForm",value:function(e){return e.group({deptAbbr:["",N_.required],netId:["",N_.required]})}},{key:"onUserPickedUp",value:function(e){e&&(this._user=e)}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){return{approverId:0,netId:this._user.netid,deptAbbr:this._form.get("deptAbbr").value,displayName:this._user.displayName,email:this._user.email,role:this._role,active:!0,createdAt:new Date,createdBy:"",updatedAt:null,updatedBy:null}}},{key:"cancel",value:function(){this._dialogRef.close()}},{key:"confirm",value:function(){var e=this,t=m_({input:this.validateForm()}).pipe(V((function(e){return e.input})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e._loading=!0;var t=e.evalInput();return e._applicationService.addGuestAccessApprovers(t)})))).pipe(Qv((function(){}))).subscribe((function(t){e._dialogRef.close(!0)}),(function(t){e._loading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to create a new request",null,{duration:2e3}),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"form",get:function(){return this._form}},{key:"loading",get:function(){return this._loading}},{key:"departmentList",get:function(){return this._departmentList}}]),e}()).\u0275fac=function(e){return new(e||q8)(Mo(jr),Mo(EY),Mo(_S),Mo(tv),Mo(Bx),Mo(Fx),Mo(qx))},q8.\u0275cmp=gt({type:q8,selectors:[["app-ga-approver-input-dialog"]],decls:25,vars:7,consts:[[4,"ngIf"],[1,"polyu-section-headline"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-4"],["appearance","standard"],["placeholder","NetID",3,"formControl","required","displayField","onDataSelectedEvent"],["ppSponsor",""],["matSuffix",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"],[3,"value"]],template:function(e,t){if(1&e&&(Io(0,"div"),Do(1,Y8,2,0,"app-overlay",0),Io(2,"div"),Io(3,"h3",1),_s(4,"Assign Delegate"),Eo(),Io(5,"div",2),Io(6,"div",3),Io(7,"mat-form-field",4),Io(8,"mat-label"),_s(9,"Approver"),Eo(),Io(10,"app-people-picker2",5,6),Ho("onDataSelectedEvent",(function(e){return t.onUserPickedUp(e)})),Eo(),Io(12,"mat-icon",7),_s(13),Eo(),Eo(),Eo(),Io(14,"div",3),Io(15,"mat-form-field",4),Io(16,"mat-label"),_s(17,"Department"),Eo(),Io(18,"mat-select",8),Do(19,F8,2,2,"mat-option",9),Eo(),Eo(),Eo(),Eo(),Io(20,"div",10),Io(21,"button",11),Ho("click",(function(){return t.cancel()})),_s(22,"No"),Eo(),Io(23,"button",11),Ho("click",(function(){return t.confirm()})),_s(24,"Yes"),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(11);ma(1),Ao("ngIf",t.loading),ma(9),Ao("formControl",t.form.controls.netId)("required",!0)("displayField","displayName"),ma(3),gs(n.value?"clear":"search"),ma(5),Ao("formControl",t.form.controls.deptAbbr),ma(1),Ao("ngForOf",t.departmentList)}},directives:[Ed,SI,gI,xH,P_,Wg,Jg,pT,kI,lP,Ld,bS,tV,nV,CD],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}"]}),q8),j8=["dataFilter"],z8=["modelTable"],U8=((V8=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this._snackBar=l,this.message=null,this._query=null,this._roles=this._route.snapshot.data.roles}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new p8(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){var e=this;if(this._query=new JD,this._query.keyword="",this._query.offset=-1,this._query.row=-1,this._query.role=pu.roles.guestAccessStudentApprover,this._roles.indexOf(pu.roles.hod)>=0){var t=new oS;t.netId=this._applicationService.currentUser.netid,this._applicationService.searchGuestAccessHodList(t).subscribe((function(t){e._hods=t.data;var n,i=[],a=_createForOfIteratorHelper(t.data);try{for(a.s();!(n=a.n()).done;){var r=n.value;i.push(r.deptAbbr)}}catch(o){a.e(o)}finally{a.f()}e._query.deptAbbrs=i.join(", "),e._dataFilterComponent.setValue(e._query),e._modelTableComponent.setQueryCriteria(e._query),e._modelTableComponent.refresh(),e.isLoading=!1}),(function(t){var n;e.isLoading=!1,n=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to create a new request",e._snackBar.open(n,null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}else this._dataFilterComponent.setValue(this._query),this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.hod)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._query.keyword=e.keyword,this._query.offset=0,this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"back",value:function(){this._query=null,this._location.back()}},{key:"onAdded",value:function(){var e=this,t=this,n=new Mx;this._roles.indexOf(pu.roles.fmoAdmin)>=0?n.data={departments:this._applicationService.departments,role:pu.roles.guestAccessStudentApprover}:this._roles.indexOf(pu.roles.hod)>=0&&(n.data={departments:this._applicationService.departments.filter((function(t){return e._hods.find((function(e){return e.deptAbbr.toLowerCase()===t.deptAbbr.toLowerCase()}))})),role:pu.roles.guestAccessStudentApprover}),this._dialog.open(B8,n).afterClosed().subscribe((function(e){e&&t._modelTableComponent.refresh()}))}},{key:"onDeleted",value:function(e){var t=this;e&&this._applicationService.deleteGuestAccessApprovers(e).subscribe((function(e){t.isLoading=!1,t._modelTableComponent.refresh()}),(function(e){var n;t.isLoading=!1,n=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Unable to create a new request",t._snackBar.open(n,null,{duration:4e3}),e&&401===e.status&&t._dialog.open(_T)}))}}]),e}()).\u0275fac=function(e){return new(e||V8)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ),Mo(EY))},V8.\u0275cmp=gt({type:V8,selectors:[["app-student-approver-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(j8,!0),rc(z8,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[3,"onDeleted","onAdded"],["modelTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Set HoD\u2019s Delegate (Student)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-approver-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div"),Io(7,"app-ga-approver-table",3,4),Ho("onDeleted",(function(e){return t.onDeleted(e)}))("onAdded",(function(){return t.onAdded()})),Eo(),Eo(),Io(9,"div",5),Io(10,"button",6),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[v8,P8,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),V8),W8=["dataFilter"],G8=["modelTable"],Q8=((N8=function(){function e(t,n,i,a,r,o,s,l){_classCallCheck(this,e),this._applicationService=t,this._router=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this._snackBar=l,this.message=null,this._query=null,this._roles=this._route.snapshot.data.roles}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new p8(this._applicationService,this._cd),this._modelTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"loadData",value:function(){var e=this;if(this._query=new JD,this._query.keyword="",this._query.offset=-1,this._query.row=-1,this._query.role=pu.roles.guestAccessStaffApprover,this._roles.indexOf(pu.roles.hod)>=0){var t=new oS;t.netId=this._applicationService.currentUser.netid,this._applicationService.searchGuestAccessHodList(t).subscribe((function(t){e._hods=t.data;var n,i=[],a=_createForOfIteratorHelper(t.data);try{for(a.s();!(n=a.n()).done;){var r=n.value;i.push(r.deptAbbr)}}catch(o){a.e(o)}finally{a.f()}e._query.deptAbbrs=i.join(", "),e._dataFilterComponent.setValue(e._query),e._modelTableComponent.setQueryCriteria(e._query),e._modelTableComponent.refresh(),e.isLoading=!1}),(function(t){var n;e.isLoading=!1,n=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to create a new request",e._snackBar.open(n,null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}else this._dataFilterComponent.setValue(this._query),this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles.indexOf(pu.roles.hod)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.fmoAdmin)>=0?this.loadData():e.open(nQ)}},{key:"search",value:function(){this._modelTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._query.keyword=e.keyword,this._query.offset=0,this._modelTableComponent.setQueryCriteria(this._query),this._modelTableComponent.refresh()}},{key:"back",value:function(){this._query=null,this._location.back()}},{key:"onAdded",value:function(){var e=this,t=this,n=new Mx;this._roles.indexOf(pu.roles.fmoAdmin)>=0?n.data={departments:this._applicationService.departments,role:pu.roles.guestAccessStaffApprover}:this._roles.indexOf(pu.roles.hod)>=0&&(n.data={departments:this._applicationService.departments.filter((function(t){return e._hods.find((function(e){return e.deptAbbr.toLowerCase()===t.deptAbbr.toLowerCase()}))})),role:pu.roles.guestAccessStaffApprover}),this._dialog.open(B8,n).afterClosed().subscribe((function(e){e&&t._modelTableComponent.refresh()}))}},{key:"onDeleted",value:function(e){var t=this;e&&this._applicationService.deleteGuestAccessApprovers(e).subscribe((function(e){t.isLoading=!1,t._modelTableComponent.refresh()}),(function(e){var n;t.isLoading=!1,n=e&&e.error&&e.error.errors.length>0?e.error.errors[0]:"Unable to create a new request",t._snackBar.open(n,null,{duration:4e3}),e&&401===e.status&&t._dialog.open(_T)}))}}]),e}()).\u0275fac=function(e){return new(e||N8)(Mo(_S),Mo(mb),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ),Mo(EY))},N8.\u0275cmp=gt({type:N8,selectors:[["app-staff-approver-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(W8,!0),rc(G8,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._modelTableComponent=n.first))},decls:12,vars:0,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[3,"onDeleted","onAdded"],["modelTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"Set HoD\u2019s Delegate (Staff)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-ga-approver-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div"),Io(7,"app-ga-approver-table",3,4),Ho("onDeleted",(function(e){return t.onDeleted(e)}))("onAdded",(function(){return t.onAdded()})),Eo(),Eo(),Io(9,"div",5),Io(10,"button",6),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo())},directives:[v8,P8,bS],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}"]}),N8),K8=((H8=function(){function e(t){_classCallCheck(this,e),this._dialog=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._dialog.open(nQ)}}]),e}()).\u0275fac=function(e){return new(e||H8)(Mo(Bx))},H8.\u0275cmp=gt({type:H8,selectors:[["app-unauthorizated-page"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),H8);function $8(e,t){1&e&&(Io(0,"mat-grid-list",5),Io(1,"mat-grid-tile",6),Io(2,"div",7),Io(3,"div",8),Oo(4,"img",9),Io(5,"div",10),_s(6,"New"),Eo(),Eo(),Eo(),Eo(),Io(7,"mat-grid-tile",11),Io(8,"div",7),Io(9,"div",8),Oo(10,"img",12),Io(11,"div",10),_s(12,"List"),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&Ao("gutterSize","30px")}function J8(e,t){1&e&&(Io(0,"mat-tab",17),Io(1,"mat-grid-list",15),Io(2,"mat-grid-tile",18),Io(3,"div",7),Io(4,"div",8),Oo(5,"img",19),Io(6,"div",10),_s(7,"Search Vehicle Access Request"),Eo(),Eo(),Eo(),Eo(),Io(8,"mat-grid-tile",20),Io(9,"div",7),Io(10,"div",8),Oo(11,"img",12),Io(12,"div",10),_s(13,"Block Vehicle Car Park Access"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("gutterSize","30px"))}function X8(e,t){if(1&e){var n=Fo();Io(0,"mat-tab-group",13),Ho("selectedTabChange",(function(e){return en(n),Uo().tabChanged(e)})),Io(1,"mat-tab",14),Io(2,"mat-grid-list",15),Io(3,"mat-grid-tile",6),Io(4,"div",7),Io(5,"div",8),Oo(6,"img",9),Io(7,"div",10),_s(8,"New"),Eo(),Eo(),Eo(),Eo(),Io(9,"mat-grid-tile",11),Io(10,"div",7),Io(11,"div",8),Oo(12,"img",12),Io(13,"div",10),_s(14,"List"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Do(15,J8,14,1,"ng-template",16),Eo()}if(2&e){var i=Uo();Ao("selectedIndex",i.selectedIndex),ma(2),Ao("gutterSize","30px"),ma(13),Ao("ngIf",i.roles.indexOf("ROLE_VA_ADMIN")>=0)}}var Z8,e7=((Z8=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._dataService=n,this._location=i,this._dialog=a,this.selectedIndex=n.vaMenauTabIdx}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight(),this.roles=this._applicationService.currentUser.roles}},{key:"checkAccessRight",value:function(){var e=this._dialog;this.roles=this._applicationService.currentUser.roles,this.roles&&(this.roles.indexOf("ROLE_VA_USER")>=0||this.roles.indexOf("ROLE_VA_PREMIUM_USER")>=0||this.roles.indexOf("ROLE_VA_ADMIN")>=0)||e.open(nQ)}},{key:"tabChanged",value:function(e){this._dataService.vaMenauTabIdx=e.index}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||Z8)(Mo(_S),Mo(KQ),Mo(ju),Mo(Bx))},Z8.\u0275cmp=gt({type:Z8,selectors:[["app-va-dashboard"]],decls:10,vars:2,consts:[[1,"polyu-page-headline"],[3,"ngIf","ngIfElse"],["advancedDashboard",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],["cols","2","rowHeight","2:1",3,"gutterSize"],["routerLink","./request","routerLinkActive","active",1,"polyu-grid-cell"],[1,"polyu-grid-cell-container","polyu-grid-cell-container"],[1,"polyu-grid-button"],["src","assets/img/oda-new.png","width","80","height","80",1,"polyu-cell-image"],[1,"polyu-cell-text"],["routerLink","./request/search","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/oda-list.png","width","80","height","80",1,"polyu-cell-image"],[1,"ma-tab-group",3,"selectedIndex","selectedTabChange"],["label","User Dashboard"],["cols","2","rowHeight","2:1",1,"polyu-dashboard-grid-list",3,"gutterSize"],[3,"ngIf"],["label","Security Team Dashboard"],["routerLink","./fmo/request/search","routerLinkActive","active",1,"polyu-grid-cell"],["src","assets/img/outline_search_black_48dp.png","width","80","height","80",1,"polyu-cell-image"],["routerLink","./fmo/request/constraint","routerLinkActive","active",1,"polyu-grid-cell"]],template:function(e,t){if(1&e&&(Io(0,"h4",0),_s(1,"VRS - Vehicle Access Dashboard"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Do(4,$8,13,1,"ng-template",1),Do(5,X8,16,3,"ng-template",null,2,mc),Io(7,"div",3),Io(8,"button",4),Ho("click",(function(){return t.back()})),_s(9,"Back"),Eo(),Eo()),2&e){var n=So(6);ma(4),Ao("ngIf",t.roles.indexOf("ROLE_VA_ADMIN")<0)("ngIfElse",n)}},directives:[Ed,bS,YR,bR,_b,Cb,Eq,wq],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-dashboard-grid-list[_ngcontent-%COMP%]{margin-top:15px}.polyu-grid-cell-container[_ngcontent-%COMP%]{width:100%;height:100%;cursor:pointer;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border:0 solid grey;background:#f2f2f2}.polyu-grid-cell-container[_ngcontent-%COMP%]:hover{font-size:105%;background:#ffe6e6}.polyu-grid-cell[_ngcontent-%COMP%]:focus{outline:none;border:0}.polyu-grid-button[_ngcontent-%COMP%]{display:block;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.polyu-cell-text[_ngcontent-%COMP%]{width:100%;font-size:1.3em;line-height:110%;color:#4d4d4d;margin-top:10px}@media only screen and (max-width:800px){.polyu-cell-image[_ngcontent-%COMP%]{display:none}}"]}),Z8),t7={Type:{IN_OUT:0,CAR_PARK:1},PurposeType:[{value:"P",description:"Picking up / dropping off passengers",content:"Picking up / dropping off passengers"},{value:"D",description:"Delivery",content:"Delivery"},{value:"M",description:"Meeting",content:"Meeting"},{value:"L",description:"Lecture",content:"Lecture"},{value:"O",description:"Other",content:null}],BlockType:{IN_OUT:0,CAR_PARK:1,WHOLE_DAY:2},Status:{BLOCKED:0},VehicleType:[{name:"Private Car",value:1,requestTypes:[0,1]},{name:"Light Goods Vehicle",value:2,requestTypes:[0]},{name:"Motor Cycle",value:3,requestTypes:[0,1]},{name:"Private Light Bus",value:4,requestTypes:[0]},{name:"Public Light Bus",value:5,requestTypes:[0]},{name:"Taxi",value:6,requestTypes:[0]},{name:"Private Bus",value:7,requestTypes:[0]},{name:"Public Bus",value:8,requestTypes:[0]},{name:"Medium Goods Vehicle",value:9,requestTypes:[0]},{name:"Heavy Goods Vehicle",value:10,requestTypes:[0]},{name:"Van",value:11,requestTypes:[0]},{name:"Special Purpose Vehicle",value:12,requestTypes:[0]},{name:"Light Goods Vehicle (Height not more than 1.8m)",value:13,requestTypes:[1]},{name:"Other",value:14,requestTypes:[]}]},n7=function e(){_classCallCheck(this,e),this.accessId=0,this.createdAt=null,this.createdBy=null,this.tokens=[]},i7=function e(){_classCallCheck(this,e),this.constraintId=0,this.type=0,this.status=0,this.at=null,this.createdAt=null,this.createdBy=null,this.updatedAt=null,this.updatedBy=null},a7=function e(){_classCallCheck(this,e),this.row=10,this.offset=0,this.vehicleNo=null,this.createdBy=null,this.keyword=null,this.type=null,this.existBetweenStart=null,this.existBetweenEnd=null},r7=function e(){_classCallCheck(this,e),this.status=null,this.type=null,this.from=null,this.to=null},o7=function e(){_classCallCheck(this,e),this.type=null,this.from=null,this.to=null},s7=function e(){_classCallCheck(this,e),this.accessId=null,this.fromPublicMedia=null,this.withMediaActivity=null,this.withApproval=null},l7=["sponsorNetID"];function c7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length."),Eo())}function u7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Required."),Eo())}var d7,h7=((d7=function(){function e(t,n){_classCallCheck(this,e),this._formBuilder=t,this._applicationService=n,this._form=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){this.departmentList=this._applicationService.departments}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"evalInput",value:function(){return{netId:this._form.get("requesterNetID").value?this._form.get("requesterNetID").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,name:this._form.get("requesterName").value?this._form.get("requesterName").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,contact:this._form.get("requesterPhone").value?this._form.get("requesterPhone").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,email:this._form.get("requesterEmail").value?this._form.get("requesterEmail").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,department:this._form.get("requesterDepartment").value?this._form.get("requesterDepartment").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null}}},{key:"setForm",value:function(e){this._form.get("requesterNetID").setValue(e.netId),this._form.get("requesterName").setValue(e.name),this._form.get("requesterPhone").setValue(e.contact),this._form.get("requesterEmail").setValue(e.email),this._form.get("requesterDepartment").setValue(e.department)}},{key:"_generateDataForm",value:function(e){return e.group({requesterNetID:["",N_.required],requesterName:["",N_.required],requesterPhone:["",[N_.required,N_.maxLength(30)]],requesterEmail:["",N_.required],requesterDepartment:["",N_.required]})}},{key:"focus",value:function(){this._inputBox.nativeElement.focus()}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||d7)(Mo(tv),Mo(_S))},d7.\u0275cmp=gt({type:d7,selectors:[["app-va-vehicle-user-input"]],viewQuery:function(e,t){var n;1&e&&rc(l7,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},decls:30,vars:12,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-6","grid-column-start"],["appearance","standard"],["matInput","",3,"formControl","readonly"],["sponsorNetID",""],[1,"polyu-grid-cell-6"],["matInput","","required","",3,"formControl","readonly"],[1,"polyu-grid-cell-4","grid-column-start"],["matInput","","required","",3,"formControl"],[4,"ngIf"],[1,"polyu-grid-cell-4"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Requester NetID"),Eo(),Oo(6,"input",4,5),Eo(),Eo(),Io(8,"div",6),Io(9,"mat-form-field",3),Io(10,"mat-label"),_s(11,"Requester Name"),Eo(),Oo(12,"input",7),Eo(),Eo(),Io(13,"div",8),Io(14,"mat-form-field",3),Io(15,"mat-label"),_s(16,"Requester Contact Number"),Eo(),Oo(17,"input",9),Do(18,c7,2,0,"mat-error",10),Do(19,u7,2,0,"mat-error",10),Eo(),Eo(),Io(20,"div",11),Io(21,"mat-form-field",3),Io(22,"mat-label"),_s(23,"Requester Email"),Eo(),Oo(24,"input",7),Eo(),Eo(),Io(25,"div",11),Io(26,"mat-form-field",3),Io(27,"mat-label"),_s(28,"Requester Department"),Eo(),Oo(29,"input",7),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.requesterNetID)("readonly",!0),ma(6),Ao("formControl",t.form.controls.requesterName)("readonly",!0),ma(5),Ao("formControl",t.form.controls.requesterPhone),ma(1),Ao("ngIf",t.form.controls.requesterPhone.hasError("maxlength")),ma(1),Ao("ngIf",t.form.controls.requesterPhone.hasError("required")),ma(5),Ao("formControl",t.form.controls.requesterEmail)("readonly",!0),ma(5),Ao("formControl",t.form.controls.requesterDepartment)("readonly",!0))},directives:[jg,Y_,Qg,SI,gI,RE,M_,P_,Wg,Jg,Ed,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}"]}),d7),f7=function e(){_classCallCheck(this,e),this.netId=null,this.name=null,this.contact=null,this.email=null,this.department=null},p7=["vehicleNoInput"],m7=["purposeInput"];function _7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Only alphanumeric character is allowed."),Eo())}function g7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Only UPPER CASE is allowed."),Eo())}function v7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Character \u201cO\u201d, \u201cI\u201d, \u201cQ\u201d is NOT allowed."),Eo())}function y7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Space is not allowed."),Eo())}function k7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length."),Eo())}function b7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Digital values only."),Eo())}function w7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Value should greater then or equal to 1."),Eo())}function C7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Value should small than or equal to 500."),Eo())}function D7(e,t){if(1&e&&(Io(0,"mat-option",24),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.value),ma(1),gs(n.name)}}function S7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Required."),Eo())}function M7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Invalid Vehicle Type."),Eo())}function x7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Selected date range contains blocked date(s)."),Eo())}function T7(e,t){if(1&e&&(Io(0,"mat-option",24),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.value),ma(1),gs(n.description)}}function A7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Exceed maximun length (256)."),Eo())}function L7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Smaller than minimum length (1)."),Eo())}function I7(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Required."),Eo())}var E7,O7,R7,P7=((R7=function(){function e(t,n,i){var a=this;_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._cd=i,this.period=4,this.dataFilter=function(e){if(a.constraints){var t,n=a._form.get("type").value,i=_createForOfIteratorHelper(a.constraints);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r.type===t7.BlockType.WHOLE_DAY||r.type===t7.BlockType.CAR_PARK&&n===t7.Type.CAR_PARK||r.type===t7.BlockType.IN_OUT&&n===t7.Type.IN_OUT){var o=e,s=FV(new Date(r.at));if(o.getFullYear()===s.getFullYear()&&o.getMonth()===s.getMonth()&&o.getDate()===s.getDate())return!1}}}catch(l){i.e(l)}finally{i.f()}}return!0},this.dateConstraintsValidator=function(e){if(a._form){var t=a._form.get("accessStart").value?new Date(a._form.get("accessStart").value):null,n=a._form.get("accessEnd").value?new Date(a._form.get("accessEnd").value):null,i=a._form.get("type").value;if(t&&n){if(!a.constraints)return null;var r,o=_createForOfIteratorHelper(a.constraints);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.type===t7.BlockType.WHOLE_DAY||s.type===t7.BlockType.CAR_PARK&&i===t7.Type.CAR_PARK||s.type===t7.BlockType.IN_OUT&&i===t7.Type.IN_OUT){var l=new Date(s.at);if(t.getTime()<=l.getTime()&&l.getTime()<=n.getTime())return{dateConstraints:!0}}}}catch(c){o.e(c)}finally{o.f()}}}return null},this.onVehicleUpdated=new Gl,this.constraints=[],this._form=this._generateDataForm(this._formBuilder),this.isPurposeEditable=!1,this._previousPurposeType=null,this.accessStartDateMin=null,this.accessStartDateMax=null,this.accessEndDateMin=null,this.accessEndDateMax=null,this.purposeList=t7.PurposeType,this.vehicleTypeList=t7.VehicleType}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"setPremiumUser",value:function(e){if(this.isPremiumUser=e,this._form.get("tokenId").setValue(0),e){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1),i=new Date(n);this._form.get("type").setValue(t7.Type.CAR_PARK),this._form.get("accessStart").setValue(n),this._form.get("accessEnd").setValue(i);var a=new Date;a.setFullYear(a.getFullYear()+1),this.accessStartDateMin=new Date(n.getFullYear(),n.getMonth(),n.getDate()),this.accessStartDateMax=a,this.accessEndDateMin=new Date(this.accessStartDateMin),this.accessEndDateMax=new Date(this.accessEndDateMin),this.accessEndDateMax.setDate(this.accessEndDateMax.getDate()+this.period),this.vehicleTypeList=t7.VehicleType.filter((function(e){return e.requestTypes.indexOf(1)>=0}))}else{this._form.get("type").setValue(t7.Type.IN_OUT);var r=new Date;r.setFullYear(r.getFullYear()+1);var o=new Date,s=new Date(o.getFullYear(),o.getMonth(),o.getDate());this.accessStartDateMin=s,this.accessStartDateMax=r,this.accessEndDateMin=new Date(this.accessStartDateMin),this.accessEndDateMax=new Date(this.accessEndDateMin),this.accessEndDateMax.setDate(this.accessEndDateMax.getDate()+this.period),this.vehicleTypeList=t7.VehicleType.filter((function(e){return e.requestTypes.indexOf(0)>=0}))}this._form.get("accessEnd").value&&this._form.get("accessEnd").updateValueAndValidity()}},{key:"setConstraints",value:function(e){this.constraints=e,this._form.get("accessEnd").updateValueAndValidity(),this._form.get("accessEnd").markAsTouched()}},{key:"setRequest",value:function(e){var t=this,n=new Date;n.setHours(0,0,0,0),this._previousPurposeType=e.purposeType,this._form.setValue({tokenId:e.tokenId?e.tokenId:0,accessId:e.accessId?e.accessId:0,name:"",contact:"",email:"",department:"",vehicleNo:e.vehicleNo?e.vehicleNo:"",purpose:e.purpose?e.purpose:"",purposeType:e.purposeType?e.purposeType:"",passengerCount:e.passengerCount?e.passengerCount:"",accessStart:e.accessStart?e.accessStart:n,accessEnd:e.accessEnd?e.accessEnd:n,type:e.type?e.type:t7.Type.IN_OUT,remark1:e.remark1?e.remark1:"",remark2:e.remark2?e.remark2:"",remark3:e.remark3?e.remark3:"",vehicleType:e.vehicleType?e.vehicleType:"",createdAt:e.createdAt?e.createdAt:new Date,createdBy:e.createdBy?e.createdBy:this._applicationService.currentUser.netid}),this.vehicleTypeList=t7.VehicleType.filter((function(e){return e.requestTypes.indexOf(t._form.get("type").value)>=0})),this._oldFormValue=this.evalInput(),this._form.get("accessEnd").value&&this._form.get("accessEnd").updateValueAndValidity()}},{key:"createOrUpdateVisitor",value:function(e){this.onVehicleUpdated.emit(e)}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"touch",value:function(e){this._form.controls[e].markAsTouched()}},{key:"evalInput",value:function(){return{tokenId:this._form.get("tokenId").value?this._form.get("tokenId").value:0,accessId:this._form.get("accessId").value?this._form.get("accessId").value:0,name:null,contact:null,email:null,department:null,vehicleNo:this._form.get("vehicleNo").value?this._form.get("vehicleNo").value:"",purpose:this._form.get("purpose").value?this._form.get("purpose").value.replace(/[\x00-\x1F\x7F-\x9F]/g,""):null,purposeType:this._form.get("purposeType").value?this._form.get("purposeType").value:"",passengerCount:this._form.get("passengerCount").value?this._form.get("passengerCount").value:"",accessStart:this._form.get("accessStart").value?this._form.get("accessStart").value:null,accessEnd:this._form.get("accessEnd").value?this._form.get("accessEnd").value:null,type:this._form.get("type").value?this._form.get("type").value:t7.Type.IN_OUT,remark1:this._form.get("remark1").value?this._form.get("remark1").value:null,remark2:this._form.get("remark2").value?this._form.get("remark2").value:null,remark3:this._form.get("remark3").value?this._form.get("remark3").value:null,vehicleType:this._form.get("vehicleType").value?this._form.get("vehicleType").value:null,createdAt:this._form.get("createdAt").value?this._form.get("createdAt").value:new Date,createdBy:this._form.get("createdBy").value?this._form.get("createdBy").value:this._applicationService.currentUser.netid}}},{key:"_generateDataForm",value:function(e){var t=this,n=new Date,i=this;n.setHours(0,0,0,0);var a=e.group({tokenId:[""],accessId:[""],vehicleNo:["",[N_.required,YV,N_.maxLength(20)]],name:["",N_.maxLength(100)],contact:["",N_.maxLength(20)],email:["",N_.maxLength(100)],department:["",N_.maxLength(100)],purposeType:["",[N_.required]],purpose:["",[N_.required,N_.minLength(1),N_.maxLength(256)]],passengerCount:[1,[N_.required,N_.min(1),N_.max(500),N_.pattern("^(0|[1-9][0-9]*)$")]],accessStart:[n,[N_.required]],accessEnd:[n,[N_.required,i.dateConstraintsValidator.bind(this)]],type:[t7.Type.IN_OUT,[N_.required]],remark1:["",N_.maxLength(50)],remark2:["",N_.maxLength(50)],remark3:["",N_.maxLength(50)],vehicleType:["",[N_.required]],createdAt:[""],createdBy:[""]});return a.get("accessStart").valueChanges.subscribe({next:function(e){t.accessEndDateMin=new Date(a.get("accessStart").value),t.accessEndDateMax=new Date(t.accessEndDateMin),t.accessEndDateMax.setDate(t.accessEndDateMax.getDate()+t.period),a.controls.accessEnd.markAsTouched()}}),a.get("accessEnd").valueChanges.subscribe({next:function(e){a.controls.accessStart.markAsTouched()}}),a.get("type").valueChanges.subscribe({next:function(e){if(a.controls.accessStart.clearValidators(),a.get("type").value===t7.Type.CAR_PARK){a.controls.accessStart.setValidators([N_.required,i.StartDateValidator]);var n=new Date;n.setFullYear(n.getFullYear()+1);var r=new Date,o=new Date(r.getFullYear(),r.getMonth(),r.getDate()+1);i.accessStartDateMin=new Date(o.getFullYear(),o.getMonth(),o.getDate()),i.accessStartDateMax=n,i.accessEndDateMin=new Date(i.accessStartDateMin),i.accessEndDateMax=new Date(i.accessEndDateMin),i.accessEndDateMax.setDate(i.accessEndDateMax.getDate()+i.period)}else if(a.get("type").value===t7.Type.IN_OUT){a.controls.accessStart.setValidators([N_.required]);var s=new Date;s.setFullYear(s.getFullYear()+1);var l=new Date,c=new Date(l.getFullYear(),l.getMonth(),l.getDate());i.accessStartDateMin=c,i.accessStartDateMax=s,i.accessEndDateMin=new Date(i.accessStartDateMin),i.accessEndDateMax=new Date(i.accessEndDateMin),i.accessEndDateMax.setDate(i.accessEndDateMax.getDate()+i.period)}t.vehicleTypeList=t7.VehicleType.filter((function(t){return t.requestTypes.indexOf(e)>=0})),a.controls.vehicleType.value&&a.controls.vehicleType.updateValueAndValidity(),a.controls.accessStart.value&&a.controls.accessStart.updateValueAndValidity(),a.controls.accessEnd.value&&a.controls.accessEnd.updateValueAndValidity()}}),a.get("purposeType").valueChanges.subscribe({next:function(e){if(e===t7.PurposeType[t7.PurposeType.length-1].value)e!==t._previousPurposeType&&t._form.get("purpose").setValue(null),t.isPurposeEditable=!0,t._previousPurposeType=t7.PurposeType[2].value;else{if(Array.isArray(t.purposeList)){var n=t.purposeList.find((function(t){return t.value===e}));n&&(t._form.get("purpose").setValue(n.content),t._previousPurposeType=n.value)}t.isPurposeEditable=!1}}}),a.get("vehicleNo").valueChanges.subscribe({next:function(e){t._form.get("accessEnd").updateValueAndValidity()}}),a}},{key:"isTouched",value:function(){var e=this.evalInput();return this._oldFormValue?this._oldFormValue.purpose!==e.purpose||this._oldFormValue.vehicleType!==e.vehicleType||this._oldFormValue.vehicleNo!==e.vehicleNo:null!==e.vehicleNo||null!==e.purpose||null!==e.vehicleType}},{key:"StartDateValidator",value:function(e){var t=e.value,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i=new Date,a=new Date(i.getFullYear(),i.getMonth(),i.getDate()),r=n.getTime()-a.getTime();return Math.ceil(r/864e5)<1?{atLeastOneDay:!0}:null}},{key:"focus",value:function(){this._inputBox.nativeElement.focus()}},{key:"clear",value:function(){var e=this._form.get("type").value,t=this._form.get("accessStart").value,n=this._form.get("accessEnd").value;this._form=this._generateDataForm(this._formBuilder),this._form.setValue({tokenId:"",accessId:"",name:"",contact:"",email:"",department:"",vehicleNo:"",purposeType:"",purpose:"",passengerCount:1,accessStart:t,accessEnd:n,type:e,remark1:"",remark2:"",remark3:"",vehicleType:"",createdAt:"",createdBy:""}),this._oldFormValue=this.evalInput()}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||R7)(Mo(_S),Mo(tv),Mo(jr))},R7.\u0275cmp=gt({type:R7,selectors:[["app-va-vehicle-input"]],viewQuery:function(e,t){var n;1&e&&(rc(p7,!0),rc(m7,!0)),2&e&&(ac(n=dc())&&(t._inputBox=n.first),ac(n=dc())&&(t._purposeInputBox=n.first))},outputs:{onVehicleUpdated:"onVehicleUpdated"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:74,vars:42,consts:[[3,"formGroup"],[1,"polyu-grid-container","grid-column-start"],[1,"polyu-grid-cell-12"],[3,"label"],["name","tokenType",1,"polyu-radio-group",3,"formControl"],[1,"radio-group-table"],["color","primary","name","tokenType",1,"polyu-radio-button","polyu-ratio-button-line","radio-group-cell",3,"value"],[1,"radio-group-cell","radio-group-text"],["color","primary","name","tokenType",1,"polyu-radio-button","polyu-ratio-button-line","radio-group-cell",3,"value","disabled"],[1,"polyu-grid-cell-3"],["appearance","standard"],["matInput","","required","",3,"formControl"],["vehicleNoInput",""],[4,"ngIf"],[1,"polyu-grid-cell-6"],["required","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["matInput","","required","",3,"matDatepicker","matDatepickerFilter","formControl","min","max","readonly"],["matSuffix","",3,"for"],["picker1",""],["picker2",""],[1,"polyu-grid-cell-6",3,"hidden"],["matInput","",3,"formControl"],["purposeInput",""],[3,"value"]],template:function(e,t){if(1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"app-form-field",3),Io(4,"mat-radio-group",4),Io(5,"div",5),Oo(6,"mat-radio-button",6),Io(7,"span",7),_s(8,"Type 1: The admission of vehicle is only for delivery of materials, picking up/dropping off passengers, etc. and no parking is required/allowed."),Eo(),Eo(),Io(9,"div",5),Oo(10,"mat-radio-button",8),Io(11,"span",7),_s(12,"Type 2: The admission of vehicle needs a parking space at the Car Park (request should be made at least ONE working day in advance by department\u2019s dedicated staff)."),Eo(),Eo(),Eo(),Eo(),Eo(),Io(13,"div",9),Io(14,"mat-form-field",10),Io(15,"mat-label"),_s(16,"Vehicle No."),Eo(),Oo(17,"input",11,12),Do(19,_7,2,0,"mat-error",13),Do(20,g7,2,0,"mat-error",13),Do(21,v7,2,0,"mat-error",13),Do(22,y7,2,0,"mat-error",13),Do(23,k7,2,0,"mat-error",13),Eo(),Eo(),Io(24,"div",9),Io(25,"mat-form-field",10),Io(26,"mat-label"),_s(27,"No. of Passenger"),Eo(),Oo(28,"input",11),Do(29,b7,2,0,"mat-error",13),Do(30,w7,2,0,"mat-error",13),Do(31,C7,2,0,"mat-error",13),Eo(),Eo(),Io(32,"div",14),Io(33,"mat-form-field",10),Io(34,"mat-label"),_s(35,"Vehicle Type"),Eo(),Io(36,"mat-select",15),Do(37,D7,2,2,"mat-option",16),Eo(),Do(38,S7,2,0,"mat-error",13),Do(39,M7,2,0,"mat-error",13),Eo(),Eo(),Io(40,"div",14),Io(41,"div"),Io(42,"mat-form-field",10),Io(43,"mat-label"),_s(44,"Visit Start Date (dd-mm-yyyy)"),Eo(),Oo(45,"input",17),Oo(46,"mat-datepicker-toggle",18),Oo(47,"mat-datepicker",null,19),Eo(),Eo(),Eo(),Io(49,"div",14),Io(50,"div"),Io(51,"mat-form-field",10),Io(52,"mat-label"),_s(53,"Visit End Date (dd-mm-yyyy)"),Eo(),Oo(54,"input",17),Oo(55,"mat-datepicker-toggle",18),Oo(56,"mat-datepicker",null,20),Do(58,x7,2,0,"mat-error",13),Eo(),Eo(),Eo(),Io(59,"div",14),Io(60,"mat-form-field",10),Io(61,"mat-label"),_s(62,"Purpose of Visit"),Eo(),Io(63,"mat-select",15),Do(64,T7,2,2,"mat-option",16),Eo(),Eo(),Eo(),Io(65,"div",21),Io(66,"mat-form-field",10),Io(67,"mat-label"),_s(68,"Please Specific Your Purpose"),Eo(),Oo(69,"input",22,23),Do(71,A7,2,0,"mat-error",13),Do(72,L7,2,0,"mat-error",13),Do(73,I7,2,0,"mat-error",13),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(48),i=So(57);Ao("formGroup",t.form),ma(3),Ao("label","Access Type"),ma(1),Ao("formControl",t.form.controls.type),ma(2),Ao("value",0),ma(4),Ao("value",1)("disabled",!t.isPremiumUser),ma(7),Ao("formControl",t.form.controls.vehicleNo),ma(2),Ao("ngIf",t.form.controls.vehicleNo.hasError("alphanumeric")),ma(1),Ao("ngIf",t.form.controls.vehicleNo.hasError("lowerCase")),ma(1),Ao("ngIf",t.form.controls.vehicleNo.hasError("excludedCharacters")),ma(1),Ao("ngIf",t.form.controls.vehicleNo.hasError("hasSpace")),ma(1),Ao("ngIf",t.form.controls.vehicleNo.hasError("maxlength")),ma(5),Ao("formControl",t.form.controls.passengerCount),ma(1),Ao("ngIf",t.form.controls.passengerCount.hasError("pattern")),ma(1),Ao("ngIf",t.form.controls.passengerCount.hasError("min")),ma(1),Ao("ngIf",t.form.controls.passengerCount.hasError("max")),ma(5),Ao("formControl",t.form.controls.vehicleType),ma(1),Ao("ngForOf",t.vehicleTypeList),ma(1),Ao("ngIf",t.form.controls.vehicleType.hasError("required")),ma(1),Ao("ngIf",t.form.controls.vehicleType.hasError("invalidVehicleType")),ma(6),Ao("matDatepicker",n)("matDatepickerFilter",t.dataFilter)("formControl",t.form.controls.accessStart)("min",t.accessStartDateMin)("max",t.accessStartDateMax)("readonly",!0),ma(1),Ao("for",n),ma(8),Ao("matDatepicker",i)("matDatepickerFilter",t.dataFilter)("formControl",t.form.controls.accessEnd)("min",t.accessEndDateMin)("max",t.accessEndDateMax)("readonly",!0),ma(1),Ao("for",i),ma(3),Ao("ngIf",t.form.controls.accessEnd.hasError("dateConstraints")),ma(5),Ao("formControl",t.form.controls.purposeType),ma(1),Ao("ngForOf",t.purposeList),ma(1),Ao("hidden",!t.isPurposeEditable),ma(4),Ao("formControl",t.form.controls.purpose),ma(2),Ao("ngIf",t.form.controls.purpose.hasError("maxlength")),ma(1),Ao("ngIf",t.form.controls.purpose.hasError("minlength")),ma(1),Ao("ngIf",t.form.controls.purpose.hasError("required"))}},directives:[jg,Y_,Qg,gH,uY,P_,Wg,hY,SI,gI,RE,M_,Jg,Ed,lP,Ld,YO,qO,kI,EO,aI,CD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}.polyu-ratio-button-line[_ngcontent-%COMP%]{padding:3px 0;font-size:13pt}.radio-group-table[_ngcontent-%COMP%]{display:table;padding-top:10px}.radio-group-cell[_ngcontent-%COMP%]{display:table-cell}.radio-group-text[_ngcontent-%COMP%]{font-size:13pt}"]}),R7),Y7=((O7=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case 0:return"Type 1 (In/Out)";case 1:return"Type 2 (Car Park)"}return e.toString()}}]),e}()).\u0275fac=function(e){return new(e||O7)},O7.\u0275pipe=Dt({name:"vehicleTokenTypePipe",type:O7,pure:!0}),O7),F7=((E7=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var n=t7.VehicleType.find((function(t){return t.value===e}));return n?n.name:"Other"}}]),e}()).\u0275fac=function(e){return new(e||E7)},E7.\u0275pipe=Dt({name:"vehicleTypePipe",type:E7,pure:!0}),E7);function q7(e,t){1&e&&(Io(0,"th",15),_s(1," Access Type "),Eo())}function V7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Nl(2,"vehicleTokenTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),gs(Bl(2,1,n.type))}}function H7(e,t){1&e&&(Io(0,"th",15),_s(1," Vehicle Type "),Eo())}function N7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Nl(2,"vehicleTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),gs(Bl(2,1,n.vehicleType))}}function B7(e,t){1&e&&(Io(0,"th",15),_s(1," Passengers "),Eo())}function j7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.passengerCount," ")}}function z7(e,t){1&e&&(Io(0,"th",15),_s(1," Vehicle No. "),Eo())}function U7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.vehicleNo," ")}}function W7(e,t){1&e&&(Io(0,"th",15),_s(1," Visit Start Date "),Oo(2,"br"),Io(3,"small",17),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function G7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStart?zl(2,1,n.accessStart,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function Q7(e,t){1&e&&(Io(0,"th",15),_s(1," Visit End Date "),Oo(2,"br"),Io(3,"small",17),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function K7(e,t){if(1&e&&(Io(0,"td",16),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEnd?zl(2,1,n.accessEnd,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function $7(e,t){1&e&&(Io(0,"th",15),_s(1," Purpose of Visit "),Eo())}function J7(e,t){if(1&e&&(Io(0,"td",18),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.purpose)}}function X7(e,t){1&e&&Oo(0,"tr",19)}function Z7(e,t){if(1&e){var n=Fo();Io(0,"tr",20),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var e9,t9=((e9=function(){function e(){_classCallCheck(this,e),this._data=[],this.displayedColumns=["type","vehicleType","passengerCount","vehicleNo","accessStart","accessEnd","purpose"],this.selectedRow=null,this._dataSource=new OF([]),this.selected=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource.paginator=this.paginator}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e)}},{key:"addVehicle",value:function(e){this._data.push(e),this.dataSource.data=this._data}},{key:"addVehicles",value:function(e){if(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._data.push(i)}}catch(a){n.e(a)}finally{n.f()}this.dataSource.data=this._data}}},{key:"clear",value:function(){this._data=[],this.dataSource.data=this._data,this.selectedRow=null}},{key:"removeVehicle",value:function(){var e=this;this.selectedRow&&(this._data=this._data.filter((function(t,n,i){return e.selectedRow!==t})),this._dataSource.data=this._data)}},{key:"updateVehicle",value:function(e){if(this.selectedRow){var t=this._data.indexOf(this.selectedRow);t>=0&&(this._data[t]=e,this._dataSource.data=this._data)}}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"evalInput",value:function(){return this._data}},{key:"setSelectedVehicle",value:function(e){this.selectedRow=e}},{key:"getSelectedVehicle",value:function(){return this.selectedRow}},{key:"getCount",value:function(){return this._dataSource.data?this._dataSource.data.length:0}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||e9)},e9.\u0275cmp=gt({type:e9,selectors:[["app-va-vehicle-store"]],viewQuery:function(e,t){var n;1&e&&rc(YP,!0),2&e&&ac(n=dc())&&(t.paginator=n.first)},outputs:{selected:"selected"},decls:26,vars:3,consts:[[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vehicleType"],["matColumnDef","passengerCount"],["matColumnDef","vehicleNo"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","purpose"],["mat-cell","","class","polyu-multi-lines-text",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["pageSize","10","hidePageSize","true"],["mat-header-cell",""],["mat-cell",""],[1,"polyu-optional"],["mat-cell","",1,"polyu-multi-lines-text"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"table",1),Ro(2,2),Do(3,q7,2,0,"th",3),Do(4,V7,3,3,"td",4),Po(),Ro(5,5),Do(6,H7,2,0,"th",3),Do(7,N7,3,3,"td",4),Po(),Ro(8,6),Do(9,B7,2,0,"th",3),Do(10,j7,2,1,"td",4),Po(),Ro(11,7),Do(12,z7,2,0,"th",3),Do(13,U7,2,1,"td",4),Po(),Ro(14,8),Do(15,W7,5,0,"th",3),Do(16,G7,3,5,"td",4),Po(),Ro(17,9),Do(18,Q7,5,0,"th",3),Do(19,K7,3,5,"td",4),Po(),Ro(20,10),Do(21,$7,2,0,"th",3),Do(22,J7,2,1,"td",11),Po(),Do(23,X7,1,0,"tr",12),Do(24,Z7,1,2,"tr",13),Eo(),Oo(25,"mat-paginator",14),Eo()),2&e&&(ma(1),Ao("dataSource",t.dataSource),ma(22),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns))},directives:[pF,kF,vF,_F,DF,MF,YP,wF,CF,TF,LF],pipes:[Y7,F7,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]{min-width:rem}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEnd[_ngcontent-%COMP%], .mat-column-accessStart[_ngcontent-%COMP%], .mat-column-purpose[_ngcontent-%COMP%], .mat-column-vehicleNo[_ngcontent-%COMP%]{padding-right:10px}"]}),e9),n9=["userInput"],i9=["requestInput"],a9=["vehicleStore"],r9=["healthConditionsCheckbox"],o9=["publicMediaCheckbox"];function s9(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function l9(e,t){if(1&e){var n=Fo();Io(0,"button",8),Ho("click",(function(){return en(n),Uo().addVehicle()})),_s(1,"Add"),Eo()}}function c9(e,t){if(1&e){var n=Fo();Io(0,"button",8),Ho("click",(function(){en(n);var e=Uo();return e.updateVehicle(e.selectedVehicle)})),_s(1,"Update"),Eo()}}function u9(e,t){if(1&e){var n=Fo();Io(0,"button",8),Ho("click",(function(){en(n);var e=Uo();return e.removeVehicle(e.selectedVehicle)})),_s(1,"Remove"),Eo()}}var d9,h9=((d9=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._cd=i,this._dialog=a,this._location=r,this.isInAction=!0,this.isLoading=!1,this.constraints=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this.checkAccessRight(),this.initUserInput(),this._inputComponent.focus()}},{key:"ngAfterViewInit",value:function(){}},{key:"initUserInput",value:function(){var e=new f7;e.contact=this._applicationService.currentUser.officePhone,e.department=this._applicationService.currentUser.department,e.email=this._applicationService.currentUser.email,e.name=this._applicationService.currentUser.displayName,e.netId=this._applicationService.currentUser.netid,this._userComponent.setForm(e)}},{key:"loadVehicleConstraints",value:function(){var e=this,t=(new Date,new r7);t.from=new Date,t.from.setMonth(t.from.getMonth()-6),t.to=new Date,t.to.setMonth(t.to.getMonth()+18),this.isLoading=!0,m_([this._applicationService.listVehicleAccessConstraints(t)]).subscribe({next:function(t){t?(e._inputComponent.setConstraints(t[0]),e.constraints=t[0],e.isLoading=!1):(e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage="Unable to load vehicle access schedule",e._cd.detectChanges())},error:function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to load vehicle access schedule",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}})}},{key:"checkAccessRight",value:function(){var e=this._dialog,t=this._applicationService.currentUser.roles;t&&(t.indexOf("ROLE_VA_USER")>=0||t.indexOf("ROLE_VA_ADMIN")>=0||t.indexOf("ROLE_VA_PREMIUM_USER")>=0)?(this._inputComponent.setPremiumUser(t.indexOf("ROLE_VA_PREMIUM_USER")>=0),this.loadVehicleConstraints()):e.open(nQ)}},{key:"submitRequest",value:function(){var e=this;if(this._publicMediaCheckbox.fromPublicMedia()&&this._publicMediaCheckbox.withMediaActivity()&&!this._publicMediaCheckbox.approved())this._dialog.open(gZ);else if(this._inputComponent.isTouched())this._snackBar.open("Vehicle is not added/updated into vehicle list.",null,{duration:2e3});else if(this._vehicleStoreComponent.getCount()<=0)this._snackBar.open("Number of vehicle should be greater than 1.",null,{duration:2e3});else{var t=m_({input:mu(!0),checkbox:this._healthConditionsCheckbox.validateForm(),userInput:this._userComponent.validateForm()}).pipe(V((function(e){var t=e.input,n=e.checkbox,i=e.userInput;return t&&n&&i})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isLoading=!0;var t=e._userComponent.evalInput(),n=new n7;return n.createdAt=new Date,n.createdBy=e._applicationService.currentUser.netid,n.tokens=e._vehicleStoreComponent.evalInput(),n.tokens&&n.tokens.forEach((function(e){return e.accessStart=mS.ToUTCDate(e.accessStart),e.accessEnd=mS.ToUTCDate(e.accessEnd),e.department=t.department,e.name=t.name,e.contact=t.contact,e.email=t.email,e})),e._applicationService.addVehicleAccessRequests(n)})),Pv((function(t){var n=new s7;return n.accessId=t.accessId,n.fromPublicMedia=e._publicMediaCheckbox.fromPublicMedia(),n.withMediaActivity=e._publicMediaCheckbox.withMediaActivity(),n.withApproval=e._publicMediaCheckbox.approved(),m_(mu(t),e._applicationService.setVehicleAccessRequestsDisclaimer(n))})),Uv((function(t){e.isInAction=!1,e.isLoading=!1,e.icon="done",e.resultMessage="Success",e._cd.detectChanges()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e.isInAction=!1,e.isLoading=!1,e.icon="error",e.resultMessage=t&&t.error&&t.error.errors&&t.error.errors.length>0?t.error.errors[0]:"Unable to create a new request. Please try again later.",e._cd.detectChanges(),t&&401===t.status&&e._dialog.open(_T)}))}}},{key:"addVehicle",value:function(){var e=this,t=this._inputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){var n=e._inputComponent.evalInput();e._vehicleStoreComponent.addVehicle(n),e._inputComponent.clear(),e._vehicleStoreComponent.clearSelected(),e.selectedVehicle=null})))).pipe(Qv((function(){}))).subscribe()}},{key:"updateVehicle",value:function(){var e=this;if(this.selectedVehicle){var t=this._inputComponent.validateForm();K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Uv((function(t){e._vehicleStoreComponent.getSelectedVehicle();var n=e._inputComponent.evalInput();e._vehicleStoreComponent.updateVehicle(n),e._vehicleStoreComponent.clearSelected(),e._inputComponent.clear(),e.selectedVehicle=null})))).pipe(Qv((function(){}))).subscribe()}}},{key:"removeVehicle",value:function(){this._vehicleStoreComponent.getSelectedVehicle(),this._vehicleStoreComponent.removeVehicle(),this._vehicleStoreComponent.clearSelected(),this._inputComponent.clear(),this.selectedVehicle=null}},{key:"selectRow",value:function(e){var t=this;this._inputComponent.isTouched()?this._dialog.open(mZ).afterClosed().subscribe((function(n){n?(t.selectedVehicle=e,t.selectedVehicle&&t._inputComponent.setRequest(t.selectedVehicle)):t.selectedVehicle&&t._vehicleStoreComponent.setSelectedVehicle(t.selectedVehicle)})):(this.selectedVehicle=e,this.selectedVehicle&&this._inputComponent.setRequest(this.selectedVehicle))}},{key:"clearSelection",value:function(){this._vehicleStoreComponent.clearSelected(),this._inputComponent.clear(),this.selectedVehicle=null}},{key:"getVehicleCount",value:function(){return this._vehicleStoreComponent.getCount()}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||d9)(Mo(_S),Mo(EY),Mo(jr),Mo(Bx),Mo(ju))},d9.\u0275cmp=gt({type:d9,selectors:[["app-va-vehicle-create-page"]],viewQuery:function(e,t){var n;1&e&&(rc(n9,!0),rc(i9,!0),rc(a9,!0),rc(r9,!0),rc(o9,!0)),2&e&&(ac(n=dc())&&(t._userComponent=n.first),ac(n=dc())&&(t._inputComponent=n.first),ac(n=dc())&&(t._vehicleStoreComponent=n.first),ac(n=dc())&&(t._healthConditionsCheckbox=n.first),ac(n=dc())&&(t._publicMediaCheckbox=n.first))},decls:42,vars:8,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[1,"page-container",3,"hidden"],["userInput",""],["requestInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","white",3,"click",4,"ngIf"],["mat-raised-button","","color","white",3,"click"],[3,"selected"],["vehicleStore",""],["healthConditionsCheckbox",""],["publicMediaCheckbox",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"hidden"],[1,"polyu-alert-box-icon-container"],["aria-hidden","false","aria-label","Result Status"],[1,"polyu-section-headline"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,s9,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"VRS - Create Vehicle Access Request"),Eo(),Io(4,"h5"),_s(5,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(6,"div",3),Oo(7,"app-va-vehicle-user-input",null,4),Oo(9,"app-divider"),Io(10,"h4"),Io(11,"b"),_s(12,"Vehicle Access Information"),Eo(),Eo(),Oo(13,"app-va-vehicle-input",null,5),Oo(15,"app-divider"),Io(16,"div",6),Do(17,l9,2,0,"button",7),Do(18,c9,2,0,"button",7),Do(19,u9,2,0,"button",7),Io(20,"button",8),Ho("click",(function(){return t.clearSelection()})),_s(21,"Reset"),Eo(),Eo(),Io(22,"app-va-vehicle-store",9,10),Ho("selected",(function(e){return t.selectRow(e)})),Eo(),Oo(24,"app-ga-health-conditions-checkbox",null,11),Oo(26,"app-ga-pubic-media-checkbox",null,12),Io(28,"div",13),Io(29,"button",14),Ho("click",(function(){return t.back()})),_s(30,"Back"),Eo(),Io(31,"button",14),Ho("click",(function(){return t.submitRequest()})),_s(32,"Submit"),Eo(),Eo(),Eo(),Io(33,"div",15),Io(34,"div",16),Io(35,"mat-icon",17),_s(36),Eo(),Eo(),Io(37,"h3",18),_s(38),Eo(),Io(39,"div",6),Io(40,"button",14),Ho("click",(function(){return t.back()})),_s(41,"Back"),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(5),Ao("hidden",!t.isInAction),ma(11),Ao("ngIf",t.getVehicleCount()<5),ma(1),Ao("ngIf",null!=t.selectedVehicle),ma(1),Ao("ngIf",null!=t.selectedVehicle),ma(14),Ao("hidden",t.isInAction),ma(3),gs(t.icon),ma(2),gs(t.resultMessage))},directives:[Ed,h7,TH,P7,bS,t9,pZ,_Z,pT,tV,nV],styles:["h3.polyu-section-headline[_ngcontent-%COMP%]{margin-top:.5em;text-align:center}.polyu-alert-box-icon-container[_ngcontent-%COMP%]{text-align:center}.mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin-top:50px}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.page-container[_ngcontent-%COMP%]{margin-top:30px}"]}),d9),f9=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchVehicleAccessRequests(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj),p9=["keywordInput"];function m9(e,t){if(1&e){var n=Fo();Io(0,"button",18),Ho("click",(function(){return en(n),Uo().clear()})),Io(1,"mat-icon",19),_s(2,"clear"),Eo(),Eo()}}function _9(e,t){if(1&e){var n=Fo();Io(0,"button",20),Ho("click",(function(e){return en(n),Uo().clearStartDate(e)})),Io(1,"mat-icon",19),_s(2,"clear"),Eo(),Eo()}}function g9(e,t){if(1&e){var n=Fo();Io(0,"button",20),Ho("click",(function(e){return en(n),Uo().clearEndDate(e)})),Io(1,"mat-icon",19),_s(2,"clear"),Eo(),Eo()}}var v9,y9=((v9=function(){function e(t){_classCallCheck(this,e),this._formBuilder=t,this._form=this._generateDataForm(this._formBuilder),this.clicked=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({keyword:[""],startDate:[""],endDate:[""]})}},{key:"evalInput",value:function(){return{keyword:this._form.get("keyword").value?this._form.get("keyword").value:"",startDate:this._form.get("startDate").value?new Date(dd(this._form.get("startDate").value,"yyyy-MM-dd","en-HK")):null,endDate:this._form.get("endDate").value?new Date(dd(this._form.get("endDate").value,"yyyy-MM-dd","en-HK")):null}}},{key:"setValue",value:function(e){this._form.setValue(e?{keyword:e.keyword?e.keyword:"",startDate:e.startDate?new Date(dd(e.startDate,"yyyy-MM-dd","en-HK")):null,endDate:e.endDate?new Date(dd(e.endDate,"yyyy-MM-dd","en-HK")):null}:{keyword:"",startDate:null,endDate:null})}},{key:"search",value:function(){this.clicked.emit(!0)}},{key:"clear",value:function(){this._form.setValue({keyword:"",startDate:this._form.get("startDate").value?this._form.get("startDate").value:null,endDate:this._form.get("endDate").value?this._form.get("endDate").value:null})}},{key:"focus",value:function(){this._inputBox&&this._inputBox.nativeElement.focus()}},{key:"clearStartDate",value:function(e){e.stopPropagation(),this._form.get("startDate").setValue(null)}},{key:"clearEndDate",value:function(e){e.stopPropagation(),this._form.get("endDate").setValue(null)}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||v9)(Mo(tv))},v9.\u0275cmp=gt({type:v9,selectors:[["app-va-vehicle-search-bar"]],viewQuery:function(e,t){var n;1&e&&rc(p9,!0),2&e&&ac(n=dc())&&(t._inputBox=n.first)},outputs:{clicked:"clicked"},features:[Vs([{provide:PC,useClass:fH},{provide:YC,useValue:mH}])],decls:36,vars:13,consts:[[3,"formGroup","ngSubmit"],[1,"polyu-search-bar-container"],[1,"polyu-search-bar-input"],["appearance","standard"],["matInput","","placeholder","",1,"input-box",3,"formControl"],["keywordInput",""],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click",4,"ngIf"],[1,"polyu-search-item"],[1,"flex-container"],[1,"serach-item"],["matInput","",1,"mat-datepicker-input",3,"matDatepicker","formControl","readonly"],["matSuffix","",1,"flex-container"],["type","button","mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[3,"for"],["picker1",""],[1,"serach-date"],["picker2",""],["type","submit","mat-raised-button","","color","primary",1,"polyu-center-vertical"],["type","button","mat-button","","mat-icon-button","","matSuffix","",3,"click"],[1,"clear-icon"],["type","button","mat-button","","mat-icon-button","",3,"click"]],template:function(e,t){if(1&e&&(Io(0,"form",0),Ho("ngSubmit",(function(){return t.search()})),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Oo(4,"input",4,5),Io(6,"mat-hint"),_s(7,"Search by Vehicle No., Purpose of Visit or Visiting Date"),Eo(),Do(8,m9,3,0,"button",6),Eo(),Eo(),Io(9,"div",7),Io(10,"div",8),Io(11,"div",9),Io(12,"mat-form-field",3),Oo(13,"input",10),Io(14,"mat-hint"),_s(15,"Start Date"),Eo(),Io(16,"div",11),Do(17,_9,3,0,"button",12),Io(18,"div"),Oo(19,"mat-datepicker-toggle",13),Oo(20,"mat-datepicker",null,14),Eo(),Eo(),Eo(),Eo(),Io(22,"div",15),Io(23,"mat-form-field",3),Oo(24,"input",10),Io(25,"mat-hint"),_s(26,"End Date"),Eo(),Io(27,"div",11),Do(28,g9,3,0,"button",12),Io(29,"div"),Oo(30,"mat-datepicker-toggle",13),Oo(31,"mat-datepicker",null,16),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Io(33,"div",7),Io(34,"button",17),_s(35,"Search"),Eo(),Eo(),Eo(),Eo()),2&e){var n=So(21),i=So(32);Ao("formGroup",t.form),ma(4),Ao("formControl",t.form.controls.keyword),ma(4),Ao("ngIf",t.form.get("keyword").value),ma(5),Ao("matDatepicker",n)("formControl",t.form.controls.startDate)("readonly",!0),ma(4),Ao("ngIf",t.form.get("startDate").value),ma(2),Ao("for",n),ma(5),Ao("matDatepicker",i)("formControl",t.form.controls.endDate)("readonly",!0),ma(4),Ao("ngIf",t.form.get("endDate").value),ma(2),Ao("for",i)}},directives:[jg,Y_,Qg,SI,RE,M_,P_,Wg,_I,Ed,YO,kI,qO,EO,bS,pT],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-icon[_ngcontent-%COMP%]{width:24px;height:24px}.input-box[_ngcontent-%COMP%], .mat-datepicker-input[_ngcontent-%COMP%]{width:85%}.date-clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em}.polyu-search-item[_ngcontent-%COMP%]{margin-left:10px}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.flex-container[_ngcontent-%COMP%]{display:flex}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#d3d3d3}.clear-icon[_ngcontent-%COMP%]{position:relative;float:right;cursor:pointer;color:rgba(0,0,0,.54);font-size:1.25em;left:-20%;transform:translateX(-20%)}.polyu-search-bar-container[_ngcontent-%COMP%]{display:flex}.polyu-search-bar-input[_ngcontent-%COMP%]{width:40%}.serach-item[_ngcontent-%COMP%]{margin-right:10px}[placeholder][_ngcontent-%COMP%], input[placeholder][_ngcontent-%COMP%]{text-overflow:ellipsis}[_ngcontent-%COMP%]::-webkit-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]::-moz-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-ms-input-placeholder{text-overflow:ellipsis}[_ngcontent-%COMP%]:-moz-placeholder{text-overflow:ellipsis}"]}),v9),k9=function e(){_classCallCheck(this,e)},b9=["errorComponent"];function w9(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,19),Eo())}function C9(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function D9(e,t){1&e&&(Io(0,"th",20),_s(1,"ID"),Eo())}function S9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.tokenId," ")}}function M9(e,t){1&e&&(Io(0,"th",20),_s(1," Access Type "),Eo())}function x9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"vehicleTokenTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.type)," ")}}function T9(e,t){1&e&&(Io(0,"th",20),_s(1," Vehicle Type "),Eo())}function A9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"vehicleTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),gs(Bl(2,1,n.vehicleType))}}function L9(e,t){1&e&&(Io(0,"th",20),_s(1," Passengers "),Eo())}function I9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.passengerCount," ")}}function E9(e,t){1&e&&(Io(0,"th",20),_s(1," Vehicle No. "),Eo())}function O9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.vehicleNo," ")}}function R9(e,t){1&e&&(Io(0,"th",20),_s(1," Requester "),Eo())}function P9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function Y9(e,t){1&e&&(Io(0,"th",20),_s(1," Dept "),Eo())}function F9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.department," ")}}function q9(e,t){1&e&&(Io(0,"th",20),_s(1," Visit Start Date "),Oo(2,"br"),Io(3,"small",22),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function V9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStart?zl(2,1,n.accessStart,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function H9(e,t){1&e&&(Io(0,"th",20),_s(1," Visit End Date "),Oo(2,"br"),Io(3,"small",22),_s(4,"(dd-mm-yyyy)"),Eo(),Eo())}function N9(e,t){if(1&e&&(Io(0,"td",21),_s(1),Nl(2,"date"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEnd?zl(2,1,n.accessEnd,"dd-MM-yyyy","en-HK"):"N/A"," ")}}function B9(e,t){1&e&&(Io(0,"th",20),_s(1," Purpose of Visit "),Eo())}function j9(e,t){if(1&e&&(Io(0,"td",23),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),gs(n.purpose)}}function z9(e,t){1&e&&Oo(0,"tr",24)}function U9(e,t){if(1&e){var n=Fo();Io(0,"tr",25),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().selectRow(e,i)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var W9,G9=((W9=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.commonProjection=["id","type","vehicleType","passengerCount","vehicleNo","accessStart","accessEnd","purpose"],this.detailsProjection=["id","type","vehicleType","passengerCount","vehicleNo","name","department","accessStart","accessEnd","purpose"],this._query=new a7,this._dataSource=null,this.moreEvent=new Gl,this.selected=new Gl,this.onActionClicked=new Gl,this.onDataUpdated=new Gl,this.showError=!1,this.action="Details",this.displayedColumns=this.commonProjection}return _createClass(e,[{key:"setDetailsMode",value:function(e){this.displayedColumns=e?this.detailsProjection:this.commonProjection}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"ngOnInit",value:function(){null!==this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"selectRow",value:function(e,t){this.selectedRow=t,this.selected.emit(t)}},{key:"onActionBtnClicked",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.onActionClicked.emit(t)}},{key:"setSelection",value:function(e){this.selectedRow=e}},{key:"clearSelected",value:function(){this.selectedRow=null}},{key:"clear",value:function(){null!==this._dataSource&&(this.selectedRow=null,this._dataSource.clear())}},{key:"onLoaded",value:function(e,t){this.onDataUpdated.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||W9)(Mo(jr))},W9.\u0275cmp=gt({type:W9,selectors:[["app-va-vehicle-list"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(b9,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},inputs:{action:"action"},outputs:{selected:"selected",onActionClicked:"onActionClicked",moreEvent:"moreEvent",onDataUpdated:"onDataUpdated"},decls:39,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","vehicleType"],["matColumnDef","passengerCount"],["matColumnDef","vehicleNo"],["matColumnDef","name"],["matColumnDef","department"],["matColumnDef","accessStart"],["matColumnDef","accessEnd"],["matColumnDef","purpose"],["mat-cell","","class","polyu-multi-lines-text",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"polyu-optional"],["mat-cell","",1,"polyu-multi-lines-text"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Do(0,w9,3,0,"div",0),Io(1,"div"),Do(2,C9,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,D9,2,0,"th",4),Do(8,S9,2,1,"td",5),Po(),Ro(9,6),Do(10,M9,2,0,"th",4),Do(11,x9,3,3,"td",5),Po(),Ro(12,7),Do(13,T9,2,0,"th",4),Do(14,A9,3,3,"td",5),Po(),Ro(15,8),Do(16,L9,2,0,"th",4),Do(17,I9,2,1,"td",5),Po(),Ro(18,9),Do(19,E9,2,0,"th",4),Do(20,O9,2,1,"td",5),Po(),Ro(21,10),Do(22,R9,2,0,"th",4),Do(23,P9,2,1,"td",5),Po(),Ro(24,11),Do(25,Y9,2,0,"th",4),Do(26,F9,2,1,"td",5),Po(),Ro(27,12),Do(28,q9,5,0,"th",4),Do(29,V9,3,5,"td",5),Po(),Ro(30,13),Do(31,H9,5,0,"th",4),Do(32,N9,3,5,"td",5),Po(),Ro(33,14),Do(34,B9,2,0,"th",4),Do(35,j9,2,1,"td",15),Po(),Do(36,z9,1,0,"tr",16),Do(37,U9,1,2,"tr",17),Eo(),Io(38,"mat-paginator",18),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(31),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,TF,LF],pipes:[ih,Y7,F7,oh],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-accessEndDate[_ngcontent-%COMP%], .mat-column-accessStartDate[_ngcontent-%COMP%], .mat-column-purpose[_ngcontent-%COMP%], .mat-column-vehicleNo[_ngcontent-%COMP%]{padding-right:10px}"]}),W9),Q9=["dataFilter"],K9=["vehicleTable"];function $9(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",7),Ho("click",(function(){return en(n),Uo().export()})),_s(2,"Export"),Eo(),Po()}}var J9,X9=((J9=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._route=i,this._dialog=a,this._location=r,this._cd=o,this._dataService=s,this.message=null,this.role=this._route.snapshot.data.role,this._detailsMode=!!this._route.snapshot.data.detailsMode&&this._route.snapshot.data.detailsMode,this.exportEnable=!!this._route.snapshot.data.exportEnable&&this._route.snapshot.data.exportEnable}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataFilterComponent.focus(),this._dataSource=new f9(this._applicationService,this._cd),this._vehicleTableComponent.setDataStore(this._dataSource),this._vehicleTableComponent.setDetailsMode(this._detailsMode),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog,t=this._applicationService.currentUser.roles;t&&(t.indexOf("ROLE_VA_USER")>=0||t.indexOf("ROLE_VA_ADMIN")>=0)?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){if(null===this._dataService.vehicleAccessSearchParameter)this._dataService.vehicleAccessSearchParameter=new a7,this._dataService.vehicleAccessSearchParameter.createdBy=this.role?"":this._applicationService.currentUser.netid,this._dataService.vehicleAccessSearchParameter.keyword="",this._dataService.vehicleAccessSearchParameter.existBetweenStart=null,this._dataService.vehicleAccessSearchParameter.existBetweenEnd=null;else{var e=new k9;e.keyword=this._dataService.vehicleAccessSearchParameter.keyword,e.startDate=this._dataService.vehicleAccessSearchParameter.existBetweenStart,e.endDate=this._dataService.vehicleAccessSearchParameter.existBetweenEnd,this._dataFilterComponent.setValue(e)}this._vehicleTableComponent.setQueryCriteria(this._dataService.vehicleAccessSearchParameter),this._vehicleTableComponent.refresh()}},{key:"search",value:function(){this._vehicleTableComponent.clear();var e=this._dataFilterComponent.evalInput();e.keyword=e.keyword.trim(),this._dataService.vehicleAccessSearchParameter.keyword=e.keyword,this._dataService.vehicleAccessSearchParameter.existBetweenStart=e.startDate,this._dataService.vehicleAccessSearchParameter.existBetweenEnd=e.endDate,this._dataService.vehicleAccessSearchParameter.offset=0,this._vehicleTableComponent.setQueryCriteria(this._dataService.vehicleAccessSearchParameter),this._vehicleTableComponent.refresh()}},{key:"onVehicleSelected",value:function(e){this._vehicleTableComponent.clearSelected()}},{key:"back",value:function(){this._dataService.vehicleAccessSearchParameter=null,this._location.back()}},{key:"export",value:function(){var e=this;this._applicationService.downloadVehicleAccessRequests(this._dataService.vehicleAccessSearchParameter).subscribe((function(e){var t=document.createElement("a");t.href=window.URL.createObjectURL(e),t.download="vehicles_"+dd(new Date,"yyyy-MM-dd","en-HK")+".csv",t.target="_blank",t.click()}),(function(t){e._snackBar.open(t&&t.error&&t.error.errors&&t.error.errors.length>0?t.error.errors[0]:"Unable to load vehicle access schedule.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}}]),e}()).\u0275fac=function(e){return new(e||J9)(Mo(_S),Mo(EY),Mo(rk),Mo(Bx),Mo(ju),Mo(jr),Mo(KQ))},J9.\u0275cmp=gt({type:J9,selectors:[["app-va-vehicle-list-page"]],viewQuery:function(e,t){var n;1&e&&(rc(Q9,!0),rc(K9,!0)),2&e&&(ac(n=dc())&&(t._dataFilterComponent=n.first),ac(n=dc())&&(t._vehicleTableComponent=n.first))},decls:13,vars:1,consts:[[1,"polyu-page-headline"],[3,"clicked"],["dataFilter",""],[1,"polyu-vehicle-container"],[3,"selected"],["vehicleTable",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"VRS - Search Vehicle Access Request(s)"),Eo(),Io(2,"h5"),_s(3,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(4,"app-va-vehicle-search-bar",1,2),Ho("clicked",(function(){return t.search()})),Eo(),Io(6,"div",3),Io(7,"app-va-vehicle-list",4,5),Ho("selected",(function(e){return t.onVehicleSelected(e)})),Eo(),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Do(12,$9,3,0,"ng-container",8),Eo()),2&e&&(ma(12),Ao("ngIf",t.exportEnable))},directives:[y9,G9,bS,Ed],styles:[".polyu-alert-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-vehicle-container[_ngcontent-%COMP%]{margin-top:20px}"]}),J9);n("mrSG");var Z9=/\s+/,eee=new(function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n={top:(n=e.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var a=this.offsetParent(e);n=this.offset(e,!1),a!==document.documentElement&&(i=this.offset(a,!1)),i.top+=a.clientTop,i.left+=a.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,a=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+a,right:n.right+a};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,i){var a=n.split("-"),r=a[0],o=void 0===r?"top":r,s=a[1],l=void 0===s?"center":s,c=i?this.offset(e,!1):this.position(e,!1),u=this.getAllStyles(t),d=parseFloat(u.marginTop),h=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),p=parseFloat(u.marginRight),m=0,_=0;switch(o){case"top":m=c.top-(t.offsetHeight+d+h);break;case"bottom":m=c.top+c.height;break;case"left":_=c.left-(t.offsetWidth+f+p);break;case"right":_=c.left+c.width}switch(l){case"top":m=c.top;break;case"bottom":m=c.top+c.height-t.offsetHeight;break;case"left":_=c.left;break;case"right":_=c.left+c.width-t.offsetWidth;break;case"center":"top"===o||"bottom"===o?_=c.left+c.width/2-t.offsetWidth/2:m=c.top+c.height/2-t.offsetHeight/2}t.style.transform="translate("+Math.round(_)+"px, "+Math.round(m)+"px)";var g=t.getBoundingClientRect(),v=document.documentElement,y=window.innerHeight||v.clientHeight,k=window.innerWidth||v.clientWidth;return g.left>=0&&g.top>=0&&g.right<=k&&g.bottom<=y},e}()),tee=function(){return(tee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},nee=function(e){return e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY",e}({}),iee=[nee.SUNDAY,nee.SATURDAY];function aee(e,t){var n=t.startDate,i=t.excluded,a=t.precision;if(i.length<1)return 0;for(var r=e.getDay,o=e.addDays,s=(0,e.addSeconds)(n,t.seconds-1),l=r(n),c=r(s),u=0,d=n,h=function(){var t=r(d);i.some((function(e){return e===t}))&&(u+=function(e,t){var n=t.day,i=t.dayEnd,a=t.startDate,r=t.endDate,o=e.differenceInSeconds,s=e.startOfDay;if("minutes"===t.precision){if(n===t.dayStart)return o((0,e.endOfDay)(a),a)+1;if(n===i)return o(r,s(r))+1}return 86400}(e,{dayStart:l,dayEnd:c,day:t,precision:a,startDate:n,endDate:s})),d=o(d,1)};d<s;)h();return u}function ree(e,t){var n=t.periodStart,i=t.periodEnd;return t.events.filter((function(t){return function(e,t){var n=t.event,i=t.periodStart,a=t.periodEnd,r=e.isSameSecond,o=n.start,s=n.end||n.start;return o>i&&o<a||s>i&&s<a||o<i&&s>a||!(!r(o,i)&&!r(o,a))||!(!r(s,i)&&!r(s,a))}(e,{event:t,periodStart:n,periodEnd:i})}))}function oee(e,t){var n=t.date,i=t.weekendDays,a=void 0===i?iee:i,r=e.isSameDay,o=e.getDay,s=(0,e.startOfDay)(new Date),l=o(n);return{date:n,day:l,isPast:n<s,isToday:r(n,s),isFuture:n>s,isWeekend:a.indexOf(l)>-1}}function see(e,t){for(var n=t.excluded,i=void 0===n?[]:n,a=t.weekendDays,r=t.viewStart,o=void 0===r?e.startOfWeek(t.viewDate,{weekStartsOn:t.weekStartsOn}):r,s=t.viewEnd,l=void 0===s?e.addDays(o,7):s,c=e.addDays,u=e.getDay,d=[],h=o;h<l;)i.some((function(e){return u(h)===e}))||d.push(oee(e,{date:h,weekendDays:a})),h=c(h,1);return d}function lee(e,t){var n=t.excluded,i=t.precision,a=t.absolutePositionedEvents,r=t.viewStart,o=t.viewEnd,s=t.eventsInPeriod,l=e.differenceInSeconds,c=e.differenceInDays,u=function(e,t){for(var n=t.date2,i=t.excluded,a=t.date1,r=0;a<n;)-1===i.indexOf(e.getDay(a))&&r++,a=e.addDays(a,1);return r}(e,{date1:r,date2:o,excluded:n}),d=c(o,r)+1,h=s.filter((function(e){return e.allDay})).map((function(t){var a=function(e,t){var n=t.event,i=t.startOfWeek,a=t.excluded,r=t.precision,o=e.differenceInDays,s=e.startOfDay,l=e.differenceInSeconds;if(n.start<i)return 0;var c=0;switch(r){case"days":c=86400*o(s(n.start),i);break;case"minutes":c=l(n.start,i)}return c-=aee(e,{startDate:i,seconds:c,excluded:a,precision:r}),Math.abs(c/86400)}(e,{event:t,startOfWeek:r,excluded:n,precision:i});return{event:t,offset:a,span:function(e,t){var n=t.event,i=t.offset,a=t.excluded,r=t.precision,o=t.totalDaysInView,s=e.differenceInSeconds,l=e.addDays,c=e.endOfDay,u=e.differenceInDays,d=86400,h=(0,e.max)([n.start,t.startOfWeekDate]);if(n.end)switch(r){case"minutes":d=s(n.end,h);break;default:d=86400*u(l(c(n.end),1),h)}var f=86400*i,p=86400*o;return f+d>p&&(d=p-f),(d-=aee(e,{startDate:h,seconds:d,excluded:a,precision:r}))/86400}(e,{event:t,offset:a,startOfWeekDate:r,excluded:n,precision:i,totalDaysInView:d})}})).filter((function(e){return e.offset<u})).filter((function(e){return e.span>0})).map((function(e){return{event:e.event,offset:e.offset,span:e.span,startsBeforeWeek:e.event.start<r,endsAfterWeek:(e.event.end||e.event.start)>o}})).sort((function(e,t){var n=l(e.event.start,t.event.start);return 0===n?l(t.event.end||t.event.start,e.event.end||e.event.start):n})),f=[],p=[];return h.forEach((function(e,t){if(-1===p.indexOf(e)){p.push(e);var n=e.span+e.offset,i=h.slice(t+1).filter((function(e){if(e.offset>=n&&n+e.span<=d&&-1===p.indexOf(e)){var t=e.offset-n;return a||(e.offset=t),n+=e.span+t,p.push(e),!0}})),r=[e].concat(i),o=r.filter((function(e){return e.event.id})).map((function(e){return e.event.id})).join("-");f.push(tee({row:r},o?{id:o}:{}))}})),f}function cee(e,t){var n=t.events,i=t.viewDate,a=t.hourSegments,r=t.dayStart,o=t.dayEnd,s=t.weekStartsOn,l=t.excluded,c=t.weekendDays,u=t.segmentHeight,d=t.viewStart,h=t.viewEnd,f=function(e,t){var n=t.viewDate,i=t.hourSegments,a=t.dayStart,r=t.dayEnd,o=e.setMinutes,s=e.setHours,l=e.startOfDay,c=e.startOfMinute,u=e.endOfDay,d=e.addMinutes,h=e.addHours,f=e.addDays,p=[],m=o(s(l(n),dee(a.hour)),hee(a.minute)),_=o(s(c(u(n)),dee(r.hour)),hee(r.minute)),g=60/i,v=l(n),y=u(n),k=function(e){return e};v.getTimezoneOffset()!==y.getTimezoneOffset()&&(v=f(v,1),m=f(m,1),_=f(_,1),k=function(e){return f(e,-1)});for(var b=0;b<24;b++){for(var w=[],C=0;C<i;C++){var D=d(h(v,b),C*g);D>=m&&D<_&&w.push({date:k(D),displayDate:D,isStart:0===C})}w.length>0&&p.push({segments:w})}return p}(e,{viewDate:i,hourSegments:a,dayStart:r,dayEnd:o}),p=see(e,{viewDate:i,weekStartsOn:s,excluded:l,weekendDays:c,viewStart:d,viewEnd:h}),m=e.setHours,_=e.setMinutes,g=e.getHours,v=e.getMinutes;return p.map((function(t){var i=function(e,t){var n=t.events,i=t.viewDate,a=t.hourSegments,r=t.dayStart,o=t.dayEnd,s=t.eventWidth,l=t.segmentHeight,c=e.setMinutes,u=e.setHours,d=e.startOfDay,h=e.startOfMinute,f=e.endOfDay,p=e.differenceInMinutes,m=c(u(d(i),dee(r.hour)),hee(r.minute)),_=c(u(h(f(i)),dee(o.hour)),hee(o.minute)),g=[],v=ree(e,{events:n.filter((function(e){return!e.allDay})),periodStart:m,periodEnd:_}),y=v.sort((function(e,t){return e.start.valueOf()-t.start.valueOf()})).map((function(e){var t=e.start,n=e.end||t,i=t<m,r=n>_,o=a*l/60,c=0;if(t>m){var u=t.getTimezoneOffset(),d=m.getTimezoneOffset()-u;c+=p(t,m)+d}c*=o;var h=p(r?_:n,i?m:t);e.end?h*=o:h=l;for(var f=uee(g,c,c+h),v=0;f.some((function(e){return e.left===v}));)v+=s;var y={event:e,height:h,width:s,top:c,left:v,startsBeforeDay:i,endsAfterDay:r};return g.push(y),y})),k=Math.max.apply(Math,y.map((function(e){return e.left+e.width})));return{events:y,width:k,allDayEvents:ree(e,{events:n.filter((function(e){return e.allDay})),periodStart:d(m),periodEnd:f(_)}),period:{events:v,start:m,end:_}}}(e,{events:n,viewDate:t.date,hourSegments:a,dayStart:r,dayEnd:o,segmentHeight:u,eventWidth:1}),s=f.map((function(e){var n=e.segments.map((function(e){var n=_(m(t.date,g(e.date)),v(e.date));return tee({},e,{date:n})}));return tee({},e,{segments:n})})),l=i.events.map((function(e){var t=100/function e(t,n){var i=Math.max.apply(Math,n.map((function(e){return e.left+1}))),a=t.filter((function(e){return e.left>=i})).filter((function(e){return uee(n,e.top,e.top+e.height).length>0}));return a.length>0?e(t,a):i}(i.events,uee(i.events,e.top,e.top+e.height));return tee({},e,{left:e.left*t,width:t})}));return{hours:s,date:t.date,events:l.map((function(e){var t=uee(l.filter((function(t){return t.left>e.left})),e.top,e.top+e.height);return t.length>0?tee({},e,{width:Math.min.apply(Math,t.map((function(e){return e.left})))-e.left}):e}))}}))}function uee(e,t,n){return e.filter((function(e){var i=e.top,a=e.top+e.height;return t<a&&a<n||t<i&&i<n||i<=t&&n<=a}))}function dee(e){return Math.max(Math.min(23,e),0)}function hee(e){return Math.max(Math.min(59,e),0)}var fee,pee,mee,_ee=function(e){return e.NotArray="Events must be an array",e.StartPropertyMissing="Event is missing the `start` property",e.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",e.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",e.EndsBeforeStart="Event `start` property occurs after the `end`",e}({}),gee=n("rJ3z"),vee=n.n(gee),yee=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.source=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new kee(e,this.predicate,this.source))}}]),e}(),kee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var r;return _classCallCheck(this,n),(r=t.call(this,e)).predicate=i,r.source=a,r.count=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.predicate?this._tryPredicate(e):this.count++}},{key:"_tryPredicate",value:function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),n}(m),bee=((mee=function e(){_classCallCheck(this,e),this.currentDrag=new T}).\u0275prov=fe({token:mee,factory:mee.\u0275fac=function(e){return new(e||mee)},providedIn:"root"}),mee.ngInjectableDef=pe({factory:function(){return new mee},token:mee,providedIn:"root"}),mee),wee=((pee=function(){function e(t,n,i){_classCallCheck(this,e),this.elementRef=t,this.renderer=n,this.zone=i,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30},this.cancelledScroll=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.zone.runOutsideAngular((function(){e.renderer.listen(e.elementRef.nativeElement,"touchmove",(function(t){e.cancelledScroll&&t.cancelable&&t.preventDefault()}))}))}},{key:"disableScroll",value:function(){this.cancelledScroll=!0,this.renderer.setStyle(this.elementRef.nativeElement,"overflow","hidden")}},{key:"enableScroll",value:function(){this.cancelledScroll=!1,this.renderer.setStyle(this.elementRef.nativeElement,"overflow","auto")}},{key:"hasScrollbar",value:function(){return this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth>0||this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight>0}}]),e}()).\u0275fac=function(e){return new(e||pee)(Mo(js),Mo(Gs),Mo(qc))},pee.\u0275dir=Ct({type:pee,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),pee),Cee=((fee=function(){function e(t,n,i,a,r,o,s){_classCallCheck(this,e),this.element=t,this.renderer=n,this.draggableHelper=i,this.zone=a,this.vcr=r,this.scrollContainer=o,this.document=s,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.dragPointerDown=new Gl,this.dragStart=new Gl,this.ghostElementCreated=new Gl,this.dragging=new Gl,this.dragEnd=new Gl,this.pointerDown$=new T,this.pointerMove$=new T,this.pointerUp$=new T,this.eventListenerSubscriptions={},this.destroy$=new T,this.timeLongPress={timerBegin:0,timerEnd:0}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var t=this.pointerDown$.pipe(gu((function(){return e.canDrag()})),z((function(t){t.event.stopPropagation&&!e.scrollContainer&&t.event.stopPropagation();var n=e.getScrollPosition(),i=new w((function(t){return e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",(function(e){return t.next(e)}))})).pipe(Vv(n),V((function(){return e.getScrollPosition()}))),a=new T,r=new lM;e.zone.run((function(){e.dragPointerDown.next({x:0,y:0})}));var o=K(e.pointerUp$,e.pointerDown$,r,e.destroy$).pipe(ie()),s=sv([e.pointerMove$,i]).pipe(V((function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];return{currentDrag$:a,transformX:i.clientX-t.clientX,transformY:i.clientY-t.clientY,clientX:i.clientX,clientY:i.clientY,scrollLeft:r.left,scrollTop:r.top}})),V((function(t){return e.dragSnapGrid.x&&(t.transformX=Math.round(t.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(t.transformY=Math.round(t.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),t})),V((function(t){return e.dragAxis.x||(t.transformX=0),e.dragAxis.y||(t.transformY=0),t})),V((function(e){return Object.assign({},e,{x:e.transformX+(e.scrollLeft-n.left),y:e.transformY+(e.scrollTop-n.top)})})),gu((function(t){var n=t.x,i=t.y,a=t.transformX,r=t.transformY;return!e.validateDrag||e.validateDrag({x:n,y:i,transform:{x:a,y:r}})})),$S(o),ie()),l=s.pipe(Av(1),ie()),c=s.pipe(mv(1),ie());return l.subscribe((function(t){var n=t.clientX,i=t.clientY,o=t.x,s=t.y;if(e.zone.run((function(){e.dragStart.next({cancelDrag$:r})})),e.scroller=vee()([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],{margin:20,autoScroll:function(){return!0}}),e.renderer.addClass(e.element.nativeElement,e.dragActiveClass),e.ghostDragEnabled){var l=e.element.nativeElement.getBoundingClientRect(),u=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(u):e.element.nativeElement.parentNode.insertBefore(u,e.element.nativeElement.nextSibling),e.ghostElement=u,document.body.style.cursor=e.dragCursor,e.setElementStyles(u,{position:"fixed",top:"".concat(l.top,"px"),left:"".concat(l.left,"px"),width:"".concat(l.width,"px"),height:"".concat(l.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var d=e.vcr.createEmbeddedView(e.ghostElementTemplate);u.innerHTML="",d.rootNodes.filter((function(e){return e instanceof Node})).forEach((function(e){u.appendChild(e)})),c.subscribe((function(){e.vcr.remove(e.vcr.indexOf(d))}))}e.zone.run((function(){e.ghostElementCreated.emit({clientX:n-o,clientY:i-s,element:u})})),c.subscribe((function(){u.parentElement.removeChild(u),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")}))}e.draggableHelper.currentDrag.next(a)})),c.pipe(z((function(e){var t=r.pipe((function(e){return e.lift(new yee(void 0,e))}),Av(1),V((function(t){return Object.assign({},e,{dragCancelled:t>0})})));return r.complete(),t}))).subscribe((function(t){var n=t.x,i=t.y,r=t.dragCancelled;e.scroller.destroy(),e.zone.run((function(){e.dragEnd.next({x:n,y:i,dragCancelled:r})})),e.renderer.removeClass(e.element.nativeElement,e.dragActiveClass),a.complete()})),new w((function(t){return e.renderer.listen("document","selectstart",(function(e){return t.next(e)}))})).pipe($S(K(o,c))).subscribe((function(e){e.preventDefault()})),s})),ie());K(t.pipe(Av(1),V((function(e){return[,e]}))),t.pipe(ZS())).pipe(gu((function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1];return!n||n.x!==i.x||n.y!==i.y})),V((function(e){var t=_slicedToArray(e,2);return t[0],t[1]})),KS(0,HS)).subscribe((function(t){var n=t.x,i=t.y,a=t.currentDrag$,r=t.clientX,o=t.clientY,s=t.transformX,l=t.transformY;if(e.zone.run((function(){e.dragging.next({x:n,y:i})})),e.ghostElement){var c="translate3d(".concat(s,"px, ").concat(l,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:c,"-webkit-transform":c,"-ms-transform":c,"-moz-transform":c,"-o-transform":c})}a.next({clientX:r,clientY:o,dropData:e.dropData})}))}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,t=this.canDrag(),n=Object.keys(this.eventListenerSubscriptions).length>0;t&&!n?this.zone.runOutsideAngular((function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",(function(t){e.onMouseDown(t)})),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",(function(t){e.onMouseUp(t)})),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",(function(t){e.onTouchStart(t)})),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",(function(t){e.onTouchEnd(t)})),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",(function(t){e.onTouchEnd(t)})),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",(function(){e.onMouseEnter()})),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",(function(){e.onMouseLeave()}))})):!t&&n&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",(function(e){t.pointerMove$.next({event:e,clientX:e.clientX,clientY:e.clientY})}))),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var t,n,i,a=this;if(!this.scrollContainer)try{e.preventDefault()}catch(r){}this.scrollContainer&&this.scrollContainer.activeLongPressDrag&&(this.timeLongPress.timerBegin=Date.now(),i=!1,t=this.scrollContainer.hasScrollbar(),n=this.getScrollPosition()),this.eventListenerSubscriptions.touchmove||(this.eventListenerSubscriptions.touchmove=this.renderer.listen("document","touchmove",(function(r){a.scrollContainer&&a.scrollContainer.activeLongPressDrag&&!i&&t&&(i=a.shouldBeginDrag(e,r,n)),a.scrollContainer&&a.scrollContainer.activeLongPressDrag&&t&&!i||a.pointerMove$.next({event:r,clientX:r.targetTouches[0].clientX,clientY:r.targetTouches[0].clientY})}))),this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.scrollContainer&&this.scrollContainer.activeLongPressDrag&&this.scrollContainer.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach((function(t){e.eventListenerSubscriptions[t](),delete e.eventListenerSubscriptions[t]}))}},{key:"setElementStyles",value:function(e,t){var n=this;Object.keys(t).forEach((function(i){n.renderer.setStyle(e,i,t[i])}))}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,t,n){var i=this.getScrollPosition(),a=Math.abs(i.top-n.top),r=Math.abs(i.left-n.left);return(Math.abs(t.targetTouches[0].clientX-e.touches[0].clientX)-r+(Math.abs(t.targetTouches[0].clientY-e.touches[0].clientY)-a)>this.scrollContainer.longPressConfig.delta||a>0||r>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=this.scrollContainer.longPressConfig.duration&&(this.scrollContainer.disableScroll(),!0)}}]),e}()).\u0275fac=function(e){return new(e||fee)(Mo(js),Mo(Gs),Mo(bee),Mo(qc),Mo(ml),Mo(wee,8),Mo(Cu))},fee.\u0275dir=Ct({type:fee,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[As]}),fee);function Dee(e,t,n){return e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}var See,Mee,xee,Tee=((xee=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this.element=t,this.draggableHelper=n,this.zone=i,this.renderer=a,this.scrollContainer=r,this.dragEnter=new Gl,this.dragLeave=new Gl,this.dragOver=new Gl,this.drop=new Gl}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe((function(t){e.renderer.addClass(e.element.nativeElement,e.dragActiveClass);var n,i,a={updateCache:!0},r=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",(function(){a.updateCache=!0})),o=t.pipe(V((function(t){var i=t.clientX,r=t.clientY,o=t.dropData;n=o,a.updateCache&&(a.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(a.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),a.updateCache=!1);var s=Dee(i,r,a.rect);return a.scrollContainerRect?s&&Dee(i,r,a.scrollContainerRect):s}))),s=o.pipe(NS());s.pipe(gu((function(e){return e}))).subscribe((function(){i=!0,e.renderer.addClass(e.element.nativeElement,e.dragOverClass),e.zone.run((function(){e.dragEnter.next({dropData:n})}))})),o.pipe(gu((function(e){return e}))).subscribe((function(){e.zone.run((function(){e.dragOver.next({dropData:n})}))})),s.pipe(ZS(),gu((function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1];return n&&!i}))).subscribe((function(){i=!1,e.renderer.removeClass(e.element.nativeElement,e.dragOverClass),e.zone.run((function(){e.dragLeave.next({dropData:n})}))})),t.subscribe({complete:function(){r(),e.renderer.removeClass(e.element.nativeElement,e.dragActiveClass),i&&(e.renderer.removeClass(e.element.nativeElement,e.dragOverClass),e.zone.run((function(){e.drop.next({dropData:n})})))}})}))}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||xee)(Mo(js),Mo(bee),Mo(qc),Mo(Gs),Mo(wee,8))},xee.\u0275dir=Ct({type:xee,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),xee),Aee=((Mee=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Mee}),Mee.\u0275inj=me({factory:function(e){return new(e||Mee)}}),Mee),Lee=((See=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:See}),See.\u0275inj=me({factory:function(e){return new(e||See)}}),See),Iee=function(e){return{action:e}};function Eee(e,t){if(1&e){var n=Fo();Io(0,"a",5),Ho("mwlClick",(function(e){en(n);var i=t.$implicit,a=Uo(2).event;return i.onClick({event:a,sourceEvent:e})}))("mwlKeydownEnter",(function(e){en(n);var i=t.$implicit,a=Uo(2).event;return i.onClick({event:a,sourceEvent:e})})),Nl(1,"calendarA11y"),Eo()}if(2&e){var i=t.$implicit;Ao("ngClass",i.cssClass)("innerHtml",i.label,Ji),wo("aria-label",jl(1,3,Rl(6,Iee,i),"actionButtonLabel"))}}function Oee(e,t){if(1&e&&(Io(0,"span",3),Do(1,Eee,2,8,"a",4),Eo()),2&e){var n=Uo(),i=n.event,a=n.trackByActionId;ma(1),Ao("ngForOf",i.actions)("ngForTrackBy",a)}}function Ree(e,t){1&e&&Do(0,Oee,2,2,"span",2),2&e&&Ao("ngIf",t.event.actions)}function Pee(e,t){}var Yee=function(e,t){return{event:e,trackByActionId:t}},Fee=function(){return{}};function qee(e,t){if(1&e&&(Oo(0,"span",2),Nl(1,"calendarEventTitle"),Nl(2,"calendarA11y")),2&e){var n=t.event;Ao("innerHTML",zl(1,2,n.title,t.view,n),Ji),wo("aria-hidden",jl(2,6,Ol(9,Fee),"hideEventTitle"))}}function Vee(e,t){}var Hee=function(e,t){return{event:e,view:t}};function Nee(e,t){if(1&e&&(Io(0,"div",2),Oo(1,"div",3),Oo(2,"div",4),Eo()),2&e){var n=t.contents;Ao("ngClass","cal-tooltip-"+t.placement),ma(2),Ao("innerHtml",n,Ji)}}function Bee(e,t){}var jee=function(e,t,n){return{contents:e,placement:t,event:n}},zee=function(e){return{backgroundColor:e}};function Uee(e,t){if(1&e){var n=Fo();Io(0,"mwl-calendar-month-cell",7),Ho("mwlClick",(function(e){en(n);var i=t.$implicit;return Uo(2).dayClicked.emit({day:i,sourceEvent:e})}))("mwlKeydownEnter",(function(e){en(n);var i=t.$implicit;return Uo(2).dayClicked.emit({day:i,sourceEvent:e})}))("highlightDay",(function(e){return en(n),Uo(2).toggleDayHighlight(e.event,!0)}))("unhighlightDay",(function(e){return en(n),Uo(2).toggleDayHighlight(e.event,!1)}))("drop",(function(e){en(n);var i=t.$implicit;return Uo(2).eventDropped(i,e.dropData.event,e.dropData.draggedFrom)}))("eventClicked",(function(e){return en(n),Uo(2).eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})})),Nl(1,"calendarA11y"),Eo()}if(2&e){var i=t.$implicit,a=Uo(2);Ao("ngClass",null==i?null:i.cssClass)("day",i)("openDay",a.openDay)("locale",a.locale)("tooltipPlacement",a.tooltipPlacement)("tooltipAppendToBody",a.tooltipAppendToBody)("tooltipTemplate",a.tooltipTemplate)("tooltipDelay",a.tooltipDelay)("customTemplate",a.cellTemplate)("ngStyle",Rl(15,zee,i.backgroundColor))("clickListenerDisabled",0===a.dayClicked.observers.length),wo("tabindex",jl(1,12,Ol(17,Fee),"monthCellTabIndex"))}}function Wee(e,t){if(1&e){var n=Fo();Io(0,"div"),Io(1,"div",4),Do(2,Uee,2,18,"mwl-calendar-month-cell",5),Nl(3,"slice"),Eo(),Io(4,"mwl-calendar-open-day-events",6),Ho("eventClicked",(function(e){return en(n),Uo().eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})}))("drop",(function(e){en(n);var t=Uo();return t.eventDropped(t.openDay,e.dropData.event,e.dropData.draggedFrom)})),Eo(),Eo()}if(2&e){var i=t.$implicit,a=Uo();ma(2),Ao("ngForOf",zl(3,9,a.view.days,i,i+a.view.totalDaysVisibleInWeek))("ngForTrackBy",a.trackByDate),ma(2),Ao("locale",a.locale)("isOpen",a.openRowIndex===i)("events",null==a.openDay?null:a.openDay.events)("date",null==a.openDay?null:a.openDay.date)("customTemplate",a.openDayEventsTemplate)("eventTitleTemplate",a.eventTitleTemplate)("eventActionsTemplate",a.eventActionsTemplate)}}function Gee(e,t){if(1&e){var n=Fo();Io(0,"div",4),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo(2).columnHeaderClicked.emit({isoDayNumber:i.day,sourceEvent:e})})),_s(1),Nl(2,"calendarDate"),Eo()}if(2&e){var i=t.$implicit,a=Uo().locale;rs("cal-past",i.isPast)("cal-today",i.isToday)("cal-future",i.isFuture)("cal-weekend",i.isWeekend),Ao("ngClass",i.cssClass),ma(1),vs(" ",zl(2,10,i.date,"monthViewColumnHeader",a)," ")}}function Qee(e,t){if(1&e&&(Io(0,"div",2),Do(1,Gee,3,14,"div",3),Eo()),2&e){var n=t.days,i=t.trackByWeekDayHeaderDate;ma(1),Ao("ngForOf",n)("ngForTrackBy",i)}}function Kee(e,t){}var $ee=function(e,t,n){return{days:e,locale:t,trackByWeekDayHeaderDate:n}};function Jee(e,t){if(1&e&&(Io(0,"span",7),_s(1),Eo()),2&e){var n=Uo().day;ma(1),gs(n.badgeTotal)}}var Xee=function(e,t){return{event:e,draggedFrom:t}},Zee=function(e,t){return{x:e,y:t}};function ete(e,t){if(1&e){var n=Fo();Io(0,"div",10),Ho("mouseenter",(function(){en(n);var e=t.$implicit;return Uo(2).highlightDay.emit({event:e})}))("mouseleave",(function(){en(n);var e=t.$implicit;return Uo(2).unhighlightDay.emit({event:e})}))("mwlClick",(function(e){en(n);var i=t.$implicit;return Uo(2).eventClicked.emit({event:i,sourceEvent:e})})),Nl(1,"calendarEventTitle"),Nl(2,"calendarA11y"),Eo()}if(2&e){var i=t.$implicit,a=Uo(2),r=a.tooltipPlacement,o=a.tooltipTemplate,s=a.tooltipAppendToBody,l=a.tooltipDelay,c=a.day,u=a.validateDrag;rs("cal-draggable",i.draggable),Ao("ngStyle",Rl(21,zee,null==i.color?null:i.color.primary))("ngClass",null==i?null:i.cssClass)("mwlCalendarTooltip",zl(1,14,i.title,"monthTooltip",i))("tooltipPlacement",r)("tooltipEvent",i)("tooltipTemplate",o)("tooltipAppendToBody",s)("tooltipDelay",l)("dropData",Pl(23,Xee,i,c))("dragAxis",Pl(26,Zee,i.draggable,i.draggable))("validateDrag",u),wo("aria-hidden",jl(2,18,Ol(29,Fee),"hideMonthCellEvents"))}}function tte(e,t){if(1&e&&(Io(0,"div",8),Do(1,ete,3,30,"div",9),Eo()),2&e){var n=Uo(),i=n.day,a=n.trackByEventId;ma(1),Ao("ngForOf",i.events)("ngForTrackBy",a)}}var nte=function(e,t){return{day:e,locale:t}};function ite(e,t){if(1&e&&(Io(0,"div",2),Nl(1,"calendarA11y"),Io(2,"span",3),Do(3,Jee,2,1,"span",4),Io(4,"span",5),_s(5),Nl(6,"calendarDate"),Eo(),Eo(),Eo(),Do(7,tte,2,2,"div",6)),2&e){var n=t.day,i=t.locale;wo("aria-label",jl(1,4,Pl(11,nte,n,i),"monthCell")),ma(3),Ao("ngIf",n.badgeTotal>0),ma(2),gs(zl(6,7,n.date,"monthViewDayNumber",i)),ma(2),Ao("ngIf",n.events.length>0)}}function ate(e,t){}var rte=function(e,t,n,i,a,r,o,s,l,c,u,d){return{day:e,openDay:t,locale:n,tooltipPlacement:i,highlightDay:a,unhighlightDay:r,eventClicked:o,tooltipTemplate:s,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:d}},ote=function(e){return{event:e}},ste=function(e,t){return{event:e,locale:t}};function lte(e,t){if(1&e){var n=Fo();Io(0,"div",7),Oo(1,"span",8),_s(2," "),Io(3,"mwl-calendar-event-title",9),Ho("mwlClick",(function(e){en(n);var i=t.$implicit;return Uo(2).eventClicked.emit({event:i,sourceEvent:e})}))("mwlKeydownEnter",(function(e){en(n);var i=t.$implicit;return Uo(2).eventClicked.emit({event:i,sourceEvent:e})})),Nl(4,"calendarA11y"),Eo(),_s(5," "),Oo(6,"mwl-calendar-event-actions",10),Eo()}if(2&e){var i=t.$implicit,a=Uo(2).validateDrag,r=Uo();rs("cal-draggable",i.draggable),Ao("ngClass",null==i?null:i.cssClass)("dropData",Rl(15,ote,i))("dragAxis",Pl(17,Zee,i.draggable,i.draggable))("validateDrag",a),ma(1),Ao("ngStyle",Rl(20,zee,null==i.color?null:i.color.primary)),ma(2),Ao("event",i)("customTemplate",r.eventTitleTemplate),wo("aria-label",jl(4,12,Pl(22,ste,i,r.locale),"eventDescription")),ma(3),Ao("event",i)("customTemplate",r.eventActionsTemplate)}}var cte=function(e,t){return{date:e,locale:t}};function ute(e,t){if(1&e&&(Io(0,"div",3),Oo(1,"span",4),Nl(2,"calendarA11y"),Oo(3,"span",5),Nl(4,"calendarA11y"),Do(5,lte,7,25,"div",6),Eo()),2&e){var n=Uo(),i=n.events,a=n.trackByEventId,r=Uo();Ao("@collapse",void 0),ma(1),wo("aria-label",jl(2,5,Pl(11,cte,r.date,r.locale),"openDayEventsAlert")),ma(2),wo("aria-label",jl(4,8,Pl(14,cte,r.date,r.locale),"openDayEventsLandmark")),ma(2),Ao("ngForOf",i)("ngForTrackBy",a)}}function dte(e,t){1&e&&Do(0,ute,6,17,"div",2),2&e&&Ao("ngIf",t.isOpen)}function hte(e,t){}var fte,pte,mte,_te,gte=function(e,t,n,i,a){return{events:e,eventClicked:t,isOpen:n,trackByEventId:i,validateDrag:a}},vte=((_te=function e(){_classCallCheck(this,e),this.trackByActionId=function(e,t){return t.id?t.id:t}}).\u0275fac=function(e){return new(e||_te)},_te.\u0275cmp=gt({type:_te,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(e,t){if(1&e&&(Do(0,Ree,1,1,"ng-template",null,0,mc),Do(2,Pee,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",Pl(2,Yee,t.event,t.trackByActionId))}},directives:function(){return[Ud,Ed,Ld,Td,rne,one]},pipes:function(){return[cne]},encapsulation:2}),_te),yte=((mte=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||mte)},mte.\u0275cmp=gt({type:mte,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(e,t){if(1&e&&(Do(0,qee,3,10,"ng-template",null,0,mc),Do(2,Vee,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",Pl(2,Hee,t.event,t.view))}},directives:function(){return[Ud]},pipes:function(){return[ane,cne]},encapsulation:2}),mte),kte=((pte=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||pte)},pte.\u0275cmp=gt({type:pte,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(e,t){if(1&e&&(Do(0,Nee,3,2,"ng-template",null,0,mc),Do(2,Bee,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",Yl(2,jee,t.contents,t.placement,t.event))}},directives:[Ud,Td],encapsulation:2}),pte),bte=((fte=function(){function e(t,n,i,a,r,o){_classCallCheck(this,e),this.elementRef=t,this.injector=n,this.renderer=i,this.viewContainerRef=r,this.document=o,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new T,this.tooltipFactory=a.resolveComponentFactory(kte)}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.tooltipRef&&(e.contents||e.customTemplate||e.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this.hide()}},{key:"onMouseOver",value:function(){var e=this;(null===this.delay?mu("now"):GS(this.delay)).pipe($S(this.cancelTooltipDelay$)).subscribe((function(){e.show()}))}},{key:"onMouseOut",value:function(){this.hide()}},{key:"show",value:function(){var e=this;!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame((function(){e.positionTooltip()})))}},{key:"hide",value:function(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}},{key:"positionTooltip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function(e,t,n,i,a){var r=Array.isArray(n)?n:n.split(Z9),o=function(e){return e.split("-"),[]},s=r.findIndex((function(e){return"auto"===e}));s>=0&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach((function(e){null==r.find((function(t){return-1!==t.search("^"+e)}))&&r.splice(s++,1,e)}));var l,c=t.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";for(var u=!1,d=0,h=r;d<h.length;d++)if(o(l=h[d]),eee.positionElements(e,t,l,i)){u=!0;break}return u||(o(l=r[0]),eee.positionElements(e,t,l,i)),l}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===e.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([].concat(_toConsumableArray(e),[this.tooltipRef.instance.placement])))}}]),e}()).\u0275fac=function(e){return new(e||fte)(Mo(js),Mo(ro),Mo(Gs),Mo(Bs),Mo(ml),Mo(Cu))},fte.\u0275dir=Ct({type:fte,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(e,t){1&e&&Ho("mouseenter",(function(){return t.onMouseOver()}))("mouseleave",(function(){return t.onMouseOut()}))},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[As]}),fte),wte=function e(){_classCallCheck(this,e)},Cte=function(e){return e.Month="month",e.Week="week",e.Day="day",e}({}),Dte=function(e,t){return t.id?t.id:t},Ste=function(e,t){return t.date.toISOString()};function Mte(e,t,n,i){for(var a=0,r=0,o=n<0?e.subDays:e.addDays,s=t;r<=Math.abs(n);){s=o(t,a);var l=e.getDay(s);-1===i.indexOf(l)&&r++,a++}return s}function xte(e){var t=e.x,n=e.y;return Math.abs(t)>1||Math.abs(n)>1}var Tte,Ate,Lte,Ite,Ete,Ote,Rte,Pte,Yte,Fte,qte,Vte,Hte,Nte,Bte,jte,zte,Ute,Wte,Gte,Qte,Kte,$te,Jte=((Ote=function(){function e(t){_classCallCheck(this,e),this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new Gl}return _createClass(e,[{key:"onClick",value:function(){var e={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===Cte.Day?Mte(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===Cte.Week&&this.daysInWeek?Mte(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):e(this.viewDate,1))}}]),e}()).\u0275fac=function(e){return new(e||Ote)(Mo(wte))},Ote.\u0275dir=Ct({type:Ote,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(e,t){1&e&&Ho("click",(function(){return t.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),Ote),Xte=((Ete=function(){function e(t){_classCallCheck(this,e),this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new Gl}return _createClass(e,[{key:"onClick",value:function(){var e={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===Cte.Day?Mte(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===Cte.Week&&this.daysInWeek?Mte(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):e(this.viewDate,1))}}]),e}()).\u0275fac=function(e){return new(e||Ete)(Mo(wte))},Ete.\u0275dir=Ct({type:Ete,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(e,t){1&e&&Ho("click",(function(){return t.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),Ete),Zte=((Ite=function(){function e(t){_classCallCheck(this,e),this.dateAdapter=t,this.viewDateChange=new Gl}return _createClass(e,[{key:"onClick",value:function(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}}]),e}()).\u0275fac=function(e){return new(e||Ite)(Mo(wte))},Ite.\u0275dir=Ct({type:Ite,selectors:[["","mwlCalendarToday",""]],hostBindings:function(e,t){1&e&&Ho("click",(function(){return t.onClick()}))},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),Ite),ene=((Lte=function(){function e(t){_classCallCheck(this,e),this.dateAdapter=t}return _createClass(e,[{key:"monthViewColumnHeader",value:function(e){return dd(e.date,"EEEE",e.locale)}},{key:"monthViewDayNumber",value:function(e){return dd(e.date,"d",e.locale)}},{key:"monthViewTitle",value:function(e){return dd(e.date,"LLLL y",e.locale)}},{key:"weekViewColumnHeader",value:function(e){return dd(e.date,"EEEE",e.locale)}},{key:"weekViewColumnSubHeader",value:function(e){return dd(e.date,"MMM d",e.locale)}},{key:"weekViewTitle",value:function(e){var t=e.date,n=e.locale,i=e.weekStartsOn,a=e.excludeDays,r=e.daysInWeek,o=function(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,r=a?e.startOfDay(t):e.startOfWeek(t,{weekStartsOn:n}),o=e.endOfWeek(t,{weekStartsOn:n});i.indexOf(e.getDay(r))>-1&&r<o;)r=e.addDays(r,1);if(a)return{viewStart:r,viewEnd:e.endOfDay(Mte(e,r,a-1,i))};for(var s=o;i.indexOf(e.getDay(s))>-1&&s>r;)s=e.subDays(s,1);return{viewStart:r,viewEnd:s}}(this.dateAdapter,t,i,a,r),s=o.viewStart,l=o.viewEnd,c=function(e,t){return dd(e,"MMM d"+(t?", yyyy":""),n)};return"".concat(c(s,s.getUTCFullYear()!==l.getUTCFullYear())," - ").concat(c(l,!0))}},{key:"weekViewHour",value:function(e){return dd(e.date,"h a",e.locale)}},{key:"dayViewHour",value:function(e){return dd(e.date,"h a",e.locale)}},{key:"dayViewTitle",value:function(e){return dd(e.date,"EEEE, MMMM d, y",e.locale)}}]),e}()).\u0275fac=function(e){return new(e||Lte)(Xe(wte))},Lte.\u0275prov=fe({token:Lte,factory:Lte.\u0275fac}),Lte),tne=((Ate=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(ene)).\u0275fac=function(e){return bne(e||Ate)},Ate.\u0275prov=fe({token:Ate,factory:Ate.\u0275fac}),Ate),nne=((Tte=function(){function e(t,n){_classCallCheck(this,e),this.dateFormatter=t,this.locale=n}return _createClass(e,[{key:"transform",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.locale,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5?arguments[5]:void 0;if(void 0===this.dateFormatter[t]){var o=Object.getOwnPropertyNames(Object.getPrototypeOf(tne.prototype)).filter((function(e){return"constructor"!==e}));throw new Error("".concat(t," is not a valid date formatter. Can only be one of ").concat(o.join(", ")))}return this.dateFormatter[t]({date:e,locale:n,weekStartsOn:i,excludeDays:a,daysInWeek:r})}}]),e}()).\u0275fac=function(e){return new(e||Tte)(Mo(tne),Mo(Sc))},Tte.\u0275pipe=Dt({name:"calendarDate",type:Tte,pure:!0}),Tte),ine=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"month",value:function(e,t){return e.title}},{key:"monthTooltip",value:function(e,t){return e.title}},{key:"week",value:function(e,t){return e.title}},{key:"weekTooltip",value:function(e,t){return e.title}},{key:"day",value:function(e,t){return e.title}},{key:"dayTooltip",value:function(e,t){return e.title}}]),e}(),ane=((Vte=function(){function e(t){_classCallCheck(this,e),this.calendarEventTitle=t}return _createClass(e,[{key:"transform",value:function(e,t,n){return this.calendarEventTitle[t](n,e)}}]),e}()).\u0275fac=function(e){return new(e||Vte)(Mo(ine))},Vte.\u0275pipe=Dt({name:"calendarEventTitle",type:Vte,pure:!0}),Vte),rne=((qte=function(){function e(t,n,i){_classCallCheck(this,e),this.renderer=t,this.elm=n,this.document=i,this.clickListenerDisabled=!1,this.click=new Gl,this.destroy$=new T}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.clickListenerDisabled||this.listen().pipe($S(this.destroy$)).subscribe((function(t){t.stopPropagation(),e.click.emit(t)}))}},{key:"ngOnDestroy",value:function(){this.destroy$.next()}},{key:"listen",value:function(){var e=this;return new w((function(t){return e.renderer.listen(e.elm.nativeElement,"click",(function(e){t.next(e)}))}))}}]),e}()).\u0275fac=function(e){return new(e||qte)(Mo(Gs),Mo(js),Mo(Cu))},qte.\u0275dir=Ct({type:qte,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),qte),one=((Fte=function(){function e(){_classCallCheck(this,e),this.keydown=new Gl}return _createClass(e,[{key:"onKeyPress",value:function(e){13!==e.keyCode&&13!==e.which&&"Enter"!==e.key||(e.preventDefault(),e.stopPropagation(),this.keydown.emit(e))}}]),e}()).\u0275fac=function(e){return new(e||Fte)},Fte.\u0275dir=Ct({type:Fte,selectors:[["","mwlKeydownEnter",""]],hostBindings:function(e,t){1&e&&Ho("keydown",(function(e){return t.onKeyPress(e)}))},outputs:{keydown:"mwlKeydownEnter"}}),Fte),sne=((Yte=function(){function e(t){_classCallCheck(this,e),this.dateAdapter=t}return _createClass(e,[{key:"getMonthView",value:function(e){return function(e,t){var n=t.events,i=void 0===n?[]:n,a=t.viewDate,r=t.weekStartsOn,o=t.excluded,s=void 0===o?[]:o,l=t.viewStart,c=void 0===l?e.startOfMonth(a):l,u=t.viewEnd,d=void 0===u?e.endOfMonth(a):u,h=t.weekendDays;i||(i=[]);for(var f,p=e.endOfWeek,m=e.differenceInDays,_=e.startOfDay,g=e.addHours,v=e.endOfDay,y=e.isSameMonth,k=e.getDay,b=e.getMonth,w=(0,e.startOfWeek)(c,{weekStartsOn:r}),C=p(d,{weekStartsOn:r}),D=ree(e,{events:i,periodStart:w,periodEnd:C}),S=[],M=function(t){var n;if(f?(n=_(g(f,24)),f.getTime()===n.getTime()&&(n=_(g(f,25))),f=n):n=f=w,!s.some((function(e){return k(n)===e}))){var i=oee(e,{date:n,weekendDays:h}),r=ree(e,{events:D,periodStart:_(n),periodEnd:v(n)});i.inMonth=y(n,a),i.events=r,i.badgeTotal=r.length,S.push(i)}},x=0;x<m(C,w)+1;x++)M();var T=[],A=7-s.length;if(A<7)for(x=0;x<S.length;x+=A){var L=S.slice(x,x+A);L.some((function(e){return b(e.date)===b(a)}))&&(T=T.concat(L))}else T=S;var I=Math.floor(T.length/A),E=[];for(x=0;x<I;x++)E.push(x*A);return{rowOffsets:E,totalDaysVisibleInWeek:A,days:T,period:{start:T[0].date,end:v(T[T.length-1].date),events:D}}}(this.dateAdapter,e)}},{key:"getWeekViewHeader",value:function(e){return see(this.dateAdapter,e)}},{key:"getWeekView",value:function(e){return function(e,t){var n=t.events,i=void 0===n?[]:n,a=t.viewDate,r=t.weekStartsOn,o=t.excluded,s=void 0===o?[]:o,l=t.precision,c=void 0===l?"days":l,u=t.absolutePositionedEvents,d=void 0!==u&&u,h=t.hourSegments,f=t.dayStart,p=t.dayEnd,m=t.weekendDays,_=t.segmentHeight,g=t.viewStart,v=void 0===g?e.startOfWeek(a,{weekStartsOn:r}):g,y=t.viewEnd,k=void 0===y?e.endOfWeek(a,{weekStartsOn:r}):y;i||(i=[]);var b=e.endOfDay,w=ree(e,{events:i,periodStart:v=(0,e.startOfDay)(v),periodEnd:k=b(k)}),C=see(e,{viewDate:a,weekStartsOn:r,excluded:s,weekendDays:m,viewStart:v,viewEnd:k});return{allDayEventRows:lee(e,{events:i,excluded:s,precision:c,absolutePositionedEvents:d,viewStart:v,viewEnd:k,eventsInPeriod:w}),period:{events:w,start:C[0].date,end:b(C[C.length-1].date)},hourColumns:cee(e,{events:i,viewDate:a,hourSegments:h,dayStart:f,dayEnd:p,weekStartsOn:r,excluded:s,weekendDays:m,segmentHeight:_,viewStart:v,viewEnd:k})}}(this.dateAdapter,e)}}]),e}()).\u0275fac=function(e){return new(e||Yte)(Xe(wte))},Yte.\u0275prov=fe({token:Yte,factory:Yte.\u0275fac}),Yte),lne=((Pte=function(){function e(t){_classCallCheck(this,e),this.i18nPlural=t}return _createClass(e,[{key:"monthCell",value:function(e){var t=e.day,n=e.locale;return t.badgeTotal>0?"\n        ".concat(dd(t.date,"EEEE MMMM d",n),",\n        ").concat(this.i18nPlural.transform(t.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"}),",\n         click to expand\n      "):"".concat(dd(t.date,"EEEE MMMM d",n))}},{key:"openDayEventsLandmark",value:function(e){var t=e.date,n=e.locale;return"\n      Beginning of expanded view for ".concat(dd(t,"EEEE MMMM dd",n),"\n    ")}},{key:"openDayEventsAlert",value:function(e){var t=e.date,n=e.locale;return"".concat(dd(t,"EEEE MMMM dd",n)," expanded")}},{key:"eventDescription",value:function(e){var t=e.event,n=e.locale;if(!0===t.allDay)return this.allDayEventDescription({event:t,locale:n});var i="\n      ".concat(dd(t.start,"EEEE MMMM dd",n),",\n      ").concat(t.title,", from ").concat(dd(t.start,"hh:mm a",n),"\n    ");return t.end?i+" to ".concat(dd(t.end,"hh:mm a",n)):i}},{key:"allDayEventDescription",value:function(e){var t=e.event,n=e.locale,i="\n      ".concat(t.title,", event spans multiple days:\n      start time ").concat(dd(t.start,"MMMM dd hh:mm a",n),"\n    ");return t.end?i+", stop time ".concat(dd(t.end,"MMMM d hh:mm a",n)):i+", no stop time"}},{key:"actionButtonLabel",value:function(e){return e.action.a11yLabel}},{key:"monthCellTabIndex",value:function(){return 0}},{key:"hideMonthCellEvents",value:function(){return!0}},{key:"hideEventTitle",value:function(){return!0}},{key:"hideWeekHourSegment",value:function(){return!0}},{key:"hideDayHourSegment",value:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||Pte)(Xe(lh))},Pte.\u0275prov=fe({token:Pte,factory:Pte.\u0275fac}),Pte),cne=((Rte=function(){function e(t,n){_classCallCheck(this,e),this.calendarA11y=t,this.locale=n}return _createClass(e,[{key:"transform",value:function(e,t){if(e.locale=e.locale||this.locale,void 0===this.calendarA11y[t]){var n=Object.getOwnPropertyNames(Object.getPrototypeOf(lne.prototype)).filter((function(e){return"constructor"!==e}));throw new Error("".concat(t," is not a valid a11y method. Can only be one of ").concat(n.join(", ")))}return this.calendarA11y[t](e)}}]),e}()).\u0275fac=function(e){return new(e||Rte)(Mo(lne),Mo(Sc))},Rte.\u0275pipe=Dt({name:"calendarA11y",type:Rte,pure:!0}),Rte),une=function(e){return e.Drag="drag",e.Drop="drop",e.Resize="resize",e}({}),dne=((zte=Hte=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:Hte,providers:[e,t.eventTitleFormatter||ine,t.dateFormatter||tne,t.utils||sne,t.a11y||lne]}}}]),e}()).\u0275mod=bt({type:zte}),zte.\u0275inj=me({factory:function(e){return new(e||zte)},providers:[lh],imports:[[uh]]}),zte),hne=((jte=function(){function e(t,n,i,a){var r=this;_classCallCheck(this,e),this.cdr=t,this.utils=n,this.dateAdapter=a,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new Gl,this.dayClicked=new Gl,this.eventClicked=new Gl,this.columnHeaderClicked=new Gl,this.eventTimesChanged=new Gl,this.trackByRowOffset=function(e,t){return r.view.days.slice(t,r.view.totalDaysVisibleInWeek).map((function(e){return e.date.toISOString()})).join("-")},this.trackByDate=function(e,t){return t.date.toISOString()},this.locale=i}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.refresh&&(this.refreshSubscription=this.refresh.subscribe((function(){e.refreshAll(),e.cdr.markForCheck()})))}},{key:"ngOnChanges",value:function(e){var t=e.viewDate||e.excludeDays||e.weekendDays,n=e.viewDate||e.events||e.excludeDays||e.weekendDays;t&&this.refreshHeader(),e.events&&function(e,t){function n(e,n){t(e,n)}Array.isArray(e)?e.forEach((function(e){e.start?e.start instanceof Date||n(_ee.StartPropertyNotDate,e):n(_ee.StartPropertyMissing,e),e.end&&(e.end instanceof Date||n(_ee.EndPropertyNotDate,e),e.start>e.end&&n(_ee.EndsBeforeStart,e))})):t(_ee.NotArray,e)}(this.events,(function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=console).warn.apply(e,["angular-calendar"].concat(n))})),n&&this.refreshBody(),(t||n)&&this.emitBeforeViewRender(),(e.activeDayIsOpen||e.viewDate||e.events||e.excludeDays||e.activeDay)&&this.checkActiveDayIsOpen()}},{key:"ngOnDestroy",value:function(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}},{key:"toggleDayHighlight",value:function(e,t){this.view.days.forEach((function(n){t&&n.events.indexOf(e)>-1?n.backgroundColor=e.color&&e.color.secondary||"#D1E8FF":delete n.backgroundColor}))}},{key:"eventDropped",value:function(e,t,n){if(e!==n){var i,a=this.dateAdapter.getYear(e.date),r=this.dateAdapter.getMonth(e.date),o=this.dateAdapter.getDate(e.date),s=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(t.start,a),r),o);if(t.end){var l=this.dateAdapter.differenceInSeconds(s,t.start);i=this.dateAdapter.addSeconds(t.end,l)}this.eventTimesChanged.emit({event:t,newStart:s,newEnd:i,day:e,type:une.Drop})}}},{key:"refreshHeader",value:function(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}},{key:"refreshBody",value:function(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}},{key:"checkActiveDayIsOpen",value:function(){var e=this;if(!0===this.activeDayIsOpen){var t=this.activeDay||this.viewDate;this.openDay=this.view.days.find((function(n){return e.dateAdapter.isSameDay(n.date,t)}));var n=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(n/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}},{key:"refreshAll",value:function(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}},{key:"emitBeforeViewRender",value:function(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}}]),e}()).\u0275fac=function(e){return new(e||jte)(Mo(jr),Mo(sne),Mo(Sc),Mo(wte))},jte.\u0275cmp=gt({type:jte,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[As],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"cal-cell-row"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"mwl-calendar-month-view-header",1),Ho("columnHeaderClicked",(function(e){return t.columnHeaderClicked.emit(e)})),Eo(),Io(2,"div",2),Do(3,Wee,5,13,"div",3),Eo(),Eo()),2&e&&(ma(1),Ao("days",t.columnHeaders)("locale",t.locale)("customTemplate",t.headerTemplate),ma(2),Ao("ngForOf",t.view.rowOffsets)("ngForTrackBy",t.trackByRowOffset))},directives:function(){return[fne,Ld,_ne,Tee,pne,Td,zd,rne,one]},pipes:function(){return[ch,cne]},encapsulation:2}),jte),fne=((Bte=function e(){_classCallCheck(this,e),this.columnHeaderClicked=new Gl,this.trackByWeekDayHeaderDate=Ste}).\u0275fac=function(e){return new(e||Bte)},Bte.\u0275cmp=gt({type:Bte,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(e,t){if(1&e&&(Do(0,Qee,2,2,"ng-template",null,0,mc),Do(2,Kee,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",Yl(2,$ee,t.days,t.locale,t.trackByWeekDayHeaderDate))}},directives:[Ud,Ld,Td],pipes:[nne],encapsulation:2}),Bte),pne=((Nte=function e(){_classCallCheck(this,e),this.highlightDay=new Gl,this.unhighlightDay=new Gl,this.eventClicked=new Gl,this.trackByEventId=Dte,this.validateDrag=xte}).\u0275fac=function(e){return new(e||Nte)},Nte.\u0275cmp=gt({type:Nte,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(e,t){2&e&&rs("cal-past",t.day.isPast)("cal-today",t.day.isToday)("cal-future",t.day.isFuture)("cal-weekend",t.day.isWeekend)("cal-in-month",t.day.inMonth)("cal-out-month",!t.day.inMonth)("cal-has-events",t.day.events.length>0)("cal-open",t.day===t.openDay)("cal-event-highlight",!!t.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","mouseenter","mouseleave","mwlClick"]],template:function(e,t){if(1&e&&(Do(0,ite,8,14,"ng-template",null,0,mc),Do(2,ate,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",(i=rte,a=[t.day,t.openDay,t.locale,t.tooltipPlacement,t.highlightDay,t.unhighlightDay,t.eventClicked,t.tooltipTemplate,t.tooltipAppendToBody,t.tooltipDelay,t.trackByEventId,t.validateDrag],function(e,t,n,i,a,r){for(var o=t+2,s=!1,l=0;l<a.length;l++)ko(e,o++,a[l])&&(s=!0);return s?vo(e,o,i.apply(void 0,a)):Fl(e,o)}(Xt(),ln(),0,i,a)))}var i,a},directives:[Ud,Ed,Ld,Cee,zd,Td,bte,rne],pipes:[cne,nne,ane],encapsulation:2}),Nte),mne=Nf("collapse",[Wf("void",Uf({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),Wf("*",Uf({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),Qf("* => void",Bf("150ms ease-out")),Qf("void => *",Bf("150ms ease-in"))]),_ne=((Qte=function e(){_classCallCheck(this,e),this.isOpen=!1,this.eventClicked=new Gl,this.trackByEventId=Dte,this.validateDrag=xte}).\u0275fac=function(e){return new(e||Qte)},Qte.\u0275cmp=gt({type:Qte,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(e,t){if(1&e&&(Do(0,dte,1,1,"ng-template",null,0,mc),Do(2,hte,0,0,"ng-template",1)),2&e){var n=So(1);ma(2),Ao("ngTemplateOutlet",t.customTemplate||n)("ngTemplateOutletContext",(i=gte,a=t.events,r=t.eventClicked,o=t.isOpen,s=t.trackByEventId,l=t.validateDrag,c=ln()+2,u=Xt(),d=function(e,t,n,i,a,r){var o=bo(e,t,n,i);return bo(e,t+2,a,r)||o}(u,c,a,r,o,s),ko(u,c+4,l)||d?vo(u,c+5,i(a,r,o,s,l)):yo(u,c+5)))}var i,a,r,o,s,l,c,u,d},directives:[Ud,Ed,Ld,Cee,Td,zd,yte,rne,one,vte],pipes:[cne],encapsulation:2,data:{animation:[mne]}}),Qte),gne=((Gte=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Gte}),Gte.\u0275inj=me({factory:function(e){return new(e||Gte)},imports:[[uh,Aee,dne],Aee]}),Gte),vne=((Wte=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Wte}),Wte.\u0275inj=me({factory:function(e){return new(e||Wte)},imports:[[uh,Lee,Aee,dne],Lee,Aee]}),Wte),yne=((Ute=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Ute}),Ute.\u0275inj=me({factory:function(e){return new(e||Ute)},imports:[[uh,dne,vne]]}),Ute),kne=(($te=Kte=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:Kte,providers:[e,t.eventTitleFormatter||ine,t.dateFormatter||tne,t.utils||sne,t.a11y||lne]}}}]),e}()).\u0275mod=bt({type:$te}),$te.\u0275inj=me({factory:function(e){return new(e||$te)},imports:[[dne,gne,vne,yne],dne,gne,vne,yne]}),$te),bne=ci(tne);function wne(e,t){1&e&&(Ro(0),Io(1,"div"),Io(2,"span"),Io(3,"b"),_s(4,"All Blocked"),Eo(),Eo(),Eo(),Po())}function Cne(e,t){1&e&&(Ro(0),Io(1,"div"),Io(2,"span"),Io(3,"b"),_s(4,"Car Park Blocked"),Eo(),Eo(),Eo(),Po())}var Dne=function(e){return{"background-color":e}};function Sne(e,t){if(1&e&&(Io(0,"div",12),Io(1,"div"),Io(2,"span",13),_s(3),Nl(4,"calendarDate"),Eo(),Io(5,"div",14),Do(6,wne,5,0,"ng-container",10),Do(7,Cne,5,0,"ng-container",10),Eo(),Eo(),Eo(),Io(8,"div",15),Io(9,"div",16),_s(10),Eo(),Io(11,"div",17),_s(12),Eo(),Eo()),2&e){var n=t.day,i=t.locale,a=Uo();Ao("ngStyle",Rl(10,Dne,a.selectedDate&&n.date.getFullYear()===a.selectedDate.getFullYear()&&n.date.getMonth()===a.selectedDate.getMonth()&&n.date.getDate()===a.selectedDate.getDate()?"yellow":"transparent")),ma(3),gs(zl(4,6,n.date,"monthViewDayNumber",i)),ma(3),Ao("ngIf",a.isWholeDayBlock(n.events)),ma(1),Ao("ngIf",a.isCarParkBlock(n.events)),ma(3),gs(a.getInoutTraffic(n.events)),ma(2),gs(a.getCarParkingTraffic(n.events))}}function Mne(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",18),Ho("viewDateChange",(function(e){return en(n),Uo().viewDate=e}))("viewDateChange",(function(){return en(n),Uo().clearSelection()})),_s(2," Previous "),Eo(),Po()}if(2&e){var i=Uo();ma(1),Ao("view",i.view)("viewDate",i.viewDate)}}function xne(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",19),Ho("viewDateChange",(function(e){return en(n),Uo().viewDate=e}))("viewDateChange",(function(){return en(n),Uo().clearSelection()})),_s(2," Next "),Eo(),Po()}if(2&e){var i=Uo();ma(1),Ao("view",i.view)("viewDate",i.viewDate)}}var Tne,Ane={old:{primary:"#828282",secondary:"#cacaca"},new:{primary:"#922f38",secondary:"#dca889"},transparent:{primary:"#000000",secondary:"#000000"}},Lne=((Tne=function(){function e(){_classCallCheck(this,e),this.view=Cte.Month,this.viewDate=new Date,this.events=[],this.contraints=[],this.inoutEvents=[],this.carParkingEvents=[],this.onDateChanged=new Gl,this.minDate=null,this.maxDate=null,this.selectedDate=null}return _createClass(e,[{key:"onDayClicked",value:function(e){var t=e.date,n=e.events;this.selectedDate=t,this.selectedEvents=n,this.onDateChanged.emit(!0)}},{key:"convertAsEvents",value:function(e){return e?e.map((function(e){return{title:"Disabled",start:new Date(e.at),end:new Date(e.at),color:Ane.new,draggable:!1,allDay:!0,resizable:{beforeStart:!1,afterEnd:!1},meta:{constraint:e,inputTraffic:null,carParkingTraffic:null}}})):[]}},{key:"setMinDate",value:function(e){this.minDate=e}},{key:"setMaxDate",value:function(e){this.maxDate=e}},{key:"refresh",value:function(){this.events=this.contraints.concat(this.inoutEvents).concat(this.carParkingEvents)}},{key:"addContraints",value:function(e){this.contraints=this.contraints.concat(this.convertAsEvents(e)),this.refresh()}},{key:"deleteContraint",value:function(e){this.contraints=this.contraints.filter((function(t){return t.meta.constraint!==e})),this.refresh()}},{key:"clearConstraints",value:function(){this.contraints=[],this.inoutEvents=[],this.carParkingEvents=[],this.refresh()}},{key:"getSelectedDate",value:function(){return this.selectedDate}},{key:"getSelectedConstraints",value:function(){return this.selectedEvents?this.selectedEvents.filter((function(e){return e.meta.constraint})).map((function(e){return e.meta.constraint})):[]}},{key:"clearSelection",value:function(){this.selectedDate=null,this.onDateChanged.emit(!0)}},{key:"convertTrafficAsEvent",value:function(e){return e?e.map((function(e){return{title:e.vehicleCount.toString(),start:new Date(e.date),end:new Date(e.date),color:Ane.transparent,draggable:!1,allDay:!0,resizable:{beforeStart:!1,afterEnd:!1},meta:{constraint:null,inputTraffic:e.type===t7.Type.IN_OUT?e:null,carParkingTraffic:e.type===t7.Type.CAR_PARK?e:null}}})):[]}},{key:"addInoutTraffic",value:function(e){this.inoutEvents=this.inoutEvents.concat(this.convertTrafficAsEvent(e)),this.refresh()}},{key:"addCarParkingTraffic",value:function(e){this.carParkingEvents=this.carParkingEvents.concat(this.convertTrafficAsEvent(e)),this.refresh()}},{key:"getInoutTraffic",value:function(e){if(e&&e.length>0){var t=e.find((function(e){return e.meta.inputTraffic}));if(t)return t.meta.inputTraffic.vehicleCount}return 0}},{key:"getCarParkingTraffic",value:function(e){if(e&&e.length>0){var t=e.find((function(e){return e.meta.carParkingTraffic}));if(t)return t.meta.carParkingTraffic.vehicleCount}return 0}},{key:"isWholeDayBlock",value:function(e){return!!(e&&e.length>0&&e.find((function(e){return e.meta.constraint&&e.meta.constraint.type===t7.BlockType.WHOLE_DAY})))}},{key:"isCarParkBlock",value:function(e){return!!(e&&e.length>0&&e.find((function(e){return e.meta.constraint&&e.meta.constraint.type===t7.BlockType.CAR_PARK})))}}]),e}()).\u0275fac=function(e){return new(e||Tne)},Tne.\u0275cmp=gt({type:Tne,selectors:[["app-va-vehicle-constraint-calendar"]],outputs:{onDateChanged:"onDateChanged"},decls:27,vars:11,consts:[[3,"viewDate","events","cellTemplate","dayClicked"],["customCellTemplate",""],[1,"tips-container","tips-container-first"],[1,"rect-inout","tips"],[1,"tips-text","tips"],[1,"rect-carpark","tips"],[1,"tips-container"],[1,"dot-today","tips"],[1,"dot-selected","tips"],[1,"calendar-action-bar"],[4,"ngIf"],["mat-raised-button","","mwlCalendarToday","",3,"viewDate","viewDateChange"],[1,"cal-cell-top",3,"ngStyle"],[1,"cal-day-number"],[1,"cal-title"],[1,"cal-events","polyu-cal-events"],[1,"cal-cell-footer","cal-cell-footer-left"],[1,"cal-cell-footer","cal-cell-footer-right"],["mat-raised-button","","mwlCalendarPreviousView","",3,"view","viewDate","viewDateChange"],["mat-raised-button","","mwlCalendarNextView","",3,"view","viewDate","viewDateChange"]],template:function(e,t){if(1&e&&(Io(0,"h4"),Io(1,"b"),_s(2),Nl(3,"calendarDate"),Eo(),Eo(),Io(4,"mwl-calendar-month-view",0),Ho("dayClicked",(function(e){return t.onDayClicked(e.day)})),Eo(),Do(5,Sne,13,12,"ng-template",null,1,mc),Io(7,"div",2),Oo(8,"span",3),Io(9,"span",4),_s(10,"No. of type 1 vehicles"),Eo(),Oo(11,"span",5),Io(12,"span",4),_s(13,"No. of type 2 (Car Park) vehicles"),Eo(),Eo(),Io(14,"div",6),Oo(15,"span",7),Io(16,"span",4),_s(17,"Today"),Eo(),Oo(18,"span",8),Io(19,"span",4),_s(20,"Selected Date"),Eo(),Eo(),Io(21,"div",9),Io(22,"div"),Do(23,Mne,3,2,"ng-container",10),Io(24,"button",11),Ho("viewDateChange",(function(e){return t.viewDate=e}))("viewDateChange",(function(){return t.clearSelection()})),_s(25," Today "),Eo(),Do(26,xne,3,2,"ng-container",10),Eo(),Eo()),2&e){var n=So(6);ma(2),gs(zl(3,7,t.viewDate,t.view+"ViewTitle","en")),ma(2),Ao("viewDate",t.viewDate)("events",t.events)("cellTemplate",n),ma(19),Ao("ngIf",null===t.minDate||t.minDate.getTime()<t.viewDate.getTime()),ma(1),Ao("viewDate",t.viewDate),ma(2),Ao("ngIf",null===t.maxDate||t.maxDate.getTime()>t.viewDate.getTime())}},directives:[hne,Ed,bS,Zte,zd,Jte,Xte],pipes:[nne],styles:[".calendar-action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:1em;margin-right:10px}.cal-cell-footer[_ngcontent-%COMP%]{width:50%;float:left;text-align:center;font-size:.9em}.cal-cell-footer-left[_ngcontent-%COMP%]{background-color:#caddfc}.cal-cell-footer-right[_ngcontent-%COMP%]{background-color:#94b7f2}.cal-title[_ngcontent-%COMP%]{padding:15px 0 0 15px;font-size:.75em}.cal-day-selected[_ngcontent-%COMP%]{background-color:red!important}.cal-day-disabled[_ngcontent-%COMP%]{background-color:#828282;line-height:0;margin:0}.polyu-cal-events[_ngcontent-%COMP%]{line-height:normal}.cal-day-hints[_ngcontent-%COMP%]{color:#fff;display:table;margin:auto;font-size:.7em}.tips-container-first[_ngcontent-%COMP%]{margin:30px 0 0}.tips-container[_ngcontent-%COMP%]{padding:10px;display:table}.tips-container[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.tips-container[_ngcontent-%COMP%]   .tips-text[_ngcontent-%COMP%]{padding:0 5px}.tips-container[_ngcontent-%COMP%]   .dot-today[_ngcontent-%COMP%]{background-color:#e8fde7}.tips-container[_ngcontent-%COMP%]   .dot-selected[_ngcontent-%COMP%], .tips-container[_ngcontent-%COMP%]   .dot-today[_ngcontent-%COMP%]{height:25px;width:25px;border-radius:50%;display:inline-block}.tips-container[_ngcontent-%COMP%]   .dot-selected[_ngcontent-%COMP%]{background-color:#ff0}.tips-container[_ngcontent-%COMP%]   .rect-inout[_ngcontent-%COMP%]{background-color:#caddfc}.tips-container[_ngcontent-%COMP%]   .rect-carpark[_ngcontent-%COMP%], .tips-container[_ngcontent-%COMP%]   .rect-inout[_ngcontent-%COMP%]{height:25px;width:25px;border-radius:0;display:inline-block}.tips-container[_ngcontent-%COMP%]   .rect-carpark[_ngcontent-%COMP%]{background-color:#94b7f2}"]}),Tne),Ine=["calendar"];function Ene(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function One(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",7),Ho("click",(function(){return en(n),Uo().markBlockedCarPark()})),_s(2,"Block Car Park"),Eo(),Po()}}function Rne(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",7),Ho("click",(function(){return en(n),Uo().markBlockedAll()})),_s(2,"Block All"),Eo(),Po()}}function Pne(e,t){if(1&e){var n=Fo();Ro(0),Io(1,"button",7),Ho("click",(function(){return en(n),Uo().markUnblocked()})),_s(2,"Unblock"),Eo(),Po()}}var Yne,Fne=((Yne=function(){function e(t,n,i,a){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._location=a,this.isInAction=!0,this.isLoading=!1,this.isBlockAllVisible=!1,this.isBlockCarParkVisible=!1,this.isUnblockVisible=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=new Date;e.setMonth(e.getMonth()-3),this._calendarComponent.setMinDate(e);var t=new Date;t.setMonth(t.getMonth()+12),this._calendarComponent.setMaxDate(t),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog,t=this._applicationService.currentUser.roles;t&&t.indexOf("ROLE_VA_ADMIN")>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){this.isLoading=!0;var e=this,t=new r7;t.from=new Date,t.from.setMonth(t.from.getMonth()-6),t.to=new Date,t.to.setMonth(t.to.getMonth()+15),t.status=t7.Status.BLOCKED;var n=new o7;n.type=t7.Type.IN_OUT,n.from=new Date,n.from.setMonth(n.from.getMonth()-6),n.to=new Date,n.to.setMonth(n.to.getMonth()+15);var i=new o7;i.type=t7.Type.CAR_PARK,i.from=new Date,i.from.setMonth(i.from.getMonth()-6),i.to=new Date,i.to.setMonth(i.to.getMonth()+15),m_(GS(500),this._applicationService.listVehicleAccessConstraints(t),this._applicationService.getVechicleTrafficInfo(n),this._applicationService.getVechicleTrafficInfo(i)).subscribe((function(t){t[1]?(e._calendarComponent.addContraints(t[1]),e._calendarComponent.addInoutTraffic(t[2]),e._calendarComponent.addCarParkingTraffic(t[3])):e._calendarComponent.clearConstraints(),e.isLoading=!1}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to load vehicle access schedule.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}},{key:"markBlockedAll",value:function(){if(this._calendarComponent.getSelectedDate()){var e=this;this.isLoading=!0;var t=new i7;t.at=mS.ToUTCDate(this._calendarComponent.getSelectedDate()),t.status=t7.Status.BLOCKED,t.type=t7.BlockType.WHOLE_DAY,m_(GS(700),this._applicationService.addVehicleAccessConstraint(t)).subscribe((function(t){if(t[1]){var n=[];n.push(t[1]),e._calendarComponent.addContraints(n),e._calendarComponent.clearSelection(),e.isUnblockVisible=!0,e.isBlockCarParkVisible=!1,e.isBlockAllVisible=!1}e.isLoading=!1}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Unable to load vehicle access schedule.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}}},{key:"markBlockedCarPark",value:function(){if(this._calendarComponent.getSelectedDate()){var e=this;this.isLoading=!0;var t=new i7;t.at=mS.ToUTCDate(this._calendarComponent.getSelectedDate()),t.status=t7.Status.BLOCKED,t.type=t7.BlockType.CAR_PARK,m_(GS(700),this._applicationService.addVehicleAccessConstraint(t)).subscribe((function(t){if(t[1]){var n=[];n.push(t[1]),e._calendarComponent.addContraints(n),e._calendarComponent.clearSelection(),e.isUnblockVisible=!0,e.isBlockCarParkVisible=!1,e.isBlockAllVisible=!1}e.isLoading=!1}),(function(t){e.isLoading=!1,e._snackBar.open(t&&t.error&&t.error.errors.length>0?t.error.errors[0]:"Fail to block vehicle access. Please try again later.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T)}))}}},{key:"markUnblocked",value:function(){var e=this._calendarComponent.getSelectedConstraints();if(e&&e.length>0){this.isLoading=!0;var t=e[0],n=this;m_(GS(700),this._applicationService.deleteVehicleAccessConstraint(t.constraintId)).subscribe((function(e){e[1]&&(n._calendarComponent.deleteContraint(t),n._calendarComponent.clearSelection(),n.isBlockAllVisible=!0,n.isBlockCarParkVisible=!0,n.isUnblockVisible=!1),n.isLoading=!1}),(function(e){n.isLoading=!1,n._snackBar.open(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Fail to unblock vehicle access. Please try again later.",null,{duration:4e3}),e&&401===e.status&&n._dialog.open(_T)}))}}},{key:"back",value:function(){this._location.back()}},{key:"onDateChanged",value:function(){var e=this._calendarComponent.getSelectedConstraints(),t=e.find((function(e){return e.type===t7.BlockType.WHOLE_DAY})),n=e.find((function(e){return e.type===t7.BlockType.CAR_PARK}));t||n?(this.isUnblockVisible=!0,this.isBlockAllVisible=!1,this.isBlockCarParkVisible=!1):this._calendarComponent.getSelectedDate()?(this.isBlockAllVisible=!0,this.isBlockCarParkVisible=!0,this.isUnblockVisible=!1):(this.isBlockAllVisible=!1,this.isBlockCarParkVisible=!1,this.isUnblockVisible=!1)}}]),e}()).\u0275fac=function(e){return new(e||Yne)(Mo(_S),Mo(EY),Mo(Bx),Mo(ju))},Yne.\u0275cmp=gt({type:Yne,selectors:[["app-va-vehicle-constraint-page"]],viewQuery:function(e,t){var n;1&e&&rc(Ine,!0),2&e&&ac(n=dc())&&(t._calendarComponent=n.first)},decls:16,vars:5,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-page-headline"],[1,"page-container",3,"hidden"],[3,"onDateChanged"],["calendar",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,Ene,2,0,"app-overlay",1),Io(2,"h4",2),_s(3,"VRS - Block Vehicle Card Park Access"),Eo(),Io(4,"h5"),_s(5,"For inquiry, please contact FMO Help Desk at ext. 7777."),Eo(),Io(6,"div",3),Io(7,"app-va-vehicle-constraint-calendar",4,5),Ho("onDateChanged",(function(){return t.onDateChanged()})),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Io(12,"div"),Do(13,One,3,0,"ng-container",1),Do(14,Rne,3,0,"ng-container",1),Do(15,Pne,3,0,"ng-container",1),Eo(),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(5),Ao("hidden",!t.isInAction),ma(7),Ao("ngIf",t.isBlockCarParkVisible),ma(1),Ao("ngIf",t.isBlockAllVisible),ma(1),Ao("ngIf",t.isUnblockVisible))},directives:[Ed,Lne,bS,tV,nV],styles:[".polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}"]}),Yne),qne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchRoles(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj);function Vne(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}function Hne(e,t){if(1&e&&(Io(0,"mat-option",9),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.value),ma(1),gs(n.description)}}function Nne(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}function Bne(e,t){if(1&e&&(Io(0,"mat-option",9),_s(1),Eo()),2&e){var n=t.$implicit;Ao("value",n.deptAbbr),ma(1),gs(n.deptAbbr)}}function jne(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}var zne,Une,Wne=((Une=function(){function e(t,n,i){_classCallCheck(this,e),this._formBuilder=t,this._cd=n,this._renderer=i,this._form=this._generateDataForm(this._formBuilder),this.departmentList=[],this.isDepartmentVisible=!1,this.userTypeList=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=this;this._form.get("userType").valueChanges.subscribe({next:function(n){"deptadmin"===n?(t._form.get("department").setValue(null),t._form.get("department").setValidators([N_.required,N_.maxLength(256)]),t._form.get("department").updateValueAndValidity(),e.isDepartmentVisible=!0):(t._form.get("department").setValue(null),t._form.get("department").clearValidators(),t._form.get("department").updateValueAndValidity(),e.isDepartmentVisible=!1)}})}},{key:"_generateDataForm",value:function(e){return e.group({roleId:[""],netid:[""],userType:["",[N_.required,N_.maxLength(256)]],department:["",[N_.required]]})}},{key:"setRoleOwners",value:function(e){this.userTypeList=dS.UserType.filter((function(t){var n=t.owners.filter((function(t){return e.indexOf(t)>=0}));return!!(n&&n.length>0)}))}},{key:"setDepartmentList",value:function(e){this.departmentList=e}},{key:"evalInput",value:function(){return{roleId:this._form.get("roleId").value?this._form.get("roleId").value:0,netid:this._form.get("netid").value?this._form.get("netid").value:null,userType:this._form.get("userType").value?this._form.get("userType").value:null,department:this._form.get("department").value?this._form.get("department").value:null}}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"clear",value:function(){this._form=this._generateDataForm(this._formBuilder),this._form.setValue({roleId:null,netid:null,userType:null,department:null})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||Une)(Mo(tv),Mo(jr),Mo(Gs))},Une.\u0275cmp=gt({type:Une,selectors:[["app-management-role-input"]],features:[Vs([{provide:b3,useClass:u4},{provide:w3,useValue:n4}])],decls:22,vars:10,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3","no-top-padding"],["appearance","standard"],["matInput","","required","",3,"formControl"],[4,"ngIf"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[1,"polyu-grid-cell-3","no-top-padding",3,"hidden"],[3,"value"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Net ID"),Eo(),Oo(6,"input",4),Do(7,Vne,2,0,"mat-error",5),Eo(),Eo(),Io(8,"div",2),Io(9,"mat-form-field",3),Io(10,"mat-label"),_s(11,"User Type"),Eo(),Io(12,"mat-select",6),Do(13,Hne,2,2,"mat-option",7),Eo(),Do(14,Nne,2,0,"mat-error",5),Eo(),Eo(),Io(15,"div",8),Io(16,"mat-form-field",3),Io(17,"mat-label"),_s(18,"Department"),Eo(),Io(19,"mat-select",6),Do(20,Bne,2,2,"mat-option",7),Eo(),Do(21,jne,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.netid),ma(1),Ao("ngIf",t.form.controls.netid.hasError("required")),ma(5),Ao("formControl",t.form.controls.userType),ma(1),Ao("ngForOf",t.userTypeList),ma(1),Ao("ngIf",t.form.controls.userType.hasError("required")),ma(1),Ao("hidden",!t.isDepartmentVisible),ma(4),Ao("formControl",t.form.controls.department),ma(1),Ao("ngForOf",t.departmentList),ma(1),Ao("ngIf",t.form.controls.department.hasError("required")))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,lP,Ld,aI,CD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.time-picker-icon[_ngcontent-%COMP%]{cursor:pointer}"]}),Une),Gne=((zne=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){switch(e){case pu.roles.deptAdmin:return"VRS-MA Department Admin";case pu.roles.fmoAdmin:return"VRS FMO Admin";case pu.roles.guestAccessCS:return"VRS-GA CS";case pu.roles.guestAccessStaffApprover:return"VRS-GA Staff Approver";case pu.roles.guestAccessStudentApprover:return"VRS-GA Student Approver";case pu.roles.guestAccessUserStaff:return"VRS-GA User (Staff)";case pu.roles.guestAccessUserStudent:return"VRS-GA User (Student)";case pu.roles.managerDeptRoleMgr:return"VRS Role Admin (VRS-MA Dept Admin)";case pu.roles.managerFMORoleMgr:return"VRS Role Admin (VRS FMO Admin)";case pu.roles.multipleAccessUser:return"VRS-MA User";case pu.roles.systemRoleAdmin:return"VRS Role Admin";case pu.roles.vehicleAccessAdmin:return"VRS-VA Admin";case pu.roles.vehicleAccessPremiumUser:return"VRS-VA Premium User";case pu.roles.vehicleAccessUser:return"VRS-VA User";case pu.roles.departmentListAdmin:return"VRS Department List Admin"}return"??2?"}}]),e}()).\u0275fac=function(e){return new(e||zne)},zne.\u0275pipe=Dt({name:"userTypePipe",type:zne,pure:!0}),zne),Qne=["errorComponent"];function Kne(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,12),Eo())}function $ne(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function Jne(e,t){1&e&&(Io(0,"th",13),_s(1," Net ID "),Eo())}function Xne(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.netid," ")}}function Zne(e,t){1&e&&(Io(0,"th",13),_s(1,"User Type"),Eo())}function eie(e,t){if(1&e&&(Io(0,"td",14),_s(1),Nl(2,"userTypePipe"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.userType)," ")}}function tie(e,t){1&e&&(Io(0,"th",13),_s(1," Department"),Eo())}function nie(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.department," ")}}function iie(e,t){1&e&&Oo(0,"th",13)}function aie(e,t){if(1&e){var n=Fo();Io(0,"td",14),Io(1,"div",15),Io(2,"button",16),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDeleteBtnClicked(e,i)})),_s(3,"Delete"),Eo(),Eo(),Eo()}}function rie(e,t){1&e&&Oo(0,"tr",17)}function oie(e,t){1&e&&Oo(0,"tr",18)}var sie,lie,cie=((lie=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["netid","userType","department","action"],this.onDeleted=new Gl,this.onDataLoaded=new Gl,this._dataSource=null}return _createClass(e,[{key:"ngOnInit",value:function(){null!=this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"clear",value:function(){this._dataSource.clear()}},{key:"onDeleteBtnClicked",value:function(e,t){this.onDeleted.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||lie)(Mo(jr))},lie.\u0275cmp=gt({type:lie,selectors:[["app-management-role-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(Qne,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{onDeleted:"onDeleted",onDataLoaded:"onDataLoaded"},decls:21,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","netid"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","userType"],["matColumnDef","department"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"table-action"],["mat-raised-button","","onclick","this.blur()",1,"action-btn",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,Kne,3,0,"div",0),Io(1,"div"),Do(2,$ne,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,Jne,2,0,"th",4),Do(8,Xne,2,1,"td",5),Po(),Ro(9,6),Do(10,Zne,2,0,"th",4),Do(11,eie,3,3,"td",5),Po(),Ro(12,7),Do(13,tie,2,0,"th",4),Do(14,nie,2,1,"td",5),Po(),Ro(15,8),Do(16,iie,1,0,"th",4),Do(17,aie,4,0,"td",5),Po(),Do(18,rie,1,0,"tr",9),Do(19,oie,1,0,"tr",10),Eo(),Io(20,"mat-paginator",11),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih,Gne],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-header-cell[_ngcontent-%COMP%]{padding:0}.mat-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-endDate[_ngcontent-%COMP%], .mat-column-startDate[_ngcontent-%COMP%]{width:25%;padding:13px 0!important}.mat-column-name[_ngcontent-%COMP%]{width:25%;padding:13px 0 13px 10px!important}.mat-column-action[_ngcontent-%COMP%]{width:25%;padding:13px 24px 13px 0!important}.table-action[_ngcontent-%COMP%]{float:right}.table-action[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{margin-right:15px}"]}),lie),uie=((sie=function(){function e(t){_classCallCheck(this,e),this._matDialogRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._matDialogRef.disableClose=!0}},{key:"confirm",value:function(){this._matDialogRef.close(!0)}},{key:"cancel",value:function(){this._matDialogRef.close(!1)}}]),e}()).\u0275fac=function(e){return new(e||sie)(Mo(Fx))},sie.\u0275cmp=gt({type:sie,selectors:[["app-management-delete-confirm-dialog"]],decls:8,vars:0,consts:[[1,"polyu-alert-container"],[1,"polyu-container-align-right"],["mat-raised-button","","color","white",1,"polyu-center-vertical",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"p"),_s(2,"Delete this row?"),Eo(),Io(3,"div",1),Io(4,"button",2),Ho("click",(function(){return t.cancel()})),_s(5,"No"),Eo(),Io(6,"button",2),Ho("click",(function(){return t.confirm()})),_s(7,"Yes"),Eo(),Eo(),Eo())},directives:[bS],styles:[".polyu-container-align-right[_ngcontent-%COMP%]{float:right}.polyu-alert-container[_ngcontent-%COMP%]{min-width:400px}"]}),sie),die=["roleTable"],hie=["roleInput"];function fie(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var pie,mie=((pie=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._location=a,this._cd=r,this.message=null,this.userTypes=[],this.searchUserTypes=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new qne(this._applicationService,this._cd),this._roleTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles&&(this._applicationService.currentUser.roles.indexOf(pu.roles.managerDeptRoleMgr)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.managerFMORoleMgr)>=0||this._applicationService.currentUser.roles.indexOf(pu.roles.systemRoleAdmin)>=0)?(this._applicationService.currentUser.roles.indexOf(pu.roles.managerDeptRoleMgr)>=0&&(this.userTypes=this.userTypes.concat(pu.roles.managerDeptRoleMgr),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.deptAdmin)),this._applicationService.currentUser.roles.indexOf(pu.roles.managerFMORoleMgr)>=0&&(this.userTypes=this.userTypes.concat(pu.roles.managerFMORoleMgr),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.fmoAdmin)),this._applicationService.currentUser.roles.indexOf(pu.roles.systemRoleAdmin)>=0&&(this.userTypes=this.userTypes.concat(pu.roles.systemRoleAdmin),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.deptAdmin),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.fmoAdmin),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.guestAccessCS),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.guestAccessStaffApprover),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.guestAccessStudentApprover),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.guestAccessUserStaff),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.guestAccessUserStudent),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.managerDeptRoleMgr),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.managerFMORoleMgr),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.multipleAccessUser),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.systemRoleAdmin),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.vehicleAccessAdmin),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.vehicleAccessPremiumUser),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.vehicleAccessUser),this.searchUserTypes=this.searchUserTypes.concat(pu.roles.departmentListAdmin)),this.loadData()):e.open(nQ)}},{key:"loadData",value:function(){this._roleInputComponent.setRoleOwners(this.userTypes),this._roleInputComponent.setDepartmentList(this._applicationService.departments);var e=new hS;e.userTypes=this.searchUserTypes,this._roleTableComponent.setQueryCriteria(e),this._roleTableComponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"addRole",value:function(){var e=this,t=m_({input:this._roleInputComponent.validateForm()}).pipe(V((function(e){return e.input})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isAPILoading=!0;var t=e._roleInputComponent.evalInput();return e._applicationService.addRole(t)})),Uv((function(t){e.isAPILoading=!1,e._roleInputComponent.clear(),e._roleTableComponent.refresh()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e._snackBar.open(t&&t.error&&t.error.errors&&t.error.errors.length>0?t.error.errors[0]:"Fail to add new role.",null,{duration:3e3}),t&&401===t.status&&e._dialog.open(_T),e.isAPILoading=!1,e._cd.detectChanges()}))}},{key:"clearRole",value:function(){this._roleInputComponent.clear()}},{key:"onDeleted",value:function(e){var t=this;this._dialog.open(uie).afterClosed().subscribe((function(n){n&&(t.isAPILoading=!0,t._applicationService.deleteRole(e).subscribe((function(e){t.isAPILoading=!1,t._roleTableComponent.clear(),t._roleTableComponent.refresh(),t._cd.detectChanges()}),(function(e){t._snackBar.open(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"Fail to add new role.",null,{duration:3e3}),e&&401===e.status&&t._dialog.open(_T),t.isAPILoading=!1,t._cd.detectChanges()})))}))}}]),e}()).\u0275fac=function(e){return new(e||pie)(Mo(_S),Mo(EY),Mo(Bx),Mo(ju),Mo(jr))},pie.\u0275cmp=gt({type:pie,selectors:[["app-management-roles-page"]],viewQuery:function(e,t){var n;1&e&&(rc(die,!0),rc(hie,!0)),2&e&&(ac(n=dc())&&(t._roleTableComponent=n.first),ac(n=dc())&&(t._roleInputComponent=n.first))},decls:18,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-input-container"],[4,"ngIf"],["roleInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-table-container"],[3,"onDeleted"],["roleTable",""],[1,"polyu-action-space-separated-bar"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"VRS Role Management"),Eo(),Io(2,"div",1),Do(3,fie,2,0,"app-overlay",2),Io(4,"div"),Oo(5,"app-management-role-input",null,3),Eo(),Io(7,"div",4),Io(8,"button",5),Ho("click",(function(){return t.addRole()})),_s(9,"Add"),Eo(),Io(10,"button",6),Ho("click",(function(){return t.clearRole()})),_s(11,"Reset"),Eo(),Eo(),Eo(),Io(12,"div",7),Io(13,"app-management-role-table",8,9),Ho("onDeleted",(function(e){return t.onDeleted(e)})),Eo(),Eo(),Io(15,"div",10),Io(16,"button",5),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf",t.isAPILoading))},directives:[Ed,Wne,bS,cie,tV,nV],styles:[".polyu-table-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-section-title[_ngcontent-%COMP%]{margin-top:30px}.polyu-input-container[_ngcontent-%COMP%]{margin-top:40px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px;padding-right:24px;margin-top:0}"]}),pie),_ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var a;return _classCallCheck(this,n),(a=t.call(this,i))._applicationService=e,a._cd2=i,a}return _createClass(n,[{key:"onLoadData",value:function(e){return this._applicationService.searchDepartments(e).pipe(Pv((function(t){return mu({totalCount:t.total,offset:e.offset,size:e.row,data:t.data})})))}}]),n}(Gj);function gie(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}function vie(e,t){1&e&&(Io(0,"mat-error"),_s(1,"Not empty."),Eo())}var yie,kie=((yie=function(){function e(t,n,i){_classCallCheck(this,e),this._formBuilder=t,this._cd=n,this._renderer=i,this._form=this._generateDataForm(this._formBuilder)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"_generateDataForm",value:function(e){return e.group({departmentId:[""],deptName:["",[N_.required,N_.maxLength(256)]],deptAbbr:["",[N_.required,N_.maxLength(256)]]})}},{key:"evalInput",value:function(){return{departmentId:this._form.get("departmentId").value?this._form.get("departmentId").value:0,deptName:this._form.get("deptName").value?this._form.get("deptName").value:null,deptAbbr:this._form.get("deptAbbr").value?this._form.get("deptAbbr").value:null}}},{key:"validateForm",value:function(){return this._form.markAllAsTouched(),this._form.updateValueAndValidity(),this._form.statusChanges.pipe(Vv(this._form.status)).pipe(Uv((function(e){})),gu((function(e){return"PENDING"!==e})),V((function(e){return"VALID"===e||"DISABLED"===e})),Av(1))}},{key:"clear",value:function(){this._form=this._generateDataForm(this._formBuilder),this._form.setValue({departmentId:null,deptName:null,deptAbbr:null})}},{key:"form",get:function(){return this._form}}]),e}()).\u0275fac=function(e){return new(e||yie)(Mo(tv),Mo(jr),Mo(Gs))},yie.\u0275cmp=gt({type:yie,selectors:[["app-management-department-input"]],decls:14,vars:5,consts:[[3,"formGroup"],[1,"polyu-grid-container"],[1,"polyu-grid-cell-3","no-top-padding"],["appearance","standard"],["matInput","","required","",3,"formControl"],[4,"ngIf"]],template:function(e,t){1&e&&(Io(0,"form",0),Io(1,"div",1),Io(2,"div",2),Io(3,"mat-form-field",3),Io(4,"mat-label"),_s(5,"Department Name"),Eo(),Oo(6,"input",4),Do(7,gie,2,0,"mat-error",5),Eo(),Eo(),Io(8,"div",2),Io(9,"mat-form-field",3),Io(10,"mat-label"),_s(11,"Abbreviation"),Eo(),Oo(12,"input",4),Do(13,vie,2,0,"mat-error",5),Eo(),Eo(),Eo(),Eo()),2&e&&(Ao("formGroup",t.form),ma(6),Ao("formControl",t.form.controls.deptName),ma(1),Ao("ngIf",t.form.controls.deptName.hasError("required")),ma(5),Ao("formControl",t.form.controls.deptAbbr),ma(1),Ao("ngIf",t.form.controls.deptAbbr.hasError("required")))},directives:[jg,Y_,Qg,SI,gI,RE,M_,Jg,P_,Wg,Ed,aI],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.no-top-padding[_ngcontent-%COMP%]{padding-top:0}.polyu-center-vertical[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%)}.time-picker-icon[_ngcontent-%COMP%]{cursor:pointer}"]}),yie),bie=["errorComponent"];function wie(e,t){1&e&&(Io(0,"div"),Oo(1,"app-error-message",null,12),Eo())}function Cie(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function Die(e,t){1&e&&(Io(0,"th",13),_s(1," Department ID "),Eo())}function Sie(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.departmentId," ")}}function Mie(e,t){1&e&&(Io(0,"th",13),_s(1,"Name"),Eo())}function xie(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.deptName," ")}}function Tie(e,t){1&e&&(Io(0,"th",13),_s(1," Abbreviation"),Eo())}function Aie(e,t){if(1&e&&(Io(0,"td",14),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.deptAbbr," ")}}function Lie(e,t){1&e&&Oo(0,"th",13)}function Iie(e,t){if(1&e){var n=Fo();Io(0,"td",14),Io(1,"div",15),Io(2,"button",16),Ho("click",(function(e){en(n);var i=t.$implicit;return Uo().onDeleteBtnClicked(e,i)})),_s(3,"Delete"),Eo(),Eo(),Eo()}}function Eie(e,t){1&e&&Oo(0,"tr",17)}function Oie(e,t){1&e&&Oo(0,"tr",18)}var Rie,Pie=((Rie=function(){function e(t){_classCallCheck(this,e),this._cd=t,this.displayedColumns=["departmentId","deptName","deptAbbr","delete"],this.onDeleted=new Gl,this.onDataLoaded=new Gl,this._dataSource=null}return _createClass(e,[{key:"ngOnInit",value:function(){null!=this._dataSource&&(this._dataSource.paginator=this.paginator)}},{key:"setDataStore",value:function(e){var t=this;this._dataSource=e,this._dataSource&&(e.setListener(this),this._dataSource.error.subscribe((function(e){e?(t.showError=!0,t._cd.detectChanges(),t._errorComponent.setErrorMessage("Error. Please try again later.")):(t.showError=!1,t._cd.detectChanges())})))}},{key:"setQueryCriteria",value:function(e){this._query=e,e&&(this.paginator.pageIndex=e.offset/this.paginator.pageSize)}},{key:"setPage",value:function(e){this.paginator&&(this.paginator.pageIndex=e)}},{key:"refresh",value:function(){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"changePage",value:function(e){null!==this._dataSource&&(this._query.offset=this.paginator.pageIndex*this.paginator.pageSize,this._query.row=this.paginator.pageSize,this._dataSource.load(this._query))}},{key:"clear",value:function(){this._dataSource.clear()}},{key:"onDeleteBtnClicked",value:function(e,t){this.onDeleted.emit(t)}},{key:"onLoaded",value:function(e,t){this.onDataLoaded.emit()}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||Rie)(Mo(jr))},Rie.\u0275cmp=gt({type:Rie,selectors:[["app-management-department-table"]],viewQuery:function(e,t){var n;1&e&&(rc(YP,!0),oc(bie,!0)),2&e&&(ac(n=dc())&&(t.paginator=n.first),ac(n=dc())&&(t._errorComponent=n.first))},outputs:{onDeleted:"onDeleted",onDataLoaded:"onDataLoaded"},decls:21,vars:9,consts:[[4,"ngIf"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"mat-elevation-z8","mat-table","polyu-info-table",3,"dataSource"],["matColumnDef","departmentId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","deptName"],["matColumnDef","deptAbbr"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"hidePageSize","pageSize","page"],["errorComponent",""],["mat-header-cell",""],["mat-cell",""],[1,"table-action"],["mat-raised-button","","onclick","this.blur()",1,"action-btn",3,"click"],["mat-header-row",""],["mat-row","",1,"polyu-table-row"]],template:function(e,t){1&e&&(Do(0,wie,3,0,"div",0),Io(1,"div"),Do(2,Cie,2,0,"app-overlay",0),Nl(3,"async"),Io(4,"div",1),Io(5,"table",2),Ro(6,3),Do(7,Die,2,0,"th",4),Do(8,Sie,2,1,"td",5),Po(),Ro(9,6),Do(10,Mie,2,0,"th",4),Do(11,xie,2,1,"td",5),Po(),Ro(12,7),Do(13,Tie,2,0,"th",4),Do(14,Aie,2,1,"td",5),Po(),Ro(15,8),Do(16,Lie,1,0,"th",4),Do(17,Iie,4,0,"td",5),Po(),Do(18,Eie,1,0,"tr",9),Do(19,Oie,1,0,"tr",10),Eo(),Io(20,"mat-paginator",11),Ho("page",(function(e){return t.changePage(e)})),Eo(),Eo(),Eo()),2&e&&(Ao("ngIf",t.showError),ma(2),Ao("ngIf",Bl(3,7,t.dataSource.loading)),ma(3),Ao("dataSource",t.dataSource),ma(13),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("hidePageSize",!0)("pageSize",10))},directives:[Ed,pF,eF,kF,vF,_F,DF,MF,YP,Nz,tV,nV,wF,CF,bS,TF,LF],pipes:[ih],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-header-cell[_ngcontent-%COMP%]{padding:0}.mat-cell[_ngcontent-%COMP%]{padding:0 0 0 5px}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}.polyu-multi-lines-text[_ngcontent-%COMP%]{white-space:pre-wrap}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}.mat-column-endDate[_ngcontent-%COMP%], .mat-column-startDate[_ngcontent-%COMP%]{width:25%;padding:13px 0!important}.mat-column-name[_ngcontent-%COMP%]{width:25%;padding:13px 0 13px 10px!important}.mat-column-action[_ngcontent-%COMP%]{width:25%;padding:13px 24px 13px 0!important}.table-action[_ngcontent-%COMP%]{float:right}.table-action[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{margin-right:15px}"]}),Rie),Yie=["departmentTable"],Fie=["departmentInput"];function qie(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}var Vie,Hie,Nie=((Hie=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._snackBar=n,this._dialog=i,this._location=a,this._cd=r,this.message=null,this.userTypes=[],this.searchUserTypes=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this._dataSource=new _ie(this._applicationService,this._cd),this._departmentTableComponent.setDataStore(this._dataSource),this.checkAccessRight()}},{key:"checkAccessRight",value:function(){var e=this._dialog;this._applicationService.currentUser.roles&&this._applicationService.currentUser.roles.indexOf(pu.roles.departmentListAdmin)>=0?this.loadData():e.open(nQ)}},{key:"loadData",value:function(){var e=new HD;this._departmentTableComponent.setQueryCriteria(e),this._departmentTableComponent.refresh()}},{key:"back",value:function(){this._location.back()}},{key:"addDepartment",value:function(){var e=this,t=m_({input:this._departmentInputComponent.validateForm()}).pipe(V((function(e){return e.input})));K(t.pipe(gu((function(e){return!e})),Uv((function(){e._snackBar.open("Some input fields are incorrect. Please fix them and submit again.",null,{duration:2e3})}))),t.pipe(gu((function(e){return e})),Pv((function(){e.isAPILoading=!0;var t=e._departmentInputComponent.evalInput();return e._applicationService.addDepartment(t)})),Uv((function(t){e.isAPILoading=!1,e._departmentInputComponent.clear(),e._departmentTableComponent.refresh()})))).pipe(Qv((function(){}))).subscribe((function(e){}),(function(t){e._snackBar.open(t&&t.error&&t.error.errors&&t.error.errors.length>0?t.error.errors[0]:"Fail to add blockout date range.",null,{duration:4e3}),t&&401===t.status&&e._dialog.open(_T),e.isAPILoading=!1,e._cd.detectChanges()}))}},{key:"clearDepartment",value:function(){this._departmentInputComponent.clear()}},{key:"onDeleted",value:function(e){var t=this;this._dialog.open(uie).afterClosed().subscribe((function(n){n&&(t.isAPILoading=!0,t._applicationService.deleteDepartment(e).subscribe((function(e){t.isAPILoading=!1,t._departmentTableComponent.clear(),t._departmentTableComponent.refresh(),t._cd.detectChanges()}),(function(e){t._snackBar.open(e&&e.error&&e.error.errors&&e.error.errors.length>0?e.error.errors[0]:"System error. Please try again later.",null,{duration:4e3}),e&&401===e.status&&t._dialog.open(_T),t.isAPILoading=!1,t._cd.detectChanges()})))}))}}]),e}()).\u0275fac=function(e){return new(e||Hie)(Mo(_S),Mo(EY),Mo(Bx),Mo(ju),Mo(jr))},Hie.\u0275cmp=gt({type:Hie,selectors:[["app-management-departments-page"]],viewQuery:function(e,t){var n;1&e&&(rc(Yie,!0),rc(Fie,!0)),2&e&&(ac(n=dc())&&(t._departmentTableComponent=n.first),ac(n=dc())&&(t._departmentInputComponent=n.first))},decls:18,vars:1,consts:[[1,"polyu-page-headline"],[1,"polyu-input-container"],[4,"ngIf"],["departmentInput",""],[1,"polyu-action-bar"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","white",3,"click"],[1,"polyu-table-container"],[3,"onDeleted"],["departmentTable",""],[1,"polyu-action-space-separated-bar"]],template:function(e,t){1&e&&(Io(0,"h4",0),_s(1,"VRS Department Management"),Eo(),Io(2,"div",1),Do(3,qie,2,0,"app-overlay",2),Io(4,"div"),Oo(5,"app-management-department-input",null,3),Eo(),Io(7,"div",4),Io(8,"button",5),Ho("click",(function(){return t.addDepartment()})),_s(9,"Add"),Eo(),Io(10,"button",6),Ho("click",(function(){return t.clearDepartment()})),_s(11,"Reset"),Eo(),Eo(),Eo(),Io(12,"div",7),Io(13,"app-management-department-table",8,9),Ho("onDeleted",(function(e){return t.onDeleted(e)})),Eo(),Eo(),Io(15,"div",10),Io(16,"button",5),Ho("click",(function(){return t.back()})),_s(17,"Back"),Eo(),Eo()),2&e&&(ma(3),Ao("ngIf",t.isAPILoading))},directives:[Ed,kie,bS,Pie,tV,nV],styles:[".polyu-table-container[_ngcontent-%COMP%]{padding-bottom:10px}.polyu-section-title[_ngcontent-%COMP%]{margin-top:30px}.polyu-input-container[_ngcontent-%COMP%]{margin-top:40px}.polyu-page-headline[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#909497;padding:5px 0}.polyu-action-bar[_ngcontent-%COMP%]{padding-bottom:10px;padding-right:24px;margin-top:0}"]}),Hie),Bie=((Vie=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Vie)},Vie.\u0275cmp=gt({type:Vie,selectors:[["app-vertical-divider"]],decls:1,vars:0,consts:[[1,"polyu-vertical-divider"]],template:function(e,t){1&e&&Oo(0,"div",0)},styles:[".polyu-vertical-divider[_ngcontent-%COMP%]{width:3px;height:100%;margin-left:1em;margin-right:1em;background-color:#a02337}"]}),Vie);function jie(e,t){1&e&&(Io(0,"app-overlay"),Oo(1,"app-loader"),Eo())}function zie(e,t){1&e&&(Io(0,"th",25),_s(1," Visitor University ID "),Eo())}function Uie(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.userId," ")}}function Wie(e,t){1&e&&(Io(0,"th",25),_s(1," Visitor Name "),Eo())}function Gie(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.name," ")}}function Qie(e,t){1&e&&(Io(0,"th",25),_s(1," Sponsor "),Eo())}function Kie(e,t){if(1&e&&(Io(0,"td",26),Oo(1,"app-people",27),Eo()),2&e){var n=t.$implicit;ma(1),Ao("netid",n.sponsor)("displayField","displayName")}}function $ie(e,t){1&e&&(Io(0,"th",25),_s(1," Departments"),Oo(2,"br"),_s(3," to be accessed "),Eo())}function Jie(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessDepartment," ")}}function Xie(e,t){1&e&&(Io(0,"th",25),_s(1," Start "),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function Zie(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessStartDate," ")}}function eae(e,t){1&e&&(Io(0,"th",25),_s(1," End "),Oo(2,"br"),_s(3,"(dd-mm-yyyy)"),Eo())}function tae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessEndDate," ")}}function nae(e,t){1&e&&(Io(0,"th",25),_s(1," Access Media "),Eo())}function iae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.accessMedia," ")}}function aae(e,t){1&e&&(Io(0,"th",25),_s(1," User Status "),Eo())}function rae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.status," ")}}function oae(e,t){1&e&&(Io(0,"th",25),_s(1," Card Status "),Eo())}function sae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Nl(2,"titlecase"),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",Bl(2,1,n.cardStatus)," ")}}function lae(e,t){1&e&&(Io(0,"th",25),_s(1," UID "),Eo())}function cae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.libraryId," ")}}function uae(e,t){1&e&&(Io(0,"th",25),_s(1," Mobile Status "),Eo())}function dae(e,t){if(1&e&&(Io(0,"td",26),_s(1),Eo()),2&e){var n=t.$implicit;ma(1),vs(" ",n.mobileStatus," ")}}function hae(e,t){1&e&&Oo(0,"tr",28)}function fae(e,t){if(1&e){var n=Fo();Io(0,"tr",29),Ho("click",(function(){en(n);var e=t.$implicit;return Uo().selectRow(e)})),Eo()}if(2&e){var i=t.$implicit;rs("polyu-table-row-expanded",Uo().selectedRow===i)}}var pae,mae=function(){return[5,10,20]},_ae=((pae=function(){function e(t,n,i){_classCallCheck(this,e),this._applicationService=t,this._formBuilder=n,this._snackBar=i,this.displayedColumns=["userId","name","sponsor","accessDepartment","accessStartDate","accessEndDate","accessMedia","status","cardStatus","libraryId"],this.role=null,this.selectedRow=null,this._dataSource=new OF([]),this.fcFilterString=new Fg(""),this.fcFilterActive=new Fg(!0),this.selected=new Gl,this.moreEvent=new Gl,this.isLoading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dataSource.paginator=this.paginator,this._dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,t){var n=JSON.parse(t),i=n.filterActive,a=n.filterString;if("true"===String(i)&&"Normal"!==e.status)return!1;if(!a)return!0;var r=a.toLowerCase().replace(/[^a-z]/,"");if(!r)return!0;if(e.userId.toLowerCase().indexOf(a.toLowerCase())>=0)return!0;if(e.name.toLowerCase().replace(/[^a-z]/,"").indexOf(r)>=0)return!0;if(e.libraryId.toLowerCase().replace(/[^a-z]/,"").indexOf(r)>=0)return!0;var o,s=_createForOfIteratorHelper(e.accessDepartment.split(","));try{for(s.s();!(o=s.n()).done;)if(o.value.toLowerCase().replace(/[^a-z]/,"")===r)return!0}catch(l){s.e(l)}finally{s.f()}return!1},this.selectedRow=null,this.isLoading=!0,this.fcFilterActive.valueChanges.subscribe({next:function(){return e._dataSource.filter=JSON.stringify({filterActive:e.fcFilterActive.value,filterString:e.fcFilterString.value})}}),this.fcFilterString.valueChanges.subscribe({next:function(){return e._dataSource.filter=JSON.stringify({filterActive:e.fcFilterActive.value,filterString:e.fcFilterString.value})}}),this._dataSource.filter=JSON.stringify({filterActive:this.fcFilterActive.value,filterString:this.fcFilterString.value})}},{key:"refresh",value:function(){var e=this;if(null!==this.role){var t=this;this.isLoading=!0,this._applicationService.listData(this.role).pipe(V((function(e){return e.map((function(e){return{dataId:e.dataId,userId:e.userId,name:e.name,sponsor:e.sponsor,accessDepartment:e.accessDepartment,accessStartDate:e.accessStartDate?dd(e.accessStartDate,"dd-MM-yyyy","en-HK"):"N/A",accessEndDate:e.accessEndDate?dd(e.accessEndDate,"dd-MM-yyyy","en-HK"):"N/A",accessMedia:e.cardFlag?Uq("card"):""+e.mobileFlag?Uq("mobile"):"",status:e.suspendFlag?"Suspended":e.active?"Normal":"Access Ended / Not Started",cardStatus:e.cardStatus,libraryId:e.libraryId,mobileStatus:Kq(e.mobileStatus),dataSummary:e}}))})),Qv((function(){return e.isLoading=!1}))).subscribe({next:function(t){e._dataSource.data=t},error:function(n){e._dataSource.data=[],t._snackBar.open(n&&n.error&&n.error.errors&&n.error.errors.length>0?n.error.errors[0]:"Unable to list requests.",null,{duration:2e3})}})}else this._dataSource.data=[]}},{key:"selectRow",value:function(e){this.selectedRow=e,this.selected.emit(e.dataSummary)}},{key:"dataSource",get:function(){return this._dataSource}}]),e}()).\u0275fac=function(e){return new(e||pae)(Mo(_S),Mo(tv),Mo(EY))},pae.\u0275cmp=gt({type:pae,selectors:[["app-data-list"]],viewQuery:function(e,t){var n;1&e&&(rc(eF,!0),rc(YP,!0)),2&e&&(ac(n=dc())&&(t.sort=n.first),ac(n=dc())&&(t.paginator=n.first))},inputs:{role:"role"},outputs:{moreEvent:"moreEvent",selected:"selected"},decls:63,vars:9,consts:[[1,"polyu-overlay-container"],[4,"ngIf"],[1,"polyu-list-search-bar"],[1,"polyu-list-search-bar-group"],[3,"formControl"],["matInput","","placeholder","Filter by Visitor ID / Visitor Name / Access Department",3,"formControl"],["mat-raised-button","","target","_blank","download","",3,"href"],[1,"mat-elevation-z8","polyu-list-table-wrapper"],["mat-table","","matSort","",1,"polyu-list-table",3,"dataSource"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","sponsor"],["matColumnDef","accessDepartment"],["matColumnDef","accessStartDate"],["matColumnDef","accessEndDate"],["matColumnDef","accessMedia"],["matColumnDef","status"],["matColumnDef","cardStatus"],["matColumnDef","libraryId"],["matColumnDef","mobileStatus"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","polyu-table-row",3,"polyu-table-row-expanded","click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"netid","displayField"],["mat-header-row",""],["mat-row","",1,"polyu-table-row",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Do(1,jie,2,0,"app-overlay",1),Io(2,"div",2),Io(3,"div",3),Io(4,"div"),Io(5,"mat-checkbox",4),_s(6,"Show only visitors with Normal status"),Eo(),Eo(),Oo(7,"app-vertical-divider"),Io(8,"div"),_s(9,"Search"),Eo(),Io(10,"div"),Oo(11,"input",5),Eo(),Eo(),Io(12,"div",3),Io(13,"div"),Io(14,"a",6),_s(15,"Download"),Eo(),Eo(),Eo(),Eo(),Io(16,"div",7),Io(17,"table",8),Ro(18,9),Do(19,zie,2,0,"th",10),Do(20,Uie,2,1,"td",11),Po(),Ro(21,12),Do(22,Wie,2,0,"th",10),Do(23,Gie,2,1,"td",11),Po(),Ro(24,13),Do(25,Qie,2,0,"th",10),Do(26,Kie,2,2,"td",11),Po(),Ro(27,14),Do(28,$ie,4,0,"th",10),Do(29,Jie,2,1,"td",11),Po(),Ro(30,15),Do(31,Xie,4,0,"th",10),Do(32,Zie,2,1,"td",11),Po(),Ro(33,16),Do(34,eae,4,0,"th",10),Do(35,tae,2,1,"td",11),Po(),Ro(36,17),Do(37,nae,2,0,"th",10),Do(38,iae,2,1,"td",11),Po(),Ro(39,18),Do(40,aae,2,0,"th",10),Do(41,rae,2,1,"td",11),Po(),Ro(42,19),Do(43,oae,2,0,"th",10),Do(44,sae,3,3,"td",11),Po(),Ro(45,20),Do(46,lae,2,0,"th",10),Do(47,cae,2,1,"td",11),Po(),Ro(48,21),Do(49,uae,2,0,"th",10),Do(50,dae,2,1,"td",11),Po(),Do(51,hae,1,0,"tr",22),Do(52,fae,1,2,"tr",23),Eo(),Oo(53,"mat-paginator",24),Eo(),Io(54,"p"),_s(55," Visitors with 'Normal' status need to satisfy the following criteria to gain access to department space: "),Eo(),Io(56,"ol"),Io(57,"li"),_s(58,"For visitors who requested Physical Access Card, the visitor need to hold a Physical Access which is not revoked before. The status of the Physical Access Card can be checked by selecting a visitor above."),Eo(),Io(59,"li"),_s(60,"For visitors who requested Mobile ID, the visitor need to complete Mobile ID registration process, by following instruction sent to user's personal email address. The status of the Mobile ID can be checked by selecting a visitor above."),Eo(),Io(61,"li"),_s(62,"Department door adminstrator need to grant access to the visitor via Common Access Management System."),Eo(),Eo(),Eo()),2&e&&(ma(1),Ao("ngIf",t.isLoading),ma(4),Ao("formControl",t.fcFilterActive),ma(6),Ao("formControl",t.fcFilterString),ma(3),$o("href","/vrs-ajax/download/visitor/",t.role,"",Xi),ma(3),Ao("dataSource",t.dataSource),ma(34),Ao("matHeaderRowDef",t.displayedColumns),ma(1),Ao("matRowDefColumns",t.displayedColumns),ma(1),Ao("pageSizeOptions",Ol(8,mae)))},directives:[Ed,gE,P_,Wg,Bie,RE,M_,wS,pF,eF,kF,vF,_F,DF,MF,YP,tV,nV,wF,sF,CF,iV,TF,LF],pipes:[rh],styles:["table[_ngcontent-%COMP%]{width:100%}.polyu-list-table-wrapper[_ngcontent-%COMP%]{overflow:auto}.polyu-list-search-bar[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between}.polyu-list-search-bar-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.polyu-list-search-bar-group[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:10px 5px}.polyu-inner-content[_ngcontent-%COMP%]{width:100%}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):hover{background:#e5e5e5}tr.polyu-table-row[_ngcontent-%COMP%]:not(.polyu-table-row-expanded):active{background:#dfdfdf}tr.polyu-table-row.polyu-table-row-expanded[_ngcontent-%COMP%]{background:#e5e5e5}tr.polyu-expandable-row[_ngcontent-%COMP%]{height:0}.polyu-expandable-cell-container[_ngcontent-%COMP%]{overflow:hidden;display:flex}.polyu-expandable-cell-content[_ngcontent-%COMP%]{padding:16px}"]}),pae),gae=["data"],vae=["dataList"];function yae(e,t){1&e&&(Io(0,"div",0),Oo(1,"app-divider"),Eo())}function kae(e,t){}var bae,wae=((bae=function(){function e(t,n,i,a,r){_classCallCheck(this,e),this._applicationService=t,this._componentFactoryResolver=n,this._route=i,this.cd=a,this._location=r,this.role=null,this.selecteData=null,this.isDataVisible=!1,this.isRenewable=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.role=this._route.snapshot.data.role,this._dataList.role=this._route.snapshot.data.role,this._dataList.refresh()}},{key:"showData",value:function(e){this.selecteData=e,this.isDataVisible=!0,this.isRenewable=!!e&&e.requestor===this._applicationService.currentUser.netid;var t=this._componentFactoryResolver.resolveComponentFactory(Hz),n=this._data.viewContainerRef;n&&n.clear(),n.createComponent(t).instance.resetData(e.dataId,this.role)}},{key:"back",value:function(){this._location.back()}}]),e}()).\u0275fac=function(e){return new(e||bae)(Mo(_S),Mo(Bs),Mo(rk),Mo(jr),Mo(ju))},bae.\u0275cmp=gt({type:bae,selectors:[["app-ma-data-page"]],viewQuery:function(e,t){var n;1&e&&(rc(gae,!0,zq),rc(vae,!0)),2&e&&(ac(n=dc())&&(t._data=n.first),ac(n=dc())&&(t._dataList=n.first))},decls:12,vars:1,consts:[[1,"polyu-block"],[3,"selected"],["dataList",""],[3,"ngIf"],["appCompHost",""],["data",""],[1,"polyu-action-space-separated-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h2"),_s(2,"Visitor List"),Eo(),Io(3,"app-data-list",1,2),Ho("selected",(function(e){return t.showData(e)})),Eo(),Eo(),Do(5,yae,2,0,"ng-template",3),Io(6,"div",0),Do(7,kae,0,0,"ng-template",4,5,mc),Eo(),Io(9,"div",6),Io(10,"button",7),Ho("click",(function(){return t.back()})),_s(11,"Back"),Eo(),Eo()),2&e&&(ma(5),Ao("ngIf",t.isDataVisible))},directives:[_ae,Ed,zq,bS,TH],styles:[""]}),bae),Cae=["request"];function Dae(e,t){1&e&&Oo(0,"app-request",null,2)}var Sae,Mae,xae,Tae,Aae,Lae,Iae,Eae,Oae,Rae,Pae,Yae,Fae,qae,Vae,Hae,Nae=[{path:"ma",component:rK,pathMatch:"full"},{path:"request",component:ZU,pathMatch:"full"},{path:"request/new-visitor",component:tW,pathMatch:"full"},{path:"request/bulkapprove",component:IJ,pathMatch:"full"},{path:"request/new-visitor-email",component:LW,pathMatch:"full"},{path:"request/kyc/:id",component:(Sae=function(){function e(t){_classCallCheck(this,e),this._activatedRoute=t}return _createClass(e,[{key:"ngOnInit",value:function(){this._request.resetRequest(Number(this._activatedRoute.snapshot.paramMap.get("id")))}}]),e}(),Sae.\u0275fac=function(e){return new(e||Sae)(Mo(rk))},Sae.\u0275cmp=gt({type:Sae,selectors:[["app-ma-request-kyc-page"]],viewQuery:function(e,t){var n;1&e&&rc(Cae,!0),2&e&&ac(n=dc())&&(t._request=n.first)},decls:4,vars:1,consts:[[1,"polyu-block"],[3,"ngIf"],["request",""]],template:function(e,t){1&e&&(Io(0,"div",0),Io(1,"h2"),_s(2,"Request"),Eo(),Eo(),Do(3,Dae,2,0,"ng-template",1)),2&e&&(ma(3),Ao("ngIf",t.requestId))},directives:[Ed,BB],styles:[""]}),Sae),pathMatch:"full"},{path:"request/:requestId",component:B$,pathMatch:"full"},{path:"visitor",component:wae,pathMatch:"full",data:{role:"sponsor"}},{path:"visitor/dept",component:wae,pathMatch:"full",data:{role:"deptadmin"}},{path:"visitor/fmo",component:wae,pathMatch:"full",data:{role:"fmoadmin"}},{path:"visitor/:dataId/request",component:SG,pathMatch:"full"},{path:"ma/history",component:QQ,pathMatch:"full"},{path:"ma/cards",component:GK,pathMatch:"full",data:{role:"user",pageTitle:"Renew Access Card"}},{path:"ma/dept/cards",component:GK,pathMatch:"full",data:{role:"deptadmin",pageTitle:"Renew Department's Access Cards "}},{path:"ma/dept/requests",component:F$,pathMatch:"full",data:{role:"deptadmin"}},{path:"ma/fmo/cards",component:GK,pathMatch:"full",data:{role:"fmoadmin",pageTitle:"Renew Access Cards (FMO)"}},{path:"ma/revoke",component:sQ,pathMatch:"full",data:{role:"user",pageTitle:"Revoke Access Card"}},{path:"ma/dept/revoke",component:sQ,pathMatch:"full",data:{role:"deptadmin",pageTitle:"Revoke Department's Access Cards"}},{path:"ma/fmo/revoke",component:sQ,pathMatch:"full",data:{role:"fmoadmin",pageTitle:"Revoke Access Cards (FMO)"}},{path:"ma/fmo/reissue",component:YQ,pathMatch:"full"},{path:"ma/fmo/requests",component:F$,pathMatch:"full",data:{role:"fmoadmin"}},{path:"ma/support/delete",component:dX,pathMatch:"full"},{path:"registration",component:GW,pathMatch:"full"},{path:"requester/request/search",component:L1,pathMatch:"full"},{path:"requester/request/create",component:IZ,pathMatch:"full"},{path:"requester/request/modify",component:v2,pathMatch:"full"},{path:"requester/request/cancel",component:b2,pathMatch:"full"},{path:"requester/request/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.guestAccessUserStaff,pu.roles.guestAccessUserStudent],approval:!1,update:!0,cancel:!0}},{path:"requester/request",component:m2,pathMatch:"full"},{path:"requester/fmo/list",component:n0,pathMatch:"full",data:{role:pu.roles.fmoAdmin,hideHelpMessage:!0}},{path:"requester/fmo/settings",component:P2,pathMatch:"full"},{path:"requester/fmo/blackout",component:B4,pathMatch:"full"},{path:"requester/fmo/workflow",component:G4,pathMatch:"full"},{path:"requester/fmo/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin],approval:!1,update:!1,cancel:!1}},{path:"requester/hod/studentrequest/list",component:R0,pathMatch:"full",data:{roles:[pu.roles.hod],hideHelpMessage:!1}},{path:"requester/hod/staffrequest/list",component:j0,pathMatch:"full",data:{roles:[pu.roles.hod],hideHelpMessage:!1}},{path:"requester/hod/studentapprover/list",component:U8,pathMatch:"full",data:{roles:[pu.roles.hod]}},{path:"requester/hod/staffapprover/list",component:Q8,pathMatch:"full",data:{roles:[pu.roles.hod]}},{path:"requester/studentApprover/request/list",component:R0,pathMatch:"full",data:{roles:[pu.roles.guestAccessStudentApprover],hideHelpMessage:!1}},{path:"requester/studentApprover/request/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.hod,pu.roles.guestAccessStudentApprover],approval:!0,update:!1,cancel:!1}},{path:"requester/staffApprover/request/list",component:j0,pathMatch:"full",data:{roles:[pu.roles.guestAccessStaffApprover],hideHelpMessage:!1}},{path:"requester/staffApprover/request/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.hod,pu.roles.guestAccessStaffApprover],approval:!0,update:!1,cancel:!1}},{path:"cs",component:O1,pathMatch:"full",data:{role:pu.roles.guestAccessCS}},{path:"cs/request/search",component:W0,pathMatch:"full",data:{role:pu.roles.guestAccessCS,hideHelpMessage:!1}},{path:"cs/request/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.guestAccessCS],approval:!1,update:!1,cancel:!1}},{path:"ga/studentsponsor/search",component:E5,pathMatch:"full",data:{title:"Guest Access Student Sponsor List",sponsorType:"S"}},{path:"ga/staffsponsor/search",component:E5,pathMatch:"full",data:{title:"Guest Access Staff Sponsor List",sponsorType:"W"}},{path:"ga/sponsor/:netId/request/search",component:Y5,pathMatch:"full"},{path:"ga/sponsor/request/:requestId",component:$Z,pathMatch:"full",data:{roles:[pu.roles.guestAccessTraffccAnalyst,pu.roles.fmoAdmin],approval:!1,update:!1,cancel:!1}},{path:"ga/fmo/qrcode/search",component:_6,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin]}},{path:"ga/fmo/qrcode/search2",component:j6,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin]}},{path:"ga/fmo/hod/search",component:f8,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin]}},{path:"ga/fmo/studentapprover/search",component:U8,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin]}},{path:"ga/fmo/staffapprover/search",component:Q8,pathMatch:"full",data:{roles:[pu.roles.fmoAdmin]}},{path:"va",component:e7,pathMatch:"full"},{path:"va/fmo/request/search",component:X9,pathMatch:"full",data:{role:"fmoadmin",detailsMode:!0,exportEnable:!0}},{path:"va/fmo/request/constraint",component:Fne,pathMatch:"full"},{path:"va/request/search",component:X9,pathMatch:"full",data:{mode:null,detailsMode:!1,exportEnable:!1}},{path:"va/request",component:h9,pathMatch:"full"},{path:"management/roles",component:mie,pathMatch:"full"},{path:"management/departments",component:Nie,pathMatch:"full"},{path:"unauthorized",component:K8,pathMatch:"full"},{path:"",component:Z1,pathMatch:"full"}],Bae=((Tae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Tae}),Tae.\u0275inj=me({factory:function(e){return new(e||Tae)},imports:[[Fb.forChild(Nae)],Fb]}),Tae),jae=((xae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:xae}),xae.\u0275inj=me({factory:function(e){return new(e||xae)},imports:[[uh]]}),xae),zae=((Mae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Mae}),Mae.\u0275inj=me({factory:function(e){return new(e||Mae)},imports:[[uh,nv,iv,Nq,jae,Bq,t4]]}),Mae),Uae=[],Wae=((Yae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Yae}),Yae.\u0275inj=me({factory:function(e){return new(e||Yae)},imports:[[Fb.forChild(Uae)],Fb]}),Yae),Gae=((Pae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Pae}),Pae.\u0275inj=me({factory:function(e){return new(e||Pae)},imports:[[uh,nv,iv,Nq,Bq,Wae,jae]]}),Pae),Qae=((Rae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Rae}),Rae.\u0275inj=me({factory:function(e){return new(e||Rae)},imports:[[Vf,p_,Vf,p_,nv,af,iv,Nq,Fb,Bq,Gae,jq]]}),Rae),Kae=((Oae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Oae}),Oae.\u0275inj=me({factory:function(e){return new(e||Oae)},imports:[[uh,nv,iv,Nq,Bq,jae,jq]]}),Oae),$ae=((Eae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Eae}),Eae.\u0275inj=me({factory:function(e){return new(e||Eae)},imports:[[uh,nv,iv,Nq,Bq,jae,Gae,jq,Kae]]}),Eae),Jae=((Iae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Iae}),Iae.\u0275inj=me({factory:function(e){return new(e||Iae)},imports:[[uh,nv,iv,Nq,Bq,jae,Gae,jq]]}),Iae),Xae=((Lae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Lae}),Lae.\u0275inj=me({factory:function(e){return new(e||Lae)},imports:[[uh,nv,iv,Nq,Bq,jae,Gae,jq]]}),Lae),Zae=((Aae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Aae}),Aae.\u0275inj=me({factory:function(e){return new(e||Aae)},imports:[[Gae,Qae,$ae,Jae,Xae,Kae],Gae,Qae,$ae,Jae,Xae,Kae]}),Aae),ere=n("1BeU"),tre=((Hae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Hae}),Hae.\u0275inj=me({factory:function(e){return new(e||Hae)},imports:[[uh,nv,iv,Nq,jae,Bq,kne.forRoot({provide:wte,useFactory:ere.adapterFactory})]]}),Hae),nre=((Vae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Vae}),Vae.\u0275inj=me({factory:function(e){return new(e||Vae)},imports:[[uh,nv,iv,Nq,jae,Bq,kne.forRoot({provide:wte,useFactory:ere.adapterFactory})]]}),Vae),ire=((qae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:qae}),qae.\u0275inj=me({factory:function(e){return new(e||qae)},imports:[[uh,nv,iv,Nq,Bae,Bq,jq,Zae,zae,tre,nre]]}),qae),are=((Fae=function e(){_classCallCheck(this,e)}).\u0275mod=bt({type:Fae,bootstrap:[ZT]}),Fae.\u0275inj=me({factory:function(e){return new(e||Fae)},providers:[{provide:Hu,useValue:"/vrs"},{provide:xD,useValue:{float:"always"}}],imports:[[Vf,p_,Vf,p_,nv,af,iv,Fb,Nq,Bq,jq,ire,tA,jae,zae,Zae,tre,nre]]}),Fae);pu.production&&function(){if(Di)throw new Error("Cannot enable prod mode after platform setup.");Ci=!1}(),Ff().bootstrapModule(are).catch((function(e){return console.error(e)}))},zx6S:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var a=t.words[i];return 1===i.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}},[[0,0]]]);